Example queries
In the following some example queries are listed. A Semantic Web agent may perform them to explore the riese dataset.
Task: List all subindicators of the Economy theme.
Try!
the following SPARQL query, which does the job:
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX riese: <http://riese.joanneum.at/schema/core#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT *
FROM <http://www.w3.org/2007/08/pyRdfa/extract?uri=http://riese.joanneum.at/data/economy>
WHERE {
?entry rdf:type riese:Dataset ;
skos:narrower ?sub .
}
Task: List related stuff (from UCI) of the Economy theme.
Try!
the following SPARQL query, which does the job:
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX riese: <http://riese.joanneum.at/schema/core#>
SELECT *
FROM <http://www.w3.org/2007/08/pyRdfa/extract?uri=http://riese.joanneum.at/data/economy>
WHERE {
?entry rdf:type riese:Dataset.
OPTIONAL {
?entry foaf:topic ?topic .
}
OPTIONAL {
?entry rdfs:seeAlso ?seealso .
FILTER(?seealso != <http://riese.joanneum.at/about.html>)
}
OPTIONAL {
?entry owl:sameAs ?sameAs .
}
}
Note that http://riese.joanneum.at/about.html has been excluded, as this is the default link present in every page.
Interfaces
In riese there are severl ways (for machines) to explore the data, based on the Follow-Your-Nose principle:
Data dumps in RDF/XML, available at http://riese.joanneum.at/dump/.
A SPARQL-endpoint, available at http://riese.joanneum.at:3020/
Embedded RDF on every page: open any page (e.g. http://riese.joanneum.at/data/dba10000/) and get the embedded metadata - as XHTML+RDFa - using an RDFa extractor.
Note that all of the RDF data sources are described using a sitemap, available at http://riese.joanneum.at/sitemap.xml. This sitemap makes use of the Semantic Web Crawling sitemap extension.
More details about the REST-interface of the UCI to follow, soon!
