query-4ebf5c0c448efa90111ebf3057daf5d4
tambiƩn se puede usar para enlazar simplemente valores constantes a variables para aumentar la legibilidad. Por ejemplo, una consulta que encuentre a todas las mujeres sacerdotes: BIND
Use at
- https://query.wikidata.org/sparql
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 ?mujer ?mujerLabel
WHERE
{
  ?mujer wdt:P31 wd:Q5;
         wdt:P21 wd:Q6581072;
         wdt:P106 wd:Q42603.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?mujer"):::projected 
  c6(["wd:Q42603"]):::iri 
  c8(["bd:serviceParam"]):::iri 
  c10(["#91;AUTO_LANGUAGE#93;"]):::literal 
  c2(["wd:Q5"]):::iri 
  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