Skip to content

Example SPARQL queries, mostly for working with ZBW data sets

Notifications You must be signed in to change notification settings

jneubert/sparql-queries

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 https://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://semanticweb.cs.vu.nl/dss about Dutch ships and sailors).

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

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.

About

Example SPARQL queries, mostly for working with ZBW data sets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 70.4%
  • Ruby 15.7%
  • Shell 13.9%