{
  "type": "update",
  "updates": [
    {
      "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
          }
        }
      ],
      "operation": {
        "type": "updateOperation",
        "subType": "modify",
        "insert": [
          {
            "type": "pattern",
            "subType": "bgp",
            "triples": [
              {
                "type": "tripleCollection",
                "subType": "reifiedTriple",
                "triples": [
                  {
                    "type": "triple",
                    "subject": {
                      "type": "term",
                      "subType": "namedNode",
                      "value": "a",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 51,
                        "end": 53
                      },
                      "prefix": ""
                    },
                    "predicate": {
                      "type": "term",
                      "subType": "namedNode",
                      "value": "b",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 54,
                        "end": 56
                      },
                      "prefix": ""
                    },
                    "object": {
                      "type": "term",
                      "subType": "namedNode",
                      "value": "c",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 57,
                        "end": 59
                      },
                      "prefix": ""
                    },
                    "annotations": [],
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 51,
                      "end": 59
                    }
                  }
                ],
                "identifier": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "iri",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 62,
                    "end": 66
                  },
                  "prefix": ""
                },
                "loc": {
                  "sourceLocationType": "source",
                  "start": 48,
                  "end": 69
                }
              },
              {
                "type": "triple",
                "subject": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "iri",
                  "loc": {
                    "sourceLocationType": "noMaterialize"
                  },
                  "prefix": ""
                },
                "predicate": {
                  "type": "term",
                  "subType": "variable",
                  "value": "P",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 70,
                    "end": 72
                  }
                },
                "object": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "o2",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 73,
                    "end": 76
                  },
                  "prefix": ""
                },
                "annotations": [
                  {
                    "type": "tripleCollection",
                    "subType": "blankNodeProperties",
                    "triples": [
                      {
                        "type": "triple",
                        "subject": {
                          "type": "term",
                          "subType": "blankNode",
                          "loc": {
                            "sourceLocationType": "noMaterialize"
                          },
                          "label": "g_0"
                        },
                        "predicate": {
                          "type": "term",
                          "subType": "variable",
                          "value": "Y",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 81,
                            "end": 83
                          }
                        },
                        "object": {
                          "type": "term",
                          "subType": "variable",
                          "value": "Z",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 84,
                            "end": 86
                          }
                        },
                        "annotations": [],
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 81,
                          "end": 86
                        }
                      }
                    ],
                    "identifier": {
                      "type": "term",
                      "subType": "blankNode",
                      "loc": {
                        "sourceLocationType": "noMaterialize"
                      },
                      "label": "g_0"
                    },
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 78,
                      "end": 89
                    }
                  }
                ],
                "loc": {
                  "sourceLocationType": "source",
                  "start": 70,
                  "end": 89
                }
              }
            ],
            "loc": {
              "sourceLocationType": "source",
              "start": 48,
              "end": 89
            }
          }
        ],
        "delete": [],
        "where": {
          "type": "pattern",
          "subType": "group",
          "patterns": [
            {
              "type": "pattern",
              "subType": "bgp",
              "triples": [
                {
                  "type": "tripleCollection",
                  "subType": "reifiedTriple",
                  "triples": [
                    {
                      "type": "triple",
                      "subject": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "a",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 106,
                          "end": 108
                        },
                        "prefix": ""
                      },
                      "predicate": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "b",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 109,
                          "end": 111
                        },
                        "prefix": ""
                      },
                      "object": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "c",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 112,
                          "end": 114
                        },
                        "prefix": ""
                      },
                      "annotations": [],
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 106,
                        "end": 114
                      }
                    }
                  ],
                  "identifier": {
                    "type": "term",
                    "subType": "namedNode",
                    "value": "iri",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 117,
                      "end": 121
                    },
                    "prefix": ""
                  },
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 103,
                    "end": 124
                  }
                },
                {
                  "type": "triple",
                  "subject": {
                    "type": "term",
                    "subType": "namedNode",
                    "value": "iri",
                    "loc": {
                      "sourceLocationType": "noMaterialize"
                    },
                    "prefix": ""
                  },
                  "predicate": {
                    "type": "term",
                    "subType": "variable",
                    "value": "P",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 125,
                      "end": 127
                    }
                  },
                  "object": {
                    "type": "term",
                    "subType": "namedNode",
                    "value": "o1",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 128,
                      "end": 131
                    },
                    "prefix": ""
                  },
                  "annotations": [
                    {
                      "type": "tripleCollection",
                      "subType": "blankNodeProperties",
                      "triples": [
                        {
                          "type": "triple",
                          "subject": {
                            "type": "term",
                            "subType": "blankNode",
                            "loc": {
                              "sourceLocationType": "noMaterialize"
                            },
                            "label": "g_1"
                          },
                          "predicate": {
                            "type": "term",
                            "subType": "variable",
                            "value": "Y",
                            "loc": {
                              "sourceLocationType": "source",
                              "start": 135,
                              "end": 137
                            }
                          },
                          "object": {
                            "type": "term",
                            "subType": "variable",
                            "value": "Z",
                            "loc": {
                              "sourceLocationType": "source",
                              "start": 138,
                              "end": 140
                            }
                          },
                          "annotations": [],
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 135,
                            "end": 140
                          }
                        }
                      ],
                      "identifier": {
                        "type": "term",
                        "subType": "blankNode",
                        "loc": {
                          "sourceLocationType": "noMaterialize"
                        },
                        "label": "g_1"
                      },
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 132,
                        "end": 143
                      }
                    }
                  ],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 125,
                    "end": 143
                  }
                }
              ],
              "loc": {
                "sourceLocationType": "source",
                "start": 103,
                "end": 143
              }
            }
          ],
          "loc": {
            "sourceLocationType": "source",
            "start": 98,
            "end": 145
          }
        },
        "from": {
          "type": "datasetClauses",
          "clauses": [],
          "loc": {
            "sourceLocationType": "noMaterialize"
          }
        },
        "loc": {
          "sourceLocationType": "source",
          "start": 35,
          "end": 145
        }
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "PREFIX : <http://example.com/ns#>\n\nINSERT {\n    << :a :b :c ~ :iri >> ?P :o2  {| ?Y ?Z |}\n} WHERE {\n   << :a :b :c ~ :iri >> ?P :o1 {| ?Y ?Z |}\n}\n\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 145
    },
    "startOnNew": 0,
    "endOnNew": 145
  }
}
