Module sophia::ns

source ·
Expand description

Standard namespaces.

Example

use sophia::graph::*;
use sophia::graph::inmem::FastGraph;
use sophia::term::StaticTerm;
 
let mut g = FastGraph::new();
let foo = StaticTerm::new_iri("http://example.org/foo").unwrap();

use sophia::ns::{rdf, rdfs, xsd};
 
g.insert(&foo, &rdf::type_, &rdf::Property);
g.insert(&foo, &rdfs::range, &xsd::string);

Modules

The standard rdf: namespace.
The standard rdfs: namespace.
The standard xsd: namespace.