NAME
rdf/schema - RDFS vocabulary helpers and entailment store.
SYNOPSIS
from rdf/schema import RDFSchemaStore;
from std/db import DB;
let store := new RDFSchemaStore(dbh: DB.temp());
store.install_schema();
let quads := store.find(); // includes inferred RDFS quads
DESCRIPTION
RDFSchemaStore extends RDFStore with simple RDFS entailment. It returns explicit and inferred quads for subclass, subproperty, domain, range, and type relationships. The explicit store content is unchanged; inferences are computed from stored quads when queried.
EXPORTS
Classes
RDFSchemaStoreA subclass of
RDFStore.explicit_find(subject := null, predicate := null, object := null, graph := null)Returns only stored quads matching the pattern.
inferred_quads()Returns inferred quads that are not explicitly stored.
find(subject := null, predicate := null, object := null, graph := null)Returns explicit and inferred quads matching the pattern.
COPYRIGHT AND LICENCE
rdf/schema is copyright Toby Inkster.
It is free software; you may redistribute it and/or modify it under the terms of either the Artistic License 1.0 or the GNU General Public License version 2.