#include <libgnurdf/types.h>
Go to the source code of this file.
Functions | |
RdfNamespace * | rdfNewNamespace (RdfSchema *schema, const char *uri, const char *prefix) |
Creates a new namespace with the specified URI and prefix. More... | |
RdfNamespace * | rdfGetNamespace (RdfSchema *schema, const char *uri) |
Returns the namespace with the specified URI. More... | |
RdfNamespace * | rdfGetRdfNamespace (RdfSchema *schema) |
Returns the RDF namespace. More... | |
const char * | rdfGetNamespaceURI (RdfNamespace *ns) |
Returns the URI of the specified namespace. More... | |
const char * | rdfGetNamespacePrefix (RdfNamespace *ns) |
Returns the prefix of the specified namespace. More... |
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
Returns the namespace with the specified URI.
|
|
Returns the prefix of the specified namespace.
|
|
Returns the URI of the specified namespace.
|
|
Returns the RDF namespace.
|
|
Creates a new namespace with the specified URI and prefix. For example, to create a namespace such as the one used in the following tag:
<SomeTag xmlns:myns="http://www.foo.com/myns"> You would do:
RdfNamespace *ns; ns = rdfNewNamespace(schema, "http://www.foo.com/myns", "myns");
|