{
  "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": "blankNode",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 62,
                    "end": 69
                  },
                  "label": "e_bnode"
                },
                "loc": {
                  "sourceLocationType": "source",
                  "start": 48,
                  "end": 72
                }
              },
              {
                "type": "triple",
                "subject": {
                  "type": "term",
                  "subType": "blankNode",
                  "loc": {
                    "sourceLocationType": "noMaterialize"
                  },
                  "label": "e_bnode"
                },
                "predicate": {
                  "type": "term",
                  "subType": "variable",
                  "value": "P",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 73,
                    "end": 75
                  }
                },
                "object": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "o2",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 76,
                    "end": 79
                  },
                  "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": 84,
                            "end": 86
                          }
                        },
                        "object": {
                          "type": "tripleCollection",
                          "subType": "reifiedTriple",
                          "triples": [
                            {
                              "type": "triple",
                              "subject": {
                                "type": "term",
                                "subType": "namedNode",
                                "value": "s1",
                                "loc": {
                                  "sourceLocationType": "source",
                                  "start": 89,
                                  "end": 92
                                },
                                "prefix": ""
                              },
                              "predicate": {
                                "type": "term",
                                "subType": "namedNode",
                                "value": "p1",
                                "loc": {
                                  "sourceLocationType": "source",
                                  "start": 93,
                                  "end": 96
                                },
                                "prefix": ""
                              },
                              "object": {
                                "type": "term",
                                "subType": "variable",
                                "value": "Z",
                                "loc": {
                                  "sourceLocationType": "source",
                                  "start": 97,
                                  "end": 99
                                }
                              },
                              "annotations": [],
                              "loc": {
                                "sourceLocationType": "source",
                                "start": 89,
                                "end": 99
                              }
                            }
                          ],
                          "identifier": {
                            "type": "term",
                            "subType": "namedNode",
                            "value": "iri",
                            "loc": {
                              "sourceLocationType": "source",
                              "start": 102,
                              "end": 106
                            },
                            "prefix": ""
                          },
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 87,
                            "end": 108
                          }
                        },
                        "annotations": [],
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 84,
                          "end": 108
                        }
                      }
                    ],
                    "identifier": {
                      "type": "term",
                      "subType": "blankNode",
                      "loc": {
                        "sourceLocationType": "noMaterialize"
                      },
                      "label": "g_0"
                    },
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 81,
                      "end": 111
                    }
                  }
                ],
                "loc": {
                  "sourceLocationType": "source",
                  "start": 73,
                  "end": 111
                }
              }
            ],
            "loc": {
              "sourceLocationType": "source",
              "start": 48,
              "end": 111
            }
          }
        ],
        "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": 128,
                          "end": 130
                        },
                        "prefix": ""
                      },
                      "predicate": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "b",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 131,
                          "end": 133
                        },
                        "prefix": ""
                      },
                      "object": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "c",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 134,
                          "end": 136
                        },
                        "prefix": ""
                      },
                      "annotations": [],
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 128,
                        "end": 136
                      }
                    }
                  ],
                  "identifier": {
                    "type": "term",
                    "subType": "blankNode",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 139,
                      "end": 146
                    },
                    "label": "e_bnode"
                  },
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 125,
                    "end": 149
                  }
                },
                {
                  "type": "triple",
                  "subject": {
                    "type": "term",
                    "subType": "blankNode",
                    "loc": {
                      "sourceLocationType": "noMaterialize"
                    },
                    "label": "e_bnode"
                  },
                  "predicate": {
                    "type": "term",
                    "subType": "variable",
                    "value": "P",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 150,
                      "end": 152
                    }
                  },
                  "object": {
                    "type": "term",
                    "subType": "namedNode",
                    "value": "o1",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 153,
                      "end": 156
                    },
                    "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": 160,
                              "end": 162
                            }
                          },
                          "object": {
                            "type": "tripleCollection",
                            "subType": "reifiedTriple",
                            "triples": [
                              {
                                "type": "triple",
                                "subject": {
                                  "type": "term",
                                  "subType": "namedNode",
                                  "value": "s1",
                                  "loc": {
                                    "sourceLocationType": "source",
                                    "start": 165,
                                    "end": 168
                                  },
                                  "prefix": ""
                                },
                                "predicate": {
                                  "type": "term",
                                  "subType": "namedNode",
                                  "value": "p1",
                                  "loc": {
                                    "sourceLocationType": "source",
                                    "start": 169,
                                    "end": 172
                                  },
                                  "prefix": ""
                                },
                                "object": {
                                  "type": "term",
                                  "subType": "variable",
                                  "value": "Z",
                                  "loc": {
                                    "sourceLocationType": "source",
                                    "start": 173,
                                    "end": 175
                                  }
                                },
                                "annotations": [],
                                "loc": {
                                  "sourceLocationType": "source",
                                  "start": 165,
                                  "end": 175
                                }
                              }
                            ],
                            "identifier": {
                              "type": "term",
                              "subType": "namedNode",
                              "value": "iri",
                              "loc": {
                                "sourceLocationType": "source",
                                "start": 178,
                                "end": 182
                              },
                              "prefix": ""
                            },
                            "loc": {
                              "sourceLocationType": "source",
                              "start": 163,
                              "end": 184
                            }
                          },
                          "annotations": [],
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 160,
                            "end": 184
                          }
                        }
                      ],
                      "identifier": {
                        "type": "term",
                        "subType": "blankNode",
                        "loc": {
                          "sourceLocationType": "noMaterialize"
                        },
                        "label": "g_1"
                      },
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 157,
                        "end": 187
                      }
                    }
                  ],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 150,
                    "end": 187
                  }
                }
              ],
              "loc": {
                "sourceLocationType": "source",
                "start": 125,
                "end": 187
              }
            }
          ],
          "loc": {
            "sourceLocationType": "source",
            "start": 120,
            "end": 189
          }
        },
        "from": {
          "type": "datasetClauses",
          "clauses": [],
          "loc": {
            "sourceLocationType": "noMaterialize"
          }
        },
        "loc": {
          "sourceLocationType": "source",
          "start": 35,
          "end": 189
        }
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "PREFIX : <http://example.com/ns#>\n\nINSERT {\n    << :a :b :c ~ _:bnode >> ?P :o2  {| ?Y <<:s1 :p1 ?Z ~ :iri>> |}\n} WHERE {\n   << :a :b :c ~ _:bnode >> ?P :o1 {| ?Y <<:s1 :p1 ?Z ~ :iri>> |}\n}\n\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 189
    },
    "startOnNew": 0,
    "endOnNew": 189
  }
}
