Module sophia_api::ns
source · [−]Expand description
Standard and custom namespaces.
This module provides:
- the
Namespace
type for defining custom namespace; - modules corresponding to the most common namespaces.
Example
use sophia_api::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
The standard owl:
namespace
The standard rdf:
namespace.
The standard rdfs:
namespace.
The standard xml:
namespace
The standard xsd:
namespace.
Structs
A custom namespace.