query-51afe4d54a28cc3a9b0575dea06bce4a
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
select ?item ?itemLabel where {
?item rdfs:label ?label .
OPTIONAL {?item wdt:P31 ?p31 } #instance P31
FILTER (!BOUND(?p31)) . #no instance set
FILTER( LANG(?label) = "it" ) .
FILTER( CONTAINS(?label, "assedio") ) .
SERVICE wikibase:label { bd:serviceParam wikibase:language "it" } .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v1("?label")
v2("?p31")
c6(["bd:serviceParam"]):::iri
c2(["it"]):::literal
f0[["contains(?label,'assedio')"]]
f0 --> v1
f1[["?label = 'it'"]]
f1 --> v1
f2[["not bound(?p31)"]]
f2 --> v2
v3 --"rdfs:label"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P31".-> v2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c2
end