{
  "context": [
    {
      "type": "contextDef",
      "subType": "prefix",
      "key": "",
      "value": {
        "type": "term",
        "subType": "namedNode",
        "value": "http://example.com/ns#",
        "loc": {
          "sourceLocationType": "source",
          "start": 9,
          "end": 33
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 0,
        "end": 33
      }
    }
  ],
  "subType": "construct",
  "template": {
    "type": "pattern",
    "subType": "bgp",
    "triples": [
      {
        "type": "triple",
        "subject": {
          "type": "term",
          "subType": "variable",
          "value": "s",
          "loc": {
            "sourceLocationType": "source",
            "start": 55,
            "end": 57
          }
        },
        "predicate": {
          "type": "term",
          "subType": "namedNode",
          "value": "p",
          "loc": {
            "sourceLocationType": "source",
            "start": 58,
            "end": 60
          },
          "prefix": ""
        },
        "object": {
          "type": "term",
          "subType": "variable",
          "value": "o",
          "loc": {
            "sourceLocationType": "source",
            "start": 61,
            "end": 63
          }
        },
        "annotations": [
          {
            "val": {
              "type": "term",
              "subType": "namedNode",
              "value": "iri1",
              "loc": {
                "sourceLocationType": "source",
                "start": 66,
                "end": 71
              },
              "prefix": ""
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 64,
              "end": 71
            }
          },
          {
            "type": "tripleCollection",
            "subType": "blankNodeProperties",
            "triples": [
              {
                "type": "triple",
                "subject": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "iri1",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 66,
                    "end": 71
                  },
                  "prefix": ""
                },
                "predicate": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "r1",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 75,
                    "end": 78
                  },
                  "prefix": ""
                },
                "object": {
                  "type": "term",
                  "subType": "variable",
                  "value": "Z1",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 79,
                    "end": 82
                  }
                },
                "annotations": [],
                "loc": {
                  "sourceLocationType": "source",
                  "start": 66,
                  "end": 82
                }
              }
            ],
            "identifier": {
              "type": "term",
              "subType": "namedNode",
              "value": "iri1",
              "loc": {
                "sourceLocationType": "source",
                "start": 66,
                "end": 71
              },
              "prefix": ""
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 72,
              "end": 85
            }
          },
          {
            "val": {
              "type": "term",
              "subType": "namedNode",
              "value": "iri2",
              "loc": {
                "sourceLocationType": "source",
                "start": 87,
                "end": 92
              },
              "prefix": ""
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 86,
              "end": 92
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 55,
          "end": 92
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 55,
      "end": 94
    }
  },
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "where": {
    "type": "pattern",
    "subType": "group",
    "patterns": [
      {
        "type": "pattern",
        "subType": "bgp",
        "triples": [
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "s",
              "loc": {
                "sourceLocationType": "source",
                "start": 55,
                "end": 57
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "p",
              "loc": {
                "sourceLocationType": "source",
                "start": 58,
                "end": 60
              },
              "prefix": ""
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "o",
              "loc": {
                "sourceLocationType": "source",
                "start": 61,
                "end": 63
              }
            },
            "annotations": [
              {
                "val": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "iri1",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 66,
                    "end": 71
                  },
                  "prefix": ""
                },
                "loc": {
                  "sourceLocationType": "source",
                  "start": 64,
                  "end": 71
                }
              },
              {
                "type": "tripleCollection",
                "subType": "blankNodeProperties",
                "triples": [
                  {
                    "type": "triple",
                    "subject": {
                      "type": "term",
                      "subType": "namedNode",
                      "value": "iri1",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 66,
                        "end": 71
                      },
                      "prefix": ""
                    },
                    "predicate": {
                      "type": "term",
                      "subType": "namedNode",
                      "value": "r1",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 75,
                        "end": 78
                      },
                      "prefix": ""
                    },
                    "object": {
                      "type": "term",
                      "subType": "variable",
                      "value": "Z1",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 79,
                        "end": 82
                      }
                    },
                    "annotations": [],
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 66,
                      "end": 82
                    }
                  }
                ],
                "identifier": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "iri1",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 66,
                    "end": 71
                  },
                  "prefix": ""
                },
                "loc": {
                  "sourceLocationType": "source",
                  "start": 72,
                  "end": 85
                }
              },
              {
                "val": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "iri2",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 87,
                    "end": 92
                  },
                  "prefix": ""
                },
                "loc": {
                  "sourceLocationType": "source",
                  "start": 86,
                  "end": 92
                }
              }
            ],
            "loc": {
              "sourceLocationType": "source",
              "start": 55,
              "end": 92
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 55,
          "end": 94
        }
      }
    ],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "solutionModifiers": {},
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "PREFIX : <http://example.com/ns#>\n\nCONSTRUCT WHERE {\n  ?s :p ?o ~ :iri1 {| :r1 ?Z1 |} ~:iri2 .\n}\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 96
    },
    "startOnNew": 0,
    "endOnNew": 96
  },
  "type": "query"
}
