Skip to content

Instantly share code, notes, and snippets.

@tingletech
Last active August 29, 2015 14:19
Show Gist options
  • Save tingletech/e40b2f36c38b9c145625 to your computer and use it in GitHub Desktop.
Save tingletech/e40b2f36c38b9c145625 to your computer and use it in GitHub Desktop.
select distinct ?concept ?label ?prefLabel where {
?concept a gvp:Concept .
?concept skos:inScheme aat: .
?concept skos:prefLabel ?prefLabel .
?concept ?b ?label .
FILTER (?b= skos:prefLabel) .
FILTER (lang(?label) = "en") .
FILTER (lang(?prefLabel) = "en") .
FILTER (regex(?label,"^bo","i")) .
}
order by $prefLabel
LIMIT 20
select distinct ?place ?prefLabel ?parent{
?place skos:inScheme tgn: ;
gvp:prefLabelGVP [xl:literalForm ?prefLabel];
gvp:parentString [xl:literalForm ?parent];
FILTER regex(?prefLabel,"^bo","i")
}
LIMIT 20
select distinct ?concept ?label ?prefLabel ?parent where {
?concept a gvp:PhysPlaceConcept .
?concept skos:inScheme tgn: .
?concept skos:prefLabel ?prefLabel .
?concept gvp:parentString ?parent .
?concept ?b ?label .
FILTER (?b= skos:prefLabel) .
FILTER (lang(?label) = "en") .
FILTER (lang(?prefLabel) = "en") .
FILTER (regex(?label,"^santa","i")) .
}
order by $prefLabel
LIMIT 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment