{
  "context": [
    {
      "type": "contextDef",
      "subType": "base",
      "value": {
        "type": "term",
        "subType": "namedNode",
        "value": "http://example.org/",
        "loc": {
          "sourceLocationType": "source",
          "start": 5,
          "end": 26
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 0,
        "end": 26
      }
    },
    {
      "type": "contextDef",
      "subType": "prefix",
      "key": "ex",
      "value": {
        "type": "term",
        "subType": "namedNode",
        "value": "http://example.org/#",
        "loc": {
          "sourceLocationType": "source",
          "start": 38,
          "end": 60
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 27,
        "end": 60
      }
    }
  ],
  "subType": "select",
  "where": {
    "type": "pattern",
    "subType": "group",
    "patterns": [
      {
        "type": "pattern",
        "subType": "bgp",
        "triples": [
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "ancestor",
              "loc": {
                "sourceLocationType": "source",
                "start": 76,
                "end": 85
              }
            },
            "predicate": {
              "type": "path",
              "loc": {
                "sourceLocationType": "source",
                "start": 87,
                "end": 112
              },
              "items": [
                {
                  "type": "path",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 87,
                    "end": 110
                  },
                  "items": [
                    {
                      "type": "term",
                      "subType": "namedNode",
                      "value": "motherOf",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 87,
                        "end": 98
                      },
                      "prefix": "ex"
                    },
                    {
                      "type": "term",
                      "subType": "namedNode",
                      "value": "fatherOf",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 99,
                        "end": 110
                      },
                      "prefix": "ex"
                    }
                  ],
                  "subType": "|"
                }
              ],
              "subType": "+"
            },
            "object": {
              "type": "term",
              "subType": "namedNode",
              "value": "#me",
              "loc": {
                "sourceLocationType": "source",
                "start": 113,
                "end": 118
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 76,
              "end": 118
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 76,
          "end": 118
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 74,
      "end": 120
    }
  },
  "solutionModifiers": {},
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "variables": [
    {
      "type": "wildcard",
      "loc": {
        "sourceLocationType": "source",
        "start": 70,
        "end": 71
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "BASE <http://example.org/>\nPREFIX ex: <http://example.org/#>\n  SELECT *\n  { ?ancestor (ex:motherOf|ex:fatherOf)+ <#me> }\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 120
    },
    "startOnNew": 0,
    "endOnNew": 120
  },
  "type": "query"
}
