UK Parliament SPARQL demo

A console over the vendored UK Parliament Linked Data corpus, served by factoidal's verified RDF/SPARQL 1.1 implementation. Endpoint at /sparql (SPARQL 1.1 Protocol). Sample queries from /parliament-queries.json.

Backend: …
SELECT (COUNT(*) AS ?n) WHERE { ?s ?p ?o } SELECT ?s ?type WHERE { ?s a ?type } LIMIT 5 PREFIX geo: <http://www.opengis.net/ont/geosparql#> SELECT ?s ?wkt WHERE { ?s geo:asWKT ?wkt } LIMIT 5 PREFIX geo: <http://www.opengis.net/ont/geosparql#> SELECT ?s ?p ?o WHERE { ?s ?p ?o . ?o a geo:wktLiteral } LIMIT 3 PREFIX owl: <http://www.w3.org/2002/07/owl#> SELECT ?cls WHERE { ?cls a owl:Class } LIMIT 30 PREFIX owl: <http://www.w3.org/2002/07/owl#> SELECT ?p WHERE { ?p a owl:ObjectProperty } LIMIT 10 PREFIX : <https://id.parliament.uk/schema/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?Legislature ?LegislatureName ?House ?HouseName WHERE { ?House a :House . OPTIONAL { ?House :houseName ?HouseName . } OPTIONAL { ?House rdfs:label ?HouseName . } OPTIONAL { ?House :name ?HouseName . } OPTIONAL { ?House :houseInLegislature ?Legislature . OPTIONAL { ?Legislature rdfs:label ?LegislatureName . } OPTIONAL { ?Legislature :name ?LegislatureName . } } } ORDER BY ?LegislatureName ?HouseName LIMIT 20 PREFIX : <https://id.parliament.uk/schema/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?House ?HouseName ?Legislature ?LegislatureName WHERE { ?House a :House . OPTIONAL { ?House :houseName ?HouseName . } OPTIONAL { ?House rdfs:label ?HouseName . } OPTIONAL { ?House :name ?HouseName . } OPTIONAL { ?House :houseInLegislature ?Legislature . OPTIONAL { ?Legislature :name ?LegislatureName . } OPTIONAL { ?Legislature rdfs:label ?LegislatureName . } } } LIMIT 10 PREFIX : <https://id.parliament.uk/schema/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?Procedure ?ProcedureName ?ProcedureDescription ?StyleEntity ?StyleEntityName WHERE { ?Procedure a :ParliamentPeriod . OPTIONAL { ?Procedure :parliamentPeriodName ?ProcedureName . } OPTIONAL { ?Procedure rdfs:label ?ProcedureName . } OPTIONAL { ?Procedure :parliamentPeriodNote ?ProcedureDescription . } OPTIONAL { ?StyleEntity a :Threshold . OPTIONAL { ?StyleEntity rdfs:label ?StyleEntityName . } OPTIONAL { ?StyleEntity :name ?StyleEntityName . } } } LIMIT 10 PREFIX : <https://id.parliament.uk/schema/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?Procedure ?ProcedureName ?ProcedureDescription ?StartDate ?EndDate WHERE { ?Procedure a :ParliamentPeriod . OPTIONAL { ?Procedure :parliamentPeriodName ?ProcedureName . } OPTIONAL { ?Procedure rdfs:label ?ProcedureName . } OPTIONAL { ?Procedure :parliamentPeriodNote ?ProcedureDescription . } OPTIONAL { ?Procedure :parliamentPeriodStartDate ?StartDate . } OPTIONAL { ?Procedure :parliamentPeriodEndDate ?EndDate . } } LIMIT 5