Skip to content

Instantly share code, notes, and snippets.

@ColinMaudry
Created May 31, 2015 16:29
Show Gist options
  • Save ColinMaudry/b72bedc0c9ca7cb14c15 to your computer and use it in GitHub Desktop.
Save ColinMaudry/b72bedc0c9ca7cb14c15 to your computer and use it in GitHub Desktop.
Get matching columns
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX phdd: <http://rdf-vocabulary.ddialliance.org/phdd#>
SELECT ?type ?definition ?property ?propertyLabel WHERE {
?column a phdd:Column ;
rdfs:label ?label ;
data:hasProperty ?property ;
data:hasType ?type .
?property rdfs:label ?propertyLabel .
?type rdfs:comment ?definition .
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment