-
Notifications
You must be signed in to change notification settings - Fork 5
Sample SPARQL
Ian Ibbotson edited this page Feb 27, 2017
·
17 revisions
gokb.openlibraryfoundation.org/sparql
test-gokb.openlibraryfoundation.org/sparql
- Organisations
- Titles
- Platforms
- Packages
- TIPPs
select ?s ?name where {
?s a <http://xmlns.com/foaf/0.1/Organization> .
?s <http://www.w3.org/2004/02/skos/core#prefLabel> ?name
}
Run Query on test system (html)
select ?s ?p ?o where {
?s a <http://xmlns.com/foaf/0.1/Organization> .
?s ?p ?o .
}
order by desc(?s)
select ?s ?p ?o where {
?s a <http://purl.org/dc/dcmitype/Service> .
?s ?p ?o .
}
order by desc(?s)
Run Query on test system (html)
select ?s ?p ?o where {
?s a <http://purl.org/dc/dcmitype/Collection> .
?s ?p ?o .
}
order by desc(?s)
Run Query on test system (html)
select ?s ?p ?o where {
?s a <http://www.w3.org/2002/07/owl#Work> .
?s ?p ?o .
}
order by desc(?s)
Run Query on test system (html)
select ?s ?name where {
?s a <http://gokb.org/type/#tipp> .
?s <http://www.w3.org/2004/02/skos/core#prefLabel> ?name
}
Run Query on test system (html)
SELECT ?p ?o
WHERE
{
SERVICE <http://DBpedia.org/sparql>
{ SELECT ?p ?o
WHERE { <http://dbpedia.org/resource/Saquarema> ?p ?o . }
}
}
Run Query on test system (html)
select ?o ?v
where {
?o <http://www.w3.org/2004/02/skos/core#prefLabel> ?v .
FILTER regex( ?o, ".*ourna.*", "i" ) .
}