query-e367eb0ed98b4242d85fc3779e5b80bc
Luckyz?named_after?named_after_Q1233
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?itemDescription ?named_after_Q1233 WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
?item wdt:P31 wd:Q126807.
?item rdfs:label ?label.
FILTER CONTAINS(?label, "Sandro Pertini")
OPTIONAL
{
?item wdt:P138 wd:Q1233.
VALUES ?named_after_Q1233 { true }
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?label")
v3("?named_after_Q1233"):::projected
c3(["bd:serviceParam"]):::iri
c5(["en"]):::literal
c7(["wd:Q126807"]):::iri
c10(["wd:Q1233"]):::iri
f0[["contains(?label,'Sandro Pertini')"]]
f0 --> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
end
v2 --"wdt:P31"--> c7
v2 --"rdfs:label"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P138".-> c10
bind1[/VALUES ?named_after_Q1233/]
bind1-->v3
bind10(["true^^xsd:boolean"])
bind10 --> bind1
end