Created
October 14, 2020 18:31
-
-
Save balmas/f6e55dc3b3551a60d034ef131798ba4d to your computer and use it in GitHub Desktop.
Use Case morphsvc#29 Sample Query
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
query { | |
wordAnnotations( | |
word: { | |
representation: "senatu", | |
lang:"lat" | |
}, | |
lexemes:[ | |
{ | |
lemma:{ | |
representation:"senatus", | |
lang: "lat", | |
pos: NOUN, | |
source: "net.alpheios:tools:wordsxml.v1" | |
principalParts: ["senatus"] | |
}, | |
inflections: [ | |
{ | |
form: "senatu", | |
udfeatures:{ | |
Case: "dative", | |
Number:"singular", | |
Gender:"masculine" | |
} | |
}, | |
{ | |
form: "senatu", | |
udfeatures:{ | |
Case: "ablative", | |
Number:"singular", | |
Gender:"masculine" | |
} | |
} | |
] | |
} | |
] | |
) { | |
target { | |
... on Lexeme { | |
lemma { | |
representation | |
pos | |
principalParts | |
} | |
} | |
} | |
assertions { | |
subject { | |
IRI | |
... on Lemma { | |
representation | |
pos | |
langpos | |
principalParts | |
} | |
} | |
predicate | |
object { | |
IRI | |
... on Inflection { | |
form | |
stem | |
suffix | |
prefix | |
udfeatures { | |
Case | |
Number | |
Gender | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment