reteplayground
Select

Federation: where are these books held? (via USTC)

SELECT ?title ?printer ?library WHERE {
  ?book a schema:Book ; rdfs:label ?title ; rdfs:seeAlso …
  ?ed u:printer ?p . ?p rdfs:label ?printer .
  ?ed u:heldBy ?l . ?l rdfs:label ?library
}
LIMIT 40
Run this query → no server · no download · no account
caviri.github.io/rete
Run this query in the playground → 40 rows · 7.9 s · no server, no download — the query runs in your browser.

The query

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX schema: <http://schema.org/> PREFIX u: <https://www.ustc.ac.uk/ontology#> SELECT ?title ?printer ?library WHERE { ?book a schema:Book ; rdfs:label ?title ; rdfs:seeAlso ?ed . ?ed u:printer ?p . ?p rdfs:label ?printer . ?ed u:heldBy ?l . ?l rdfs:label ?library } LIMIT 40

rete playground · documentation · github.com/caviri/rete