query-fd11a9faad4e479bfdcc37c480a1ad4b
title: List of lexemes in French about occupation items with gender SELECT DISTINCT ?item ?itemLabel ?sense ?lexeme ?lemma ?genre ?genreLabel WHERE { ?item (wdt:P31/(wdt:P279*)) wd:Q12737077; rdfs:label ?itemLabel. FILTER((LANG(?itemLabel)) = "fr") OPTIONAL { ?lexeme rdf:type ontolex:LexicalEntry; dct:language wd:Q150; wikibase:lemma ?lemma; ontolex:sense ?sense; wdt:P5185 ?genre. ?sense wdt:P5137 ?item. ?genre rdfs:label ?genreLabel. FILTER((LANG(?genreLabel)) = "fr") } } ORDER BY (?item) (?lemma) (?genre)
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX dct: <http://purl.org/dc/terms/>
#title: List of lexemes in French about occupation items with gender
SELECT DISTINCT ?item ?itemLabel ?sense ?lexeme ?lemma ?genre ?genreLabel WHERE {
?item (wdt:P31/(wdt:P279*)) wd:Q12737077;
rdfs:label ?itemLabel.
FILTER((LANG(?itemLabel)) = "fr")
OPTIONAL {
?lexeme rdf:type ontolex:LexicalEntry;
dct:language wd:Q150;
wikibase:lemma ?lemma;
ontolex:sense ?sense;
wdt:P5185 ?genre.
?sense wdt:P5137 ?item.
?genre rdfs:label ?genreLabel.
FILTER((LANG(?genreLabel)) = "fr")
}
}
ORDER BY (?item) (?lemma) (?genre)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?genre"):::projected
v5("?genreLabel"):::projected
v1("?item"):::projected
v4("?itemLabel"):::projected
v2("?lemma"):::projected
v6("?lexeme"):::projected
v7("?sense"):::projected
a1((" "))
c7(["ontolex:LexicalEntry"]):::iri
c4(["wd:Q12737077"]):::iri
c9(["wd:Q150"]):::iri
f0[["?itemLabel = 'fr'"]]
f0 --> v4
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c4
v1 --"rdfs:label"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v6 -."a".-> c7
v6 --"dct:language"--> c9
v6 --"wikibase:lemma"--> v2
v6 --"ontolex:sense"--> v7
v6 --"wdt:P5185"--> v3
v7 --"wdt:P5137"--> v1
v3 --"rdfs:label"--> v5
end