Created
October 26, 2017 17:24
-
-
Save cristiroma/3d302874bb5f8fcb9acae26aa9f13ed9 to your computer and use it in GitHub Desktop.
SPARQL query to extract English term name of SKOS-XL reified labels
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
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
PREFIX dcterms: <http://purl.org/dc/terms/> | |
PREFIX foaf: <http://xmlns.com/foaf/0.1/> | |
PREFIX nm: <http://nomisma.org/id/> | |
PREFIX nmo: <http://nomisma.org/ontology#> | |
PREFIX org: <http://www.w3.org/ns/org#> | |
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> | |
PREFIX skosxl: <http://www.w3.org/2008/05/skos-xl#> | |
SELECT ?s ?y | |
WHERE { | |
?s <http://www.w3.org/2008/05/skos-xl#prefLabel> ?o . | |
?o skosxl:literalForm ?y | |
FILTER (lang(?y) = 'en') | |
} | |
ORDER BY ?o | |
LIMIT 500 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment