Skip to content

Instantly share code, notes, and snippets.

@balmas
Created October 14, 2020 18:31
Show Gist options
  • Save balmas/f6e55dc3b3551a60d034ef131798ba4d to your computer and use it in GitHub Desktop.
Save balmas/f6e55dc3b3551a60d034ef131798ba4d to your computer and use it in GitHub Desktop.
Use Case morphsvc#29 Sample Query
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