{
  "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": "triple",
                "subject": {
                  "type": "term",
                  "subType": "variable",
                  "value": "S",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 48,
                    "end": 50
                  }
                },
                "predicate": {
                  "type": "term",
                  "subType": "variable",
                  "value": "P",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 51,
                    "end": 53
                  }
                },
                "object": {
                  "type": "tripleCollection",
                  "subType": "reifiedTriple",
                  "triples": [
                    {
                      "type": "triple",
                      "subject": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "a",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 57,
                          "end": 59
                        },
                        "prefix": ""
                      },
                      "predicate": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "b",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 60,
                          "end": 62
                        },
                        "prefix": ""
                      },
                      "object": {
                        "type": "term",
                        "subType": "variable",
                        "value": "O",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 63,
                          "end": 65
                        }
                      },
                      "annotations": [],
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 57,
                        "end": 65
                      }
                    }
                  ],
                  "identifier": {
                    "type": "term",
                    "subType": "blankNode",
                    "loc": {
                      "sourceLocationType": "noMaterialize"
                    },
                    "label": "g_0"
                  },
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 54,
                    "end": 68
                  }
                },
                "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": 72,
                            "end": 74
                          }
                        },
                        "object": {
                          "type": "term",
                          "subType": "variable",
                          "value": "Z",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 75,
                            "end": 77
                          }
                        },
                        "annotations": [],
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 72,
                          "end": 77
                        }
                      }
                    ],
                    "identifier": {
                      "type": "term",
                      "subType": "blankNode",
                      "loc": {
                        "sourceLocationType": "noMaterialize"
                      },
                      "label": "g_1"
                    },
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 69,
                      "end": 80
                    }
                  }
                ],
                "loc": {
                  "sourceLocationType": "source",
                  "start": 48,
                  "end": 80
                }
              }
            ],
            "loc": {
              "sourceLocationType": "source",
              "start": 48,
              "end": 80
            }
          }
        ],
        "delete": [],
        "where": {
          "type": "pattern",
          "subType": "group",
          "patterns": [
            {
              "type": "pattern",
              "subType": "bgp",
              "triples": [
                {
                  "type": "triple",
                  "subject": {
                    "type": "term",
                    "subType": "variable",
                    "value": "S",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 94,
                      "end": 96
                    }
                  },
                  "predicate": {
                    "type": "term",
                    "subType": "variable",
                    "value": "P",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 97,
                      "end": 99
                    }
                  },
                  "object": {
                    "type": "tripleCollection",
                    "subType": "reifiedTriple",
                    "triples": [
                      {
                        "type": "triple",
                        "subject": {
                          "type": "term",
                          "subType": "namedNode",
                          "value": "a",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 103,
                            "end": 105
                          },
                          "prefix": ""
                        },
                        "predicate": {
                          "type": "term",
                          "subType": "namedNode",
                          "value": "b",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 106,
                            "end": 108
                          },
                          "prefix": ""
                        },
                        "object": {
                          "type": "term",
                          "subType": "variable",
                          "value": "O",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 109,
                            "end": 111
                          }
                        },
                        "annotations": [],
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 103,
                          "end": 111
                        }
                      }
                    ],
                    "identifier": {
                      "type": "term",
                      "subType": "blankNode",
                      "loc": {
                        "sourceLocationType": "noMaterialize"
                      },
                      "label": "g_2"
                    },
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 100,
                      "end": 114
                    }
                  },
                  "annotations": [
                    {
                      "type": "tripleCollection",
                      "subType": "blankNodeProperties",
                      "triples": [
                        {
                          "type": "triple",
                          "subject": {
                            "type": "term",
                            "subType": "blankNode",
                            "loc": {
                              "sourceLocationType": "noMaterialize"
                            },
                            "label": "g_3"
                          },
                          "predicate": {
                            "type": "term",
                            "subType": "variable",
                            "value": "Y",
                            "loc": {
                              "sourceLocationType": "source",
                              "start": 118,
                              "end": 120
                            }
                          },
                          "object": {
                            "type": "term",
                            "subType": "variable",
                            "value": "Z",
                            "loc": {
                              "sourceLocationType": "source",
                              "start": 121,
                              "end": 123
                            }
                          },
                          "annotations": [],
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 118,
                            "end": 123
                          }
                        }
                      ],
                      "identifier": {
                        "type": "term",
                        "subType": "blankNode",
                        "loc": {
                          "sourceLocationType": "noMaterialize"
                        },
                        "label": "g_3"
                      },
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 115,
                        "end": 126
                      }
                    }
                  ],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 94,
                    "end": 126
                  }
                }
              ],
              "loc": {
                "sourceLocationType": "source",
                "start": 94,
                "end": 126
              }
            }
          ],
          "loc": {
            "sourceLocationType": "source",
            "start": 89,
            "end": 128
          }
        },
        "from": {
          "type": "datasetClauses",
          "clauses": [],
          "loc": {
            "sourceLocationType": "noMaterialize"
          }
        },
        "loc": {
          "sourceLocationType": "source",
          "start": 35,
          "end": 128
        }
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "PREFIX : <http://example.com/ns#>\n\nINSERT {\n    ?S ?P << :a :b ?O >> {| ?Y ?Z |}\n} WHERE {\n   ?S ?P << :a :b ?O >> {| ?Y ?Z |}\n}\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 128
    },
    "startOnNew": 0,
    "endOnNew": 128
  }
}
