query-4c8c6a46e7ee78f1f665217031dae084
Prospection around a « verb conjugation » gadgetHi, I have a little project to create a gadget to show conjugation for verbs using Wikidata datas. So I tried stuff in SPARQL, like this query to find the forms of verbs in french in different tenses: See a first attempt in french :
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/>
PREFIX bd: <http://www.bigdata.com/rdf#>
select ?verbe ?verbeLabel ?tempsLabel ?LabelArticle ?repre {
values (?temps ?rangTemps ?tempsLabel) {
(wd:Q192613 1 "présent")
(wd:Q442485 2 "passé simple") # passé simple
(wd:Q17081589 2 "passé simple(fr)")
(wd:Q1475560 3 "futur simple")
(wd:Q1336020 5 "passé composé")
}
values (?article ?rangArticle ?LabelArticle) {
(wd:Q51929218 1 "je")
(wd:Q51929369 2 "tu")
(wd:Q51929447 3 "il/elle")
(wd:Q51929447 4 "il")
(wd:Q52431970 5 "elle")
(wd:Q51929290 6 "nous")
(wd:Q51929403 7 "vous")
(wd:Q51929517 8 "ils/elles")
(wd:Q52432983 9 "ils")
(wd:Q52433019 10 "elles")
}
?verbe ontolex:lexicalForm ?forme ;
dct:language wd:Q150 ;
wikibase:lemma ?verbeLabel .
?forme wikibase:grammaticalFeature ?temps ;
wikibase:grammaticalFeature ?article ;
ontolex:representation ?repre
# SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} order by ?verbe ?rangTemps ?rangArticle
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?LabelArticle"):::projected
v6("?article")
v8("?forme")
v7("?rangArticle")
v5("?rangTemps")
v10("?repre"):::projected
v4("?temps")
v5("?tempsLabel"):::projected
v1("?verbe"):::projected
v9("?verbeLabel"):::projected
c3(["wd:Q150"]):::iri
bind0[/VALUES ?rangTemps ?temps ?tempsLabel/]
bind0-->v4
bind0-->v5
bind0-->v5
bind00(["wd:Q192613"])
bind00 --> bind0
bind01(["1^^xsd:integer"])
bind01 --> bind0
bind02(["présent"])
bind02 --> bind0
bind03(["wd:Q442485"])
bind03 --> bind0
bind04(["2^^xsd:integer"])
bind04 --> bind0
bind05(["passé simple"])
bind05 --> bind0
bind06(["wd:Q17081589"])
bind06 --> bind0
bind07(["2^^xsd:integer"])
bind07 --> bind0
bind08(["passé simple(fr)"])
bind08 --> bind0
bind09(["wd:Q1475560"])
bind09 --> bind0
bind010(["3^^xsd:integer"])
bind010 --> bind0
bind011(["futur simple"])
bind011 --> bind0
bind012(["wd:Q1336020"])
bind012 --> bind0
bind013(["5^^xsd:integer"])
bind013 --> bind0
bind014(["passé composé"])
bind014 --> bind0
bind1[/VALUES ?LabelArticle ?article ?rangArticle/]
bind1-->v6
bind1-->v7
bind1-->v7
bind10(["wd:Q51929218"])
bind10 --> bind1
bind11(["1^^xsd:integer"])
bind11 --> bind1
bind12(["je"])
bind12 --> bind1
bind13(["wd:Q51929369"])
bind13 --> bind1
bind14(["2^^xsd:integer"])
bind14 --> bind1
bind15(["tu"])
bind15 --> bind1
bind16(["wd:Q51929447"])
bind16 --> bind1
bind17(["3^^xsd:integer"])
bind17 --> bind1
bind18(["il/elle"])
bind18 --> bind1
bind19(["wd:Q51929447"])
bind19 --> bind1
bind110(["4^^xsd:integer"])
bind110 --> bind1
bind111(["il"])
bind111 --> bind1
bind112(["wd:Q52431970"])
bind112 --> bind1
bind113(["5^^xsd:integer"])
bind113 --> bind1
bind114(["elle"])
bind114 --> bind1
bind115(["wd:Q51929290"])
bind115 --> bind1
bind116(["6^^xsd:integer"])
bind116 --> bind1
bind117(["nous"])
bind117 --> bind1
bind118(["wd:Q51929403"])
bind118 --> bind1
bind119(["7^^xsd:integer"])
bind119 --> bind1
bind120(["vous"])
bind120 --> bind1
bind121(["wd:Q51929517"])
bind121 --> bind1
bind122(["8^^xsd:integer"])
bind122 --> bind1
bind123(["ils/elles"])
bind123 --> bind1
bind124(["wd:Q52432983"])
bind124 --> bind1
bind125(["9^^xsd:integer"])
bind125 --> bind1
bind126(["ils"])
bind126 --> bind1
bind127(["wd:Q52433019"])
bind127 --> bind1
bind128(["10^^xsd:integer"])
bind128 --> bind1
bind129(["elles"])
bind129 --> bind1
v1 --"ontolex:lexicalForm"--> v8
v1 --"dct:language"--> c3
v1 --"wikibase:lemma"--> v9
v8 --"wikibase:grammaticalFeature"--> v4
v8 --"wikibase:grammaticalFeature"--> v6
v8 --"ontolex:representation"--> v10