query-32f7916c27e1a4b303f9b733564cf7d0

rq turtle/ttl

title: Senses on English lexemes with an offensive or profanity style statement

date: 2024-01-25

author: So9q

SELECT ?l ?sense ?lemma ?swearLabel WHERE { ?l ontolex:sense ?sense ; # the sense dct:language wd:Q1860 ; # the language wikibase:lemma ?lemma . # and the lemma VALUES ?swear { wd:Q184439 wd:Q545779 } ?sense wdt:P6191 ?swear . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" . } }

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/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: Senses on English lexemes with an offensive or profanity style statement
# date: 2024-01-25
# author: So9q
SELECT ?l ?sense ?lemma ?swearLabel WHERE {
  ?l ontolex:sense ?sense ; # the sense
     dct:language wd:Q1860 ; # the language
     wikibase:lemma ?lemma . # and the lemma
  VALUES ?swear {
    wd:Q184439
    wd:Q545779
  }
  ?sense wdt:P6191 ?swear .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" . }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?l"):::projected v3("?lemma"):::projected v2("?sense"):::projected v4("?swear") c7(["bd:serviceParam"]):::iri c3(["wd:Q1860"]):::iri c9(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal v1 --"ontolex:sense"--> v2 v1 --"dct:language"--> c3 v1 --"wikibase:lemma"--> v3 bind0[/VALUES ?swear/] bind0-->v4 bind00(["wd:Q184439"]) bind00 --> bind0 bind01(["wd:Q545779"]) bind01 --> bind0 v2 --"wdt:P6191"--> v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end