Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
SPARQL Query for Retrieving Classes with Properties
PREFIX dc:<>
PREFIX rdfs:<>
PREFIX time:<>
PREFIX geo:<>
PREFIX foaf:<>
PREFIX event:<>
PREFIX owl:<>
PREFIX rdf:<>
PREFIX vs:<>
select distinct ?class ?property ?label
where {
?class a owl:Class .
?property a owl:ObjectProperty ;
rdfs:domain ?class .
optional {
?property rdfs:label ?label .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.