{
  "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": 53,
            "end": 55
          }
        },
        "predicate": {
          "type": "term",
          "subType": "variable",
          "value": "p",
          "loc": {
            "sourceLocationType": "source",
            "start": 56,
            "end": 58
          }
        },
        "object": {
          "type": "term",
          "subType": "variable",
          "value": "o",
          "loc": {
            "sourceLocationType": "source",
            "start": 59,
            "end": 61
          }
        },
        "annotations": [
          {
            "val": {
              "type": "term",
              "subType": "namedNode",
              "value": "iri",
              "loc": {
                "sourceLocationType": "source",
                "start": 64,
                "end": 68
              },
              "prefix": ""
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 62,
              "end": 68
            }
          },
          {
            "type": "tripleCollection",
            "subType": "blankNodeProperties",
            "triples": [
              {
                "type": "triple",
                "subject": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "iri",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 64,
                    "end": 68
                  },
                  "prefix": ""
                },
                "predicate": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "source",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 72,
                    "end": 79
                  },
                  "prefix": ""
                },
                "object": {
                  "type": "term",
                  "subType": "variable",
                  "value": "g",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 80,
                    "end": 82
                  }
                },
                "annotations": [],
                "loc": {
                  "sourceLocationType": "source",
                  "start": 64,
                  "end": 82
                }
              }
            ],
            "identifier": {
              "type": "term",
              "subType": "namedNode",
              "value": "iri",
              "loc": {
                "sourceLocationType": "source",
                "start": 64,
                "end": 68
              },
              "prefix": ""
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 69,
              "end": 85
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 53,
          "end": 85
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 53,
      "end": 85
    }
  },
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "where": {
    "type": "pattern",
    "subType": "group",
    "patterns": [
      {
        "type": "pattern",
        "subType": "graph",
        "name": {
          "type": "term",
          "subType": "variable",
          "value": "g",
          "loc": {
            "sourceLocationType": "source",
            "start": 102,
            "end": 104
          }
        },
        "patterns": [
          {
            "type": "pattern",
            "subType": "bgp",
            "triples": [
              {
                "type": "triple",
                "subject": {
                  "type": "term",
                  "subType": "variable",
                  "value": "s",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 107,
                    "end": 109
                  }
                },
                "predicate": {
                  "type": "term",
                  "subType": "variable",
                  "value": "p",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 110,
                    "end": 112
                  }
                },
                "object": {
                  "type": "term",
                  "subType": "variable",
                  "value": "o",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 113,
                    "end": 115
                  }
                },
                "annotations": [],
                "loc": {
                  "sourceLocationType": "source",
                  "start": 107,
                  "end": 115
                }
              }
            ],
            "loc": {
              "sourceLocationType": "source",
              "start": 107,
              "end": 115
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 96,
          "end": 117
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 94,
      "end": 119
    }
  },
  "solutionModifiers": {},
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "PREFIX : <http://example.com/ns#>\n\nCONSTRUCT {\n      ?s ?p ?o ~ :iri {| :source ?g |}\n}\nWHERE { GRAPH ?g { ?s ?p ?o } }\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 119
    },
    "startOnNew": 0,
    "endOnNew": 119
  },
  "type": "query"
}
