reteplayground
Construct

Build a small graph (export as TTL / JSON-LD)

SubjectPredicateObject
Q116291descriptionSwiss physicist (1751…
Q116291labelPierre Prevost @en
Q116291P18Open image ↗
Q1543817descriptionGerman philosopher an…
Run this query → no server · no download · no account
caviri.github.io/rete
Run this query in the playground → 39 triples · 375 ms · no server, no download — the query runs in your browser.

The query

PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX schema: <http://schema.org/> CONSTRUCT { ?p rdfs:label ?who ; schema:description ?description ; wdt:P18 ?image . } WHERE { { SELECT ?p WHERE { ?p wdt:P106 wd:Q169470 ; wdt:P106 wd:Q4964182 } LIMIT 15 } ?p rdfs:label ?who . FILTER(LANG(?who) = "en") OPTIONAL { ?p schema:description ?description . FILTER(LANG(?description) = "en") } OPTIONAL { ?p wdt:P18 ?image } }

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