query-012ad90fe0075a55bffac135f10147e1
But let's say I want to ask for all forms that only have a specific set of grammatical features, and nothing else. E.g. that only have exactly genitive and plural. Or that have only genitive. This one doesn't work, as it returns me all that have genitive and something else too:
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX dct: <http://purl.org/dc/terms/>
SELECT ?form ?representation WHERE {
?lexemeId dct:language wd:Q6654;
ontolex:lexicalForm ?form.
?form ontolex:representation ?representation ;
wikibase:grammaticalFeature wd:Q146233 .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?form"):::projected
v1("?lexemeId")
v3("?representation"):::projected
c2(["wd:Q6654"]):::iri
c6(["wd:Q146233"]):::iri
v1 --"dct:language"--> c2
v1 --"ontolex:lexicalForm"--> v2
v2 --"ontolex:representation"--> v3
v2 --"wikibase:grammaticalFeature"--> c6