query-75a01faa96d0672cb1aff0b01fb214fb
20:13, 11 October 2018 (UTC)) talkHow should I optimize the query? Thanks in advance! strakhov (
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?item ?LabelES
WHERE
{
?item wdt:P31 wd:Q4167836 .
?sitelink schema:about ?item; schema:isPartOf <https://es.wikipedia.org/> ; schema:name ?LabelES;
FILTER ( REGEX(?LabelES, "^CategorÃa:Iglesias .*") )
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?LabelES"):::projected
v2("?item"):::projected
v3("?sitelink")
c6([https://es.wikipedia.org/]):::iri
c3(["wd:Q4167836"]):::iri
f0[["regex(?LabelES,'^CategorÃa:Iglesias .*')"]]
f0 --> v1
v2 --"wdt:P31"--> c3
v3 --"schema:about"--> v2
v3 --"schema:isPartOf"--> c6
v3 --"schema:name"--> v1