Example SPARQL queries, mostly for working with ZBW data sets
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
dcub
econ_pers
gnd
jel
lobid
pm20
stw
viaf
wikidata
README.md
add_rdfs_labels.ru
class_overview.rq
graph_overview.rq
graph_overview_extended.rq
graph_overview_simple.rq
property_overview.rq
replace_values_list.pl
text_search.rq
version_date.rq

README.md

SPARQL Lab Queries

A repository of SPARQL queries for ZBW and related datasets

The queries in this repository has been tested against the ZBW Labs SPARQL endpoint, running on Fuseki. They can be viewed, edited and executed via the links below. The default endpoint is http://zbw.eu/beta/sparql/stwv/query, holding multiple versions of STW Thesaurus for Econocmis. A different (CORS enabled) endpoint can be selected via URI (e.g., &endpoint=http://data.nobelprize.org/sparql).

General queries for exploring a SPARQL endpoint

(Should work with all SPARQL 1.1 compliant services, but particularly the first query may time out for large datasets.)

Query Description
graph_overview_simple Count the triples of the default graph and all named graphs of a SPARQL service
graph_overview_extended Count the triples, distinct subjects, distinct classes and distinct properties of the default graph and all named graphs of a SPARQL service (may be very slow on large triple stores!)
class_overview Count the occurences of RDF classes (in the default graph graph of a SPARQL service - uncomment graph statement and insert graph name for counting in a named graph)
property_overview Count the occurences of RDF properties (in the default graph graph of a SPARQL service - uncomment graph statement and insert graph name for counting in a named graph)
version_date Try to identify the version and/or date of a dataset
text_search Search arbitrary subjects by free text and list them with a label

Dataset-specific queries

STW Thesaurus for Economics

German Integrated Autority File (GND)

Economists subset of GND

20th Century Press Archives (PM20)

Wikidata

VIAF

Contributing

Contributions to this repository are highly welcome, particularly if they reveal more about the datasets mentioned above. URIs to queries somewhere on GitHub and a short description are all what is needed. A pull request on a amended README.md file would be perfect. Please open an issue, if something does not work as expected.