query-5eae09a89dfa42225c671e4a980268f8

rq turtle/ttl

Item has English Description "Ghanaian politician"

Has no Dag description

Replace Language or Keywords

SELECT ?item ?itemLabel { BIND( STRLANG( "Ghanaian politician", "en" ) AS ?desc ) . ?item schema:description ?desc . MINUS { ?item schema:description ?description . FILTER( LANG( ?description ) = "dag" ) . } . SERVICE wikibase:label { bd:serviceParam wikibase:language "dag,en" } . } order by ?itemLabel

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Item has English Description "Ghanaian politician"
# Has no Dag description
# Replace Language or Keywords
SELECT ?item ?itemLabel {
  BIND( STRLANG( "Ghanaian politician", "en" ) AS ?desc ) .
  ?item schema:description ?desc .
  MINUS {
    ?item schema:description ?description .
    FILTER( LANG( ?description ) = "dag" ) .
  } .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "dag,en" } .
}
order by ?itemLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?desc") v4("?description") v3("?item"):::projected v1("?itemLabel"):::projected c6(["dag,en"]):::literal c4(["bd:serviceParam"]):::iri bind0[/"STRLANG('Ghanaian politician','en')"/] bind0 --as--o v2 v3 --"schema:description"--> v2 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; f2[["?description = 'dag'"]] f2 --> v4 v3 --"schema:description"--> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end