query-23b10c317721c6e39ba5daff1cb4d7e2
Goldmund100
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
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 ?title ?item ?article_it
WHERE
{
SERVICE wikibase:mwapi
{
bd:serviceParam wikibase:api "Search" .
bd:serviceParam wikibase:endpoint "it.wikipedia.org" .
bd:serviceParam mwapi:srnamespace "0" .
bd:serviceParam mwapi:srsearch 'deepcat:"Cantanti lirici italiani"' .
?title wikibase:apiOutput mwapi:title .
}
BIND (STRLANG(?title, "it") AS ?title_it)
?article_it schema:name ?title_it .
?article_it schema:about ?item .
?article_it schema:isPartOf <https://it.wikipedia.org/> .
?item wdt:P31 wd:Q5 .
MINUS { ?item wdt:P106 [] }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?article_it"):::projected
v4("?item"):::projected
v1("?title"):::projected
v2("?title_it")
a1((" "))
c10(["deepcat:"Cantanti lirici italiani""]):::literal
c16([https://it.wikipedia.org/]):::iri
c6(["it.wikipedia.org"]):::literal
c8(["0"]):::literal
c2(["bd:serviceParam"]):::iri
c4(["Search"]):::literal
c18(["wd:Q5"]):::iri
c12(["mwapi:title"]):::iri
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c2 --"mwapi:api"--> c4
c2 --"mwapi:endpoint"--> c6
c2 --"mwapi:srnamespace"--> c8
c2 --"mwapi:srsearch"--> c10
v1 --"mwapi:apiOutput"--> c12
end
bind0[/"STRLANG(?title,'it')"/]
v1 --o bind0
bind0 --as--o v2
v3 --"schema:name"--> v2
v3 --"schema:about"--> v4
v3 --"schema:isPartOf"--> c16
v4 --"wdt:P31"--> c18
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v4 --"wdt:P106"--> a1
end