query-89bb5474af670dc894c5dc3c9c914571
TODO
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?coordenadas ?categor_a_en_Commons ?commons ?imagen ?eswiki WHERE {
VALUES ?thing {
wd:Q1444119 # example
wd:Q1358190 # example
wd:Q1157982 # example
wd:Q1447755 # example
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "es". }
?item wdt:P131 ?thing.
OPTIONAL { ?item wdt:P625 ?coordenadas. }
OPTIONAL { ?item wdt:P373 ?categor_a_en_Commons. }
OPTIONAL { ?item wdt:P18 ?imagen. }
OPTIONAL {
?eswiki schema:about ?item;
schema:isPartOf <https://es.wikipedia.org/>. }
OPTIONAL {
?commons schema:about ?item;
schema:isPartOf <https://commons.wikimedia.org/>. }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?categor_a_en_Commons"):::projected
v7("?commons"):::projected
v3("?coordenadas"):::projected
v6("?eswiki"):::projected
v5("?imagen"):::projected
v2("?item"):::projected
v1("?thing")
c2(["bd:serviceParam"]):::iri
c12([https://commons.wikimedia.org/]):::iri
c11([https://es.wikipedia.org/]):::iri
c4(["es"]):::literal
bind0[/VALUES ?thing/]
bind0-->v1
bind00(["wd:Q1444119"])
bind00 --> bind0
bind01(["wd:Q1358190"])
bind01 --> bind0
bind02(["wd:Q1157982"])
bind02 --> bind0
bind03(["wd:Q1447755"])
bind03 --> bind0
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v2 --"wdt:P131"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P625".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P373".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P18".-> v5
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v6 -."schema:about".-> v2
v6 --"schema:isPartOf"--> c11
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v7 -."schema:about".-> v2
v7 --"schema:isPartOf"--> c12
end