query-8b66be82d4df159ac58bed35bbe61368
title: лексемы о реалиях РФ SELECT ?l ?lemma ?lexcat ?sense ?langLabel ?item ?itemLabel ?def WHERE { { SELECT ?l ?lemma ?lexcat ?sense ?lang ?item (SAMPLE(?def_) AS ?def) WHERE { ?l a ontolex:LexicalEntry ; dct:language ?lang ; 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. } GROUP BY ?l ?lemma ?sense ?lang ?item ?lexcat } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
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 ?langLabel ?item ?itemLabel ?def WHERE {
{
SELECT ?l ?lemma ?lexcat ?sense ?lang ?item (SAMPLE(?def_) AS ?def) WHERE {
?l a ontolex:LexicalEntry ; dct:language ?lang ; 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.
}
GROUP BY ?l ?lemma ?sense ?lang ?item ?lexcat
}
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;
v8("?def"):::projected
v6("?def_")
v7("?item"):::projected
v1("?l"):::projected
v2("?lang")
v4("?lemma"):::projected
v3("?lexcat"):::projected
v5("?sense"):::projected
c2(["ontolex:LexicalEntry"]):::iri
c10(["wd:Q159"]):::iri
c12(["bd:serviceParam"]):::iri
c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"a"--> c2
v1 --"dct:language"--> v2
v1 --"wikibase:lexicalCategory"--> v3
v1 --"wikibase:lemma"--> v4
v1 --"ontolex:sense"--> v5
v5 --"skos:definition"--> v6
v5 --"wdt:P5137"--> v7
v7 --"wdt:P17"--> c10
bind1[/"sample(?def_)"/]
v6 --o bind1
bind1 --as--o v8
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end