[][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 owl: namespace

rdf

The standard rdf: namespace.

rdfs

The standard rdfs: namespace.

xml

The standard xml: namespace

xsd

The standard xsd: namespace.

Structs

Namespace

A custom namespace.