query-cb6c20b1588bc39a0e99846ee555d3ec
elementi Wikidata con TourER ID e voce su Wikipedia SELECT ?item ?itemLabel ?itemDescription ?tourerid ?sitelink_it ?sitelink_en ?sitelink_fr WHERE { ?item wdt:P4133 ?tourerid. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } optional { ?sitelink_it schema:about ?item; schema:isPartOf https://it.wikipedia.org/ . } optional { ?sitelink_en schema:about ?item; schema:isPartOf https://en.wikipedia.org/ . } optional { ?sitelink_fr schema:about ?item; schema:isPartOf https://fr.wikipedia.org/ . } } order by xsd:integer(?tourerid)
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#elementi Wikidata con TourER ID e voce su Wikipedia
SELECT ?item ?itemLabel ?itemDescription ?tourerid ?sitelink_it ?sitelink_en ?sitelink_fr WHERE {
?item wdt:P4133 ?tourerid.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
optional {
?sitelink_it schema:about ?item;
schema:isPartOf <https://it.wikipedia.org/> .
}
optional {
?sitelink_en schema:about ?item;
schema:isPartOf <https://en.wikipedia.org/> .
}
optional {
?sitelink_fr schema:about ?item;
schema:isPartOf <https://fr.wikipedia.org/> .
}
}
order by xsd:integer(?tourerid)
Query found at
- https://www.wikidata.org/wiki/User:Una_tantum
- https://www.wikidata.org/wiki/User:Una_tantum/Queries_Tourer
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v4("?sitelink_en"):::projected
v5("?sitelink_fr"):::projected
v3("?sitelink_it"):::projected
v1("?tourerid"):::projected
c9([https://en.wikipedia.org/]):::iri
c3(["bd:serviceParam"]):::iri
c5(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c10([https://fr.wikipedia.org/]):::iri
c8([https://it.wikipedia.org/]):::iri
v2 --"wdt:P4133"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."schema:about".-> v2
v3 --"schema:isPartOf"--> c8
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v4 -."schema:about".-> v2
v4 --"schema:isPartOf"--> c9
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v5 -."schema:about".-> v2
v5 --"schema:isPartOf"--> c10
end