[−][src]Module sophia::ns
Standard and custom namespaces.
This module provides:
- the
Namespace
type for defining custom namespace; - modules corresponding to the most common namespaces.
Example
use sophia::graph::MutableGraph; use sophia::graph::inmem::FastGraph; use sophia::ns::{Namespace, rdf, rdfs, xsd}; let mut g = FastGraph::new(); let schema = Namespace::new("http://schema.org/").unwrap(); let s_name = schema.get("name").unwrap(); g.insert(&s_name, &rdf::type_, &rdf::Property); g.insert(&s_name, &rdfs::range, &xsd::string);
Modules
rdf | The standard |
rdfs | The standard |
xml | The standard |
xsd | The standard |
Structs
Namespace | A custom namespace. |