Overview

The AQS Path is the way to change the query context and apply conditions on entities other than the root one. Any path starts from the root context, i.e. the context of the root node, that is the root entity.

An AQS path always starts with root and is made up of one to many hops. Each hop triggers a context switch and jumps from one entity to another using the link attribute code specified.

Examples

The following example shows a path that starts in root, then hops to child attributes_streetLightingUnitsControllers and finally hops to child attributes_controllersControllerType.

{
  "type": "Query",
  "properties": {
    "dodiCode": "designs_streetLights"
  },
  "children": [
    {
      "type": "Equals",
      "children": [
        {
          "type": "Attribute",
          "properties": {
            "attributeCode": "attributes_controllerTypesCode",
            "path": "root.attributes_streetLightingUnitsControllers.attributes_controllersControllerType"
          }
        },
        {
          "type": "String",
          "properties": {
            "value": [
              "PEC20"
            ]
          }
        }
      ]
    }
  ]
}

In this example, the path starts in the root, then hops to the parent attributes_basicNetworkReferencesNetworkAsset_5ccc5814ff5c130bf05db832 and then hops to the child attributes_basicNetworkReferencesNetworkRoadRef_5ccc586bff5c130bf05db84e.

{
  "type": "Query",
  "properties": {
    "dodiCode": "designInterfaces_assets",
  },
  "children": [
    {
      "type": "Equals",
      "children": [
        {
          "type": "Attribute",
          "properties": {
            "attributeCode": "attributes_controllerTypesCode",
            "path":  "root^attributes_basicNetworkReferencesNetworkAsset_5ccc5814ff5c130bf05db832.attributes_basicNetworkReferencesNetworkRoadRef_5ccc586bff5c130bf05db84e"
          }
        },
        {
          "type": "String",
          "properties": {
            "value": [
              "PEC20"
            ]
          }
        }
      ]
    }
  ]
}