Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save knbknb/007d04dcfe09ad4d7ba0d8653a0dab82 to your computer and use it in GitHub Desktop.
Save knbknb/007d04dcfe09ad4d7ba0d8653a0dab82 to your computer and use it in GitHub Desktop.
SPARQL: show common graph objects and types in a default namespace
# CONSTRUCT query to surface the graph schema (ontology) as a sub-graph.
CONSTRUCT {
?domain ?property ?range
}
WHERE {
?property rdfs:domain ?domain ;
rdfs:range ?range .
FILTER(?domain NOT IN(rdfs:Class, rdf:Property))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment