Skip to content

Instantly share code, notes, and snippets.

@zwellington
Created July 22, 2021 03:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zwellington/f89929624a2ba82b66cf70add24f26ea to your computer and use it in GitHub Desktop.
Save zwellington/f89929624a2ba82b66cf70add24f26ea to your computer and use it in GitHub Desktop.
Example query and response for the LogX Odin REST API /api/parse-query endpoint
[
{
"need": {
"text": "TEUs of DoD Frozen Meat",
"subtype": "QuantifiedCargo",
"labels": [
"QuantifiedCargo",
"Cargo",
"Concept",
"Entity"
],
"arguments": [
{
"role": "unit",
"text": "TEUs",
"subtype": "Unit",
"labels": [
"Unit",
"Measurement"
]
},
{
"role": "concept",
"text": "DoD Frozen Meat",
"subtype": "Cargo",
"labels": [
"Cargo",
"Concept",
"Entity"
]
}
]
},
"subtype": "CargoQuery",
"labels": [
"CargoQuery",
"QuantityQuery",
"Query"
],
"constraints": [
{
"subtype": "DestinationConstraint",
"labels": [
"DestinationConstraint",
"LocationConstraint",
"Constraint"
],
"text": "Hamburg"
}
],
"metadata": {
"foundBy": "quantity-query-1",
"id": "E:-822118745"
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment