query-7be6a34f538ac7b22680f0ee2764117d

rq turtle/ttl

Problems with FILTER unequal. (P155)follows With the following query, i get 309 articles from the magazine "Die Gartenlaube" which have

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?Die_Gartenlaube ?Die_GartenlaubeLabel ?follows ?followsLabel ?teilvon ?teilvonFollows  WHERE { 
  ?Die_Gartenlaube wdt:P1433 wd:Q655617;
    wdt:P155 ?follows.
  OPTIONAL { ?Die_Gartenlaube wdt:P179 ?teilvon. }
  OPTIONAL { ?follows wdt:P179 ?teilvonFollows. }
  #FILTER(?teilvon = ?teilvonFollows)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?Die_Gartenlaube"):::projected v2("?follows"):::projected v3("?teilvon"):::projected v4("?teilvonFollows"):::projected c6(["bd:serviceParam"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal c2(["wd:Q655617"]):::iri v1 --"wdt:P1433"--> c2 v1 --"wdt:P155"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P179".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P179".-> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end