query-abfc06a33588a8b46b87ee9cca2a6527
Obter páginas wikipedias pt,en,commons
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 ?item ?itemLabel ?article ?article1 ?article2 WHERE {
?item (wdt:P131/wdt:P279?) wd:Q36433. #Porto
{?item wdt:P1702 [] . } #iges
UNION
{ ?item wdt:P1700 [] . } #sipa
?article schema:about ?item .
?article schema:isPartOf <https://pt.wikipedia.org/> . #WP.pt
?article1 schema:about ?item .
?article1 schema:isPartOf <https://en.wikipedia.org/> . #WP.en
?article2 schema:about ?item .
?article2 schema:isPartOf <https://commons.wikimedia.org/> . #Commons
SERVICE wikibase:label {
bd:serviceParam wikibase:language "pt"
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?article"):::projected
v3("?article1"):::projected
v4("?article2"):::projected
v1("?item"):::projected
a2((" "))
a3((" "))
a1((" "))
c14(["pt"]):::literal
c10([https://commons.wikimedia.org/]):::iri
c2(["wd:Q36433"]):::iri
c9([https://en.wikipedia.org/]):::iri
c12(["bd:serviceParam"]):::iri
c8([https://pt.wikipedia.org/]):::iri
v1 --"wdt:P131"--> a1
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
a1 --"wdt:P279"--> c2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
end
union0r <== or ==> union0l
end
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1700"--> a3
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1702"--> a2
end
union1r <== or ==> union1l
end
v2 --"schema:about"--> v1
v2 --"schema:isPartOf"--> c8
v3 --"schema:about"--> v1
v3 --"schema:isPartOf"--> c9
v4 --"schema:about"--> v1
v4 --"schema:isPartOf"--> c10
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end