-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from scribe-org/english-verbs
Add English verbs query file
- Loading branch information
Showing
2 changed files
with
44 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 34 additions & 9 deletions
43
src/scribe_data/extract_transform/English/verbs/query_verbs.sparql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,53 @@ | ||
# All English (Q1860) verbs and the currently implemented tenses for each. | ||
# Enter this query at https://query.wikidata.org/. | ||
|
||
SELECT DISTINCT ?verb ?simplePast ?pastParticiple WHERE { | ||
SELECT DISTINCT ?infinitive ?presFPS ?presTPS ?simpPast ?pastPart WHERE { | ||
# Infinitive (required) | ||
?lexeme a ontolex:LexicalEntry ; | ||
dct:language wd:Q1860 ; | ||
wikibase:lexicalCategory wd:Q24905 ; | ||
wikibase:lemma ?lemma . | ||
wikibase:lemma ?infinitive . | ||
|
||
# Simple Present | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?presFPSForm . | ||
?presFPSForm ontolex:representation ?presFPS ; | ||
wikibase:grammaticalFeature wd:Q3910936 ; | ||
FILTER NOT EXISTS { ?presFPSForm wikibase:grammaticalFeature wd:Q51929074 . } | ||
FILTER NOT EXISTS { ?presFPSForm wdt:P6191 wd:Q181970 . } | ||
FILTER NOT EXISTS { ?presFPSForm wikibase:grammaticalFeature wd:Q126473 . } | ||
} . | ||
|
||
# Third-person Singular | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?presTPSForm . | ||
?presTPSForm ontolex:representation ?presTPS ; | ||
wikibase:grammaticalFeature wd:Q51929074 ; | ||
wikibase:grammaticalFeature wd:Q110786 ; | ||
wikibase:grammaticalFeature wd:Q3910936 ; | ||
FILTER NOT EXISTS { ?presFPSForm wdt:P6191 wd:Q181970 . } | ||
FILTER NOT EXISTS { ?presFPSForm wikibase:grammaticalFeature wd:Q126473 . } | ||
} . | ||
|
||
# Simple Past | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?simplePastForm . | ||
?simplePastForm ontolex:representation ?simplePast ; | ||
wikibase:grammaticalFeature wd:Q1392475 ; | ||
?lexeme ontolex:lexicalForm ?simpPastForm . | ||
?simpPastForm ontolex:representation ?simpPast ; | ||
wikibase:grammaticalFeature wd:Q1392475 ; | ||
FILTER NOT EXISTS { ?presFPSForm wdt:P6191 wd:Q181970 . } | ||
FILTER NOT EXISTS { ?presFPSForm wikibase:grammaticalFeature wd:Q126473 . } | ||
} . | ||
|
||
# Past Participle | ||
OPTIONAL { | ||
?lexeme ontolex:lexicalForm ?pastParticipleForm . | ||
?pastParticipleForm ontolex:representation ?pastParticiple ; | ||
wikibase:grammaticalFeature wd:Q1230649 ; | ||
?lexeme ontolex:lexicalForm ?pastPartForm . | ||
?pastPartForm ontolex:representation ?pastPart ; | ||
wikibase:grammaticalFeature wd:Q1230649 ; | ||
FILTER NOT EXISTS { ?presFPSForm wdt:P6191 wd:Q181970 . } | ||
FILTER NOT EXISTS { ?presFPSForm wikibase:grammaticalFeature wd:Q126473 . } | ||
} . | ||
|
||
SERVICE wikibase:label { | ||
bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". | ||
?lemma rdfs:label ?verb . | ||
} | ||
} |