clu-ling / logx-reader

https://clu-ling.github.io/logx-reader
0 stars 0 forks source link

Changes to Query results #23

Closed myedibleenso closed 3 years ago

myedibleenso commented 3 years ago

Summary of changes

Examples

How many TEUs of zebras are heading to Scotland from Zimbabwe?

[ {
  "need" : {
    "text" : "TEUs of zebras",
    "subtype" : "QuantifiedConcept",
    "labels" : [ "QuantifiedConcept", "Concept", "Entity" ],
    "arguments" : [ {
      "role" : "unit",
      "text" : "TEUs",
      "labels" : [ "QuantifiedConcept", "Concept", "Entity" ]
    }, {
      "role" : "concept",
      "text" : "zebras",
      "labels" : [ "QuantifiedConcept", "Concept", "Entity" ]
    } ]
  },
  "labels" : [ "QuantityQuery", "Query" ],
  "constraints" : [ {
    "subtype" : "OriginConstraint",
    "labels" : [ "OriginConstraint", "LocationConstraint", "Constraint" ],
    "text" : "Zimbabwe"
  }, {
    "subtype" : "DestinationConstraint",
    "labels" : [ "DestinationConstraint", "LocationConstraint", "Constraint" ],
    "text" : "Scotland"
  } ],
  "metadata" : {
    "foundBy" : "quantity-query-1",
    "id" : "E:-203628168"
  }
} ]