query-bf10b0f04256f06db43a3f06723790f1

rq turtle/ttl

Renaming label variablesHi, I only need the label of the entity, but I need this variable mapped to a specific variable name (innerText).

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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 ?innerText  WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?century wdt:P31 wd:Q578.
  ?century wdt:P585 "1600-00-00T00:00:00Z"^^xsd:dateTime.
  BIND(?centuryLabel as ?innerText)
}
LIMIT 1

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?century") v2("?innerText"):::projected c6(["wd:Q578"]):::iri c2(["bd:serviceParam"]):::iri c8(["1600-00-00T00:00:00Z^^xsd:dateTime"]):::literal c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v1 --"wdt:P31"--> c6 v1 --"wdt:P585"--> c8 bind0[/"?centuryLabel"/] null --o bind0 bind0 --as--o v2