This project has moved. For the latest updates, please go here.
RDFNamespaceRegister
This is a singleton container for registered namespaces, which proves to be helpful when prefix shortcutting of resource names is needed or when a namespace has got a frequent usage. Predefined namespaces available in the register are:
  • Basic (RDF, RDFS, OWL, XML, XSD)
  • Extended (DC, FOAF, GEO, SKOS, RSS)
//add a new namespace to the register (the one created for San Antonio Spurs...)
RDFNamespaceRegister.AddNamespace(spursNamespace);

//retrieve a namespace from the register (the FOAF predefined namespace)
RDFNamespace foafNS = RDFNamespaceRegister.GetByPrefix("foaf");
RDFNamespace foafNS = RDFNamespaceRegister.GetByNamespace("http://xmlns.com/foaf/0.1/");

//remove a namespace from the register (the one created for San Antonio Spurs...)
RDFNamespaceRegister.RemoveNamespace(spursNamespace);
 

 

Last edited Nov 29, 2012 at 3:54 PM by mdesalvo, version 13