Skip to content

Instantly share code, notes, and snippets.

@dmccreary
Created July 14, 2017 20:32
Show Gist options
  • Save dmccreary/dc633a7b6b25a890017fab03e4309a5f to your computer and use it in GitHub Desktop.
Save dmccreary/dc633a7b6b25a890017fab03e4309a5f to your computer and use it in GitHub Desktop.
SKOS prefLabels with optional altLabels.
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skosxl: <http://www.w3.org/2008/05/skos-xl#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT ?s ?p ?o
WHERE
{
?s skosxl:prefLabel ?o .
OPTIONAL {?s skosxl:altLabel ?o}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment