query-926e4947d99024fa1210e4178a3e5afb
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel_en ?sitelink ?itemLabel_it
WHERE
{
SERVICE wikibase:mwapi
{
bd:serviceParam wikibase:api "Search" .
bd:serviceParam wikibase:endpoint "www.wikidata.org" .
bd:serviceParam mwapi:srsearch "haswbstatement:P27=Q38 -haslabel:it" .
?item wikibase:apiOutputItem mwapi:title.
}
?article schema:about ?item ;
schema:name ?sitelink ;
schema:isPartOf <https://it.wikipedia.org/> .
OPTIONAL { ?item rdfs:label ?itemLabel_en . filter(lang(?itemLabel_en)="en") }
FILTER (str(?itemLabel_en) != str(?sitelink))
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?article")
v3("?item"):::projected
v1("?itemLabel_en"):::projected
v2("?sitelink"):::projected
c7(["www.wikidata.org"]):::literal
c15([https://it.wikipedia.org/]):::iri
c3(["bd:serviceParam"]):::iri
c9(["haswbstatement:P27=Q38 -haslabel:it"]):::literal
c5(["Search"]):::literal
c11(["mwapi:title"]):::iri
f0[["str(?itemLabel_en) != str(?sitelink)"]]
f0 --> v1
f0 --> v2
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c3 --"mwapi:api"--> c5
c3 --"mwapi:endpoint"--> c7
c3 --"mwapi:srsearch"--> c9
v3 --"mwapi:apiOutputItem"--> c11
end
v4 --"schema:about"--> v3
v4 --"schema:name"--> v2
v4 --"schema:isPartOf"--> c15
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."rdfs:label".-> v1
end