query-80fef41f56df4b44d67e4c6b7cfc6d3a

rq turtle/ttl

memorable trees without code - Existing only SELECT DISTINCT ?item ?itemLabel ?sitelink ?exist WHERE { ?item wdt:P31 wd:Q811534 . ?item wdt:P17 wd:Q213 . OPTIONAL { ?item wdt:P677 ?itemDescription } FILTER (!BOUND(?itemDescription)) OPTIONAL { ?sitelink schema:about ?item . ?sitelink schema:inLanguage "cs" } SERVICE wikibase:label { bd:serviceParam wikibase:language "cs"} BIND(NOT EXISTS{ ?item wdt:P31 wd:Q15893266 } AS ?exist)
FILTER ( ?exist) }

Use at

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#>
#memorable trees without code - Existing only
SELECT DISTINCT ?item ?itemLabel ?sitelink ?exist
WHERE
{
    ?item wdt:P31 wd:Q811534 .
    ?item wdt:P17 wd:Q213 .
    OPTIONAL { ?item wdt:P677 ?itemDescription  }
    FILTER (!BOUND(?itemDescription))
    OPTIONAL { ?sitelink schema:about ?item . ?sitelink schema:inLanguage "cs" } 
    SERVICE wikibase:label { bd:serviceParam wikibase:language "cs"}
    BIND(NOT EXISTS{ ?item wdt:P31 wd:Q15893266 } AS ?exist)     
    FILTER ( ?exist)
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?exist"):::projected v3("?item"):::projected v2("?itemDescription") v4("?sitelink"):::projected c8(["cs"]):::literal c2(["wd:Q811534"]):::iri c4(["wd:Q213"]):::iri c10(["bd:serviceParam"]):::iri f0[["?exist"]] f0 --> v5 f1[["not bound(?itemDescription)"]] f1 --> v2 v3 --"wdt:P31"--> c2 v3 --"wdt:P17"--> c4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P677".-> v2 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v4 -."schema:about".-> v3 v4 --"schema:inLanguage"--> c8 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c8 end v3 --"wdt:P31"--> null bind2[/"not "/] subgraph bind2e0["Exists Clause"] e0v1 --"wdt:P31"--> e0c2 e0v1("?item"):::projected e0c2(["wd:Q15893266"]):::iri end bind2--EXISTS--> bind2e0 v3 --o bind2 c1 --o bind2 null --o bind2 bind2 --as--o v5