isDefinedBy
relations make Ontologies (TBox) more navigable using follow-your-nose pattern.
This also makes ABox instance data more discoverable.
Use SPARQL to generate relations that associate Classes and Properties the Ontology that describes them.
In this example we will use:
http://www.w3.org/2006/vcard/ns
; http://www.w3.org/2006/vcard/ns# ;
## Uncomment line below if using Virtuoso and executing SPARQL via iSQL or via an ODBC, JDBC, ADO.NET connection ## SPARQL ## Uncomment line (a SPARQL pragma) below if using Virtuoso and there isn't a local Named Graph holding triples retrieved from the Ontology URL ## DEFINE get:soft "add" INSERT INTO <urn:data:qos:vcard> { ?s rdfs:isDefinedBy <http://www.w3.org/2006/vcard/ns#> } FROM <http://www.w3.org/2006/vcard/ns> WHERE { ?s a ?o }
In this example we will use:
http://www.w3.org/ns/ma-ont
; http://www.w3.org/ns/ma-ont#
; SPARQL INSERT INTO <urn:data:qos:ma-ont> { ?s rdfs:isDefinedBy <http://www.w3.org/ns/ma-ont#> } FROM <http://www.w3.org/ns/ma-ont> WHERE { ?s a ?o }