query-e3fa77aba5a91591f30b5f42706ed92f

rq turtle/ttl

Forms of nouns in German

Based on a query by Uziel302

SELECT ?lexemeId ?lemma ?form ?word ?grammatikalisches_Geschlecht ?grammatikalisches_GeschlechtLabel ?gF ?gFLabel WHERE { ?lexemeId dct:language wd:Q188; wikibase:lexicalCategory wd:Q1084; wikibase:lemma ?lemma; ontolex:lexicalForm ?form. ?form ontolex:representation ?word. ?form wikibase:grammaticalFeature ?gF. OPTIONAL { ?lexemeId wdt:P5185 ?grammatikalisches_Geschlecht. } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],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#>
# Forms of nouns in German
# Based on a query by Uziel302
SELECT ?lexemeId ?lemma ?form ?word ?grammatikalisches_Geschlecht ?grammatikalisches_GeschlechtLabel ?gF ?gFLabel WHERE {
  ?lexemeId dct:language wd:Q188;
    wikibase:lexicalCategory wd:Q1084;
    wikibase:lemma ?lemma;
    ontolex:lexicalForm ?form.
  ?form ontolex:representation ?word.
  ?form wikibase:grammaticalFeature ?gF.
  OPTIONAL { ?lexemeId wdt:P5185 ?grammatikalisches_Geschlecht. }
  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; v3("?form"):::projected v5("?gF"):::projected v6("?grammatikalisches_Geschlecht"):::projected v2("?lemma"):::projected v1("?lexemeId"):::projected v4("?word"):::projected c11(["bd:serviceParam"]):::iri c4(["wd:Q1084"]):::iri c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal c2(["wd:Q188"]):::iri v1 --"dct:language"--> c2 v1 --"wikibase:lexicalCategory"--> c4 v1 --"wikibase:lemma"--> v2 v1 --"ontolex:lexicalForm"--> v3 v3 --"ontolex:representation"--> v4 v3 --"wikibase:grammaticalFeature"--> v5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P5185".-> v6 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end