query-e4d164c8e45f74442fc8b467e7b9a5a7
title: русскоязычные лексемы о реалиях РФ SELECT ?l ?lemma ?lexcat ?sense ?item ?itemLabel (SAMPLE(?def_) AS ?def) WHERE { ?l a ontolex:LexicalEntry ; dct:language wd:Q7737 ; wikibase:lexicalCategory ?lexcat; wikibase:lemma ?lemma. ?l ontolex:sense ?sense.
FILTER NOT EXISTS {?form wikibase:grammaticalFeature ?item }
?sense skos:definition ?def_. ?sense wdt:P5137 ?item. ?item wdt:P17 wd:Q159. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } GROUP BY ?l ?lemma ?sense ?item ?itemLabel ?lexcat
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: русскоязычные лексемы о реалиях РФ
SELECT ?l ?lemma ?lexcat ?sense ?item ?itemLabel (SAMPLE(?def_) AS ?def) WHERE {
?l a ontolex:LexicalEntry ; dct:language wd:Q7737 ; wikibase:lexicalCategory ?lexcat; wikibase:lemma ?lemma.
?l ontolex:sense ?sense.
# FILTER NOT EXISTS {?form wikibase:grammaticalFeature ?item }
?sense skos:definition ?def_.
?sense wdt:P5137 ?item.
?item wdt:P17 wd:Q159.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?l ?lemma ?sense ?item ?itemLabel ?lexcat
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?def")
v5("?def_"):::projected
v6("?item"):::projected
v1("?l"):::projected
v3("?lemma"):::projected
v2("?lexcat"):::projected
v4("?sense"):::projected
c2(["ontolex:LexicalEntry"]):::iri
c11(["wd:Q159"]):::iri
c13(["bd:serviceParam"]):::iri
c15(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c4(["wd:Q7737"]):::iri
v1 --"a"--> c2
v1 --"dct:language"--> c4
v1 --"wikibase:lexicalCategory"--> v2
v1 --"wikibase:lemma"--> v3
v1 --"ontolex:sense"--> v4
v4 --"skos:definition"--> v5
v4 --"wdt:P5137"--> v6
v6 --"wdt:P17"--> c11
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c15
end
bind1[/"sample(?def_)"/]
v5 --o bind1
bind1 --as--o v7