query-c75635c8a8b77ea4a5ae648df3aa07ac

rq turtle/ttl

can also be used to simply bind constant values to variables in order to increase readability. For example, a query that finds all female priests: BIND

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?woman ?womanLabel
WHERE
{
  ?woman wdt:P31 wd:Q5;
         wdt:P21 wd:Q6581072;
         wdt:P106 wd:Q42603.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?woman"):::projected c6(["wd:Q42603"]):::iri c8(["bd:serviceParam"]):::iri c2(["wd:Q5"]):::iri c10(["en"]):::literal c4(["wd:Q6581072"]):::iri v1 --"wdt:P31"--> c2 v1 --"wdt:P21"--> c4 v1 --"wdt:P106"--> c6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end