Last active
June 4, 2023 11:44
-
-
Save knbknb/007d04dcfe09ad4d7ba0d8653a0dab82 to your computer and use it in GitHub Desktop.
SPARQL: show common graph objects and types in a default namespace
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
# 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