Created
March 28, 2013 22:37
-
-
Save graingert/5267415 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE rdf:RDF [ | |
<!ENTITY owl "http://www.w3.org/2002/07/owl#" > | |
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" > | |
<!ENTITY bo "http://graingert.co.uk/broadcast-ontology/" > | |
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" > | |
]> | |
<rdf:RDF xmlns="http://graingert.co.uk/broadcast-ontology/" | |
xml:base="http://graingert.co.uk/broadcast-ontology/" | |
xmlns:bo="http://graingert.co.uk/broadcast-ontology/" | |
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" | |
xmlns:owl="http://www.w3.org/2002/07/owl#" | |
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> | |
<owl:ObjectProperty rdf:about="&bo;version"> | |
<rdfs:domain rdf:resource="&bo;Programme"/> | |
<rdfs:range rdf:resource="&bo;Version"/> | |
</owl:ObjectProperty> | |
<owl:ObjectProperty rdf:about="&bo;version_of"> | |
<owl:inverseOf rdf:resource="&bo;version"/> | |
</owl:ObjectProperty> | |
<owl:Class rdf:about="&bo;Programme"/> | |
<owl:Class rdf:about="&bo;Version"/> | |
<Program rdf:about="&bo;foo"> | |
<version> | |
<Version rdf:about="&bo;first_version"></Version> | |
</version> | |
</Program> | |
</rdf:RDF> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PREFIX bo: <http://graingert.co.uk/broadcast-ontology/> | |
SELECT ?s ?p ?o | |
WHERE { ?s bo:version_of ?o } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment