query-1bad929fa06d251f8a2af5aff8700382

rq turtle/ttl

Labels ≠ Sitelink SELECT ?item ?sitelink_label ?label ?wiki_sitelink WHERE{ ?wiki_sitelink schema:about ?item; schema:isPartOf https://or.wikipedia.org/; schema:name ?sitelink_label . ?item rdfs:label ?label . FILTER(LANG(?label) = 'or') . FILTER(false = (LCASE(?sitelink_label) = LCASE(?label)) ) . FILTER(false=CONTAINS(?sitelink_label,")"))

?item wdt:P31 wd:Q4167836 . #Remove the Hash (#) to get only categories

} LIMIT 456

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
# Labels ≠ Sitelink
SELECT ?item ?sitelink_label ?label ?wiki_sitelink 
WHERE{
 ?wiki_sitelink schema:about ?item; 
   schema:isPartOf <https://or.wikipedia.org/>; 
   schema:name ?sitelink_label .
?item rdfs:label ?label .
  FILTER(LANG(?label) = 'or') .
  FILTER(false = (LCASE(?sitelink_label) = LCASE(?label)) ) .
  FILTER(false=CONTAINS(?sitelink_label,")"))
#?item wdt:P31 wd:Q4167836 .   #Remove the Hash (#) to get only categories
}
LIMIT 456

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?item"):::projected v2("?label"):::projected v1("?sitelink_label"):::projected v3("?wiki_sitelink"):::projected c6([https://or.wikipedia.org/]):::iri f0[["'false^^xsd:boolean' = contains(?sitelink_label,')')"]] f0 --> v1 f1[["'false^^xsd:boolean' = lower-case(?sitelink_label) = lower-case(?label)"]] f1 --> v1 f1 --> v2 f2[["?label = 'or'"]] f2 --> v2 v3 --"schema:about"--> v4 v3 --"schema:isPartOf"--> c6 v3 --"schema:name"--> v1 v4 --"rdfs:label"--> v2