query-15acf15c9678cd135413450bae9fca8a

rq turtle/ttl

08:06, 20 December 2018 (UTC)) talk (KaManHow to modify this query so it lists only forms (?label) without letters "r" and "R"? : This:KaMan@

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX dct: <http://purl.org/dc/terms/>
SELECT ?id ?label WHERE {
  ?l a ontolex:LexicalEntry ; dct:language wd:Q809 ; wikibase:lexicalCategory wd:Q1084 ; ontolex:lexicalForm ?id .
  ?id ontolex:representation ?label .
  FILTER NOT EXISTS { ?id wdt:P443 ?audio. }
  filter(!(contains(?label,"r")||contains(?label,"R")))
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?audio") v2("?id"):::projected v4("?l") v1("?label"):::projected c5(["ontolex:LexicalEntry"]):::iri c9(["wd:Q1084"]):::iri c7(["wd:Q809"]):::iri f0[["not (contains(?label,'r') || contains(?label,'R'))"]] f0 --> v1 f1[["not "]] subgraph f1e0["Exists Clause"] e0v1 --"wdt:P443"--> e0v2 e0v2("?audio"):::projected e0v1("?id"):::projected end f1--EXISTS--> f1e0 f1 --> v2 f1 --> c3 f1 --> v3 v2 --"wdt:P443"--> v3 v4 --"a"--> c5 v4 --"dct:language"--> c7 v4 --"wikibase:lexicalCategory"--> c9 v4 --"ontolex:lexicalForm"--> v2 v2 --"ontolex:representation"--> v1