[−][src]Module sophia::term::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_term::ns::{Namespace, rdf, rdfs, xsd}; let schema = Namespace::new("http://schema.org/").unwrap(); let s_name = schema.get("name").unwrap(); // and then, given a graph: //g.insert(&s_name, &rdf::type_, &rdf::Property); //g.insert(&s_name, &rdfs::range, &xsd::string);
Modules
owl | The standard |
rdf | The standard |
rdfs | The standard |
xml | The standard |
xsd | The standard |
Structs
Namespace | A custom namespace. |