Skip to content

Commit

Permalink
#101 sparql query formatting and adding Greek verbs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtavis committed Mar 20, 2024
1 parent 9bf03d7 commit bdf0bc2
Show file tree
Hide file tree
Showing 81 changed files with 311 additions and 148 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# All Arabic (Q13955) nouns.
# Enter this query at https://query.wikidata.org/.

SELECT DISTINCT
SELECT DISTINCT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?noun WHERE {
?noun

WHERE {
# Nouns and pronouns.
VALUES ?nounTypes { wd:Q1084 wd:Q147276 }
?lexeme a ontolex:LexicalEntry ;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# All Arabic (Q13955) verbs.
# Enter this query at https://query.wikidata.org/.

SELECT
SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?verb
?verb

WHERE {
?lexeme a ontolex:LexicalEntry ;
dct:language wd:Q13955 ;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# All Basque (Q8752) nouns.
# Enter this query at https://query.wikidata.org/.

SELECT DISTINCT
SELECT DISTINCT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?noun WHERE {
?noun

WHERE {
# Nouns and pronouns.
VALUES ?nounTypes { wd:Q1084 wd:Q147276 }
?lexeme a ontolex:LexicalEntry ;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# All Basque (Q8752) verbs.
# Enter this query at https://query.wikidata.org/.

SELECT
SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?verb
?verb

WHERE {
?lexeme a ontolex:LexicalEntry ;
dct:language wd:Q8752 ;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# All Bengali (Q9610) nouns.
# Enter this query at https://query.wikidata.org/.

SELECT DISTINCT
SELECT DISTINCT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?noun WHERE {
?noun

WHERE {
# Nouns and pronouns.
VALUES ?nounTypes { wd:Q1084 wd:Q147276 }
?lexeme a ontolex:LexicalEntry ;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# All Bengali (Q9610) verbs.
# Enter this query at https://query.wikidata.org/.

SELECT
SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?verb WHERE {
?verb

WHERE {
?lexeme a ontolex:LexicalEntry ;
dct:language wd:Q9610 ;
wikibase:lexicalCategory wd:Q24905 ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
# Enter this query at https://query.wikidata.org/.
# Note that this query is for Bokmål (Q25167) rather than Nynorsk (Q25164).

SELECT DISTINCT
SELECT DISTINCT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?singular ?plural ?gender
?singular
?plural
?gender

WHERE {

# Nouns and pronouns.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
# Enter this query at https://query.wikidata.org/.
# Note that this query is for Bokmål (Q25167) rather than Nynorsk (Q25164).

SELECT DISTINCT
SELECT DISTINCT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?infinitive
?infinitive

WHERE {
?lexeme a ontolex:LexicalEntry ;
dct:language wd:Q25167 ;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# All Czeck (Q9056) nouns, their plural, and their gender.
# Enter this query at https://query.wikidata.org/.

SELECT DISTINCT
SELECT DISTINCT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?singular ?plural ?gender
?singular
?plural
?gender

WHERE {
# Nouns and pronouns.
VALUES ?nounTypes { wd:Q1084 wd:Q147276 }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# All Czech (Q9056) prepositions and their corresponding cases.
# Enter this query at https://query.wikidata.org/.

SELECT
SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?preposition ?case
?preposition
?case

WHERE {
?lexeme a ontolex:LexicalEntry ;
dct:language wd:Q9056 ;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# All Czech (Q9056) verbs and the currently implemented tenses for each.
# Enter this query at https://query.wikidata.org/.

SELECT
SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?infinitive WHERE {
?infinitive

WHERE {
?lexeme a ontolex:LexicalEntry ;
dct:language wd:Q9056 ;
wikibase:lexicalCategory wd:Q24905 .
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# All Danish (Q9035) nouns, their plural and their gender.
# Enter this query at https://query.wikidata.org/.

SELECT DISTINCT
SELECT DISTINCT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?singular ?plural ?gender WHERE {
?singular
?plural
?gender

WHERE {
# Nouns and pronouns.
VALUES ?nounTypes { wd:Q1084 wd:Q147276 }
?lexeme a ontolex:LexicalEntry ;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# All Danish (Q9035) verbs and the currently implemented tenses for each.
# Enter this query at https://query.wikidata.org/.

SELECT
SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?infinitive WHERE {
?infinitive

WHERE {
?lexeme a ontolex:LexicalEntry ;
dct:language wd:Q9035 ;
wikibase:lexicalCategory wd:Q24905 .
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# All English (Q1860) nouns and their plural.
# Enter this query at https://query.wikidata.org/.

SELECT DISTINCT
SELECT DISTINCT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?singular ?plural WHERE {
?singular
?plural

WHERE {
# Nouns and pronouns.
VALUES ?nounTypes { wd:Q1084 wd:Q147276 }
?lexeme a ontolex:LexicalEntry ;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# All English (Q1860) verbs and the currently implemented tenses for each.
# Enter this query at https://query.wikidata.org/.

SELECT DISTINCT
SELECT DISTINCT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?infinitive ?presFPS ?presTPS ?simpPast ?pastPart WHERE {
?infinitive
?presFPS
?presTPS
?simpPast
?pastPart

WHERE {
# Infinitive (required)
?lexeme a ontolex:LexicalEntry ;
dct:language wd:Q1860 ;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# All Esperanto (Q143) nouns.
# Enter this query at https://query.wikidata.org/.

SELECT DISTINCT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?singular ?plural WHERE {
SELECT DISTINCT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?singular
?plural

WHERE {
# Nouns and pronouns.
VALUES ?nounTypes { wd:Q1084 wd:Q147276 }
?lexeme a ontolex:LexicalEntry ;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# All Esperanto (Q143) verbs.
# Enter this query at https://query.wikidata.org/.

SELECT
SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?verb WHERE {
?verb

WHERE {
?lexeme a ontolex:LexicalEntry ;
dct:language wd:Q143 ;
wikibase:lexicalCategory wd:Q24905 ;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# All Estonian (Q9072) nouns and their plural.
# Enter this query at https://query.wikidata.org/.

SELECT DISTINCT
SELECT DISTINCT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?singular ?plural WHERE {
?singular
?plural

WHERE {
# Nouns and pronouns.
VALUES ?nounTypes { wd:Q1084 wd:Q147276 }
?lexeme a ontolex:LexicalEntry ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
# Enter this query at https://query.wikidata.org/.
# Note that this query includes postpositions that are also used in Estonian.

SELECT
SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?preposition ?case WHERE {
?preposition
?case

WHERE {
# Prepositions and postpositions.
VALUES ?PrePostPositions { wd:Q4833830 wd:Q161873 }
?lexeme a ontolex:LexicalEntry ;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# All Estonian (Q9072) verbs and the currently implemented tenses for each.
# Enter this query at https://query.wikidata.org/.

SELECT
SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?infinitive WHERE {
?infinitive

WHERE {
?lexeme a ontolex:LexicalEntry ;
dct:language wd:Q9072 ;
wikibase:lexicalCategory wd:Q24905 .
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# All Finnish (Q1412) nouns and their plural.
# Enter this query at https://query.wikidata.org/.

SELECT DISTINCT
SELECT DISTINCT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?singular ?plural WHERE {
?singular
?plural

WHERE {
# Nouns and pronouns.
VALUES ?nounTypes { wd:Q1084 wd:Q147276 }
?lexeme a ontolex:LexicalEntry ;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# All Finnish (Q1412) verbs.
# Enter this query at https://query.wikidata.org/.

SELECT
SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?verb WHERE {
?verb

WHERE {
?lexeme a ontolex:LexicalEntry ;
dct:language wd:Q1412 ;
wikibase:lexicalCategory wd:Q24905 ;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# All French (Q150) nouns, their plural and their gender.
# Enter this query at https://query.wikidata.org/.

SELECT DISTINCT
SELECT DISTINCT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?singular ?plural ?gender WHERE {
?singular
?plural
?gender

WHERE {
# Nouns and pronouns.
VALUES ?nounTypes { wd:Q1084 wd:Q147276 }
?lexeme a ontolex:LexicalEntry ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ SELECT
?presFPS ?presSPS ?presTPS
?presFPP ?presSPP ?presTPP
?pretFPS ?pretSPS ?pretTPS
?pretFPP ?pretSPP ?pretTPP WHERE {
?pretFPP ?pretSPP ?pretTPP

WHERE {
?lexeme a ontolex:LexicalEntry ;
dct:language wd:Q150 ;
wikibase:lexicalCategory wd:Q24905 .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ SELECT
?impFPS ?impSPS ?impTPS
?impFPP ?impSPP ?impTPP
?futFPS ?futSPS ?futTPS
?futFPP ?futSPP ?futTPP WHERE {
?futFPP ?futSPP ?futTPP

WHERE {
?lexeme a ontolex:LexicalEntry ;
dct:language wd:Q150 ;
wikibase:lexicalCategory wd:Q24905 .
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# All German (Q188) nouns, their plural and their gender.
# Enter this query at https://query.wikidata.org/.

SELECT DISTINCT
SELECT DISTINCT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?singular ?plural ?gender WHERE {
?singular
?plural
?gender

WHERE {
# Nouns and pronouns.
VALUES ?nounTypes { wd:Q1084 wd:Q147276 }
?lexeme a ontolex:LexicalEntry ;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# All German (Q188) prepositions and their corresponding cases.
# Enter this query at https://query.wikidata.org/.

SELECT
SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?preposition ?case WHERE {
?preposition
?case

WHERE {
?lexeme a ontolex:LexicalEntry ;
dct:language wd:Q188 ;
wikibase:lexicalCategory wd:Q4833830 ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ SELECT
(REPLACE(STR(?lexeme), "http://www.wikidata.org/entity/", "") as ?lexemeID)
?infinitive
?presFPS ?presSPS ?presTPS
?presFPP ?presSPP ?presTPP WHERE {
?presFPP ?presSPP ?presTPP

WHERE {
?lexeme a ontolex:LexicalEntry ;
dct:language wd:Q188 ;
wikibase:lexicalCategory wd:Q24905 .
Expand Down
Loading

0 comments on commit bdf0bc2

Please sign in to comment.