{
  "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": "noMaterialize"
                  },
                  "label": "g_0"
                },
                "loc": {
                  "sourceLocationType": "source",
                  "start": 48,
                  "end": 62
                }
              },
              {
                "type": "triple",
                "subject": {
                  "type": "term",
                  "subType": "blankNode",
                  "loc": {
                    "sourceLocationType": "noMaterialize"
                  },
                  "label": "g_0"
                },
                "predicate": {
                  "type": "term",
                  "subType": "variable",
                  "value": "P",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 63,
                    "end": 65
                  }
                },
                "object": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "o2",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 66,
                    "end": 69
                  },
                  "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": 74,
                            "end": 76
                          }
                        },
                        "object": {
                          "type": "tripleCollection",
                          "subType": "reifiedTriple",
                          "triples": [
                            {
                              "type": "triple",
                              "subject": {
                                "type": "term",
                                "subType": "namedNode",
                                "value": "s1",
                                "loc": {
                                  "sourceLocationType": "source",
                                  "start": 79,
                                  "end": 82
                                },
                                "prefix": ""
                              },
                              "predicate": {
                                "type": "term",
                                "subType": "namedNode",
                                "value": "p1",
                                "loc": {
                                  "sourceLocationType": "source",
                                  "start": 83,
                                  "end": 86
                                },
                                "prefix": ""
                              },
                              "object": {
                                "type": "term",
                                "subType": "variable",
                                "value": "Z",
                                "loc": {
                                  "sourceLocationType": "source",
                                  "start": 87,
                                  "end": 89
                                }
                              },
                              "annotations": [],
                              "loc": {
                                "sourceLocationType": "source",
                                "start": 79,
                                "end": 89
                              }
                            }
                          ],
                          "identifier": {
                            "type": "term",
                            "subType": "blankNode",
                            "loc": {
                              "sourceLocationType": "noMaterialize"
                            },
                            "label": "g_2"
                          },
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 77,
                            "end": 91
                          }
                        },
                        "annotations": [],
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 74,
                          "end": 91
                        }
                      }
                    ],
                    "identifier": {
                      "type": "term",
                      "subType": "blankNode",
                      "loc": {
                        "sourceLocationType": "noMaterialize"
                      },
                      "label": "g_1"
                    },
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 71,
                      "end": 94
                    }
                  }
                ],
                "loc": {
                  "sourceLocationType": "source",
                  "start": 63,
                  "end": 94
                }
              }
            ],
            "loc": {
              "sourceLocationType": "source",
              "start": 48,
              "end": 94
            }
          }
        ],
        "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": 111,
                          "end": 113
                        },
                        "prefix": ""
                      },
                      "predicate": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "b",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 114,
                          "end": 116
                        },
                        "prefix": ""
                      },
                      "object": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "c",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 117,
                          "end": 119
                        },
                        "prefix": ""
                      },
                      "annotations": [],
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 111,
                        "end": 119
                      }
                    }
                  ],
                  "identifier": {
                    "type": "term",
                    "subType": "blankNode",
                    "loc": {
                      "sourceLocationType": "noMaterialize"
                    },
                    "label": "g_3"
                  },
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 108,
                    "end": 122
                  }
                },
                {
                  "type": "triple",
                  "subject": {
                    "type": "term",
                    "subType": "blankNode",
                    "loc": {
                      "sourceLocationType": "noMaterialize"
                    },
                    "label": "g_3"
                  },
                  "predicate": {
                    "type": "term",
                    "subType": "variable",
                    "value": "P",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 123,
                      "end": 125
                    }
                  },
                  "object": {
                    "type": "term",
                    "subType": "namedNode",
                    "value": "o1",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 126,
                      "end": 129
                    },
                    "prefix": ""
                  },
                  "annotations": [
                    {
                      "type": "tripleCollection",
                      "subType": "blankNodeProperties",
                      "triples": [
                        {
                          "type": "triple",
                          "subject": {
                            "type": "term",
                            "subType": "blankNode",
                            "loc": {
                              "sourceLocationType": "noMaterialize"
                            },
                            "label": "g_4"
                          },
                          "predicate": {
                            "type": "term",
                            "subType": "variable",
                            "value": "Y",
                            "loc": {
                              "sourceLocationType": "source",
                              "start": 133,
                              "end": 135
                            }
                          },
                          "object": {
                            "type": "tripleCollection",
                            "subType": "reifiedTriple",
                            "triples": [
                              {
                                "type": "triple",
                                "subject": {
                                  "type": "term",
                                  "subType": "namedNode",
                                  "value": "s1",
                                  "loc": {
                                    "sourceLocationType": "source",
                                    "start": 138,
                                    "end": 141
                                  },
                                  "prefix": ""
                                },
                                "predicate": {
                                  "type": "term",
                                  "subType": "namedNode",
                                  "value": "p1",
                                  "loc": {
                                    "sourceLocationType": "source",
                                    "start": 142,
                                    "end": 145
                                  },
                                  "prefix": ""
                                },
                                "object": {
                                  "type": "term",
                                  "subType": "variable",
                                  "value": "Z",
                                  "loc": {
                                    "sourceLocationType": "source",
                                    "start": 146,
                                    "end": 148
                                  }
                                },
                                "annotations": [],
                                "loc": {
                                  "sourceLocationType": "source",
                                  "start": 138,
                                  "end": 148
                                }
                              }
                            ],
                            "identifier": {
                              "type": "term",
                              "subType": "blankNode",
                              "loc": {
                                "sourceLocationType": "noMaterialize"
                              },
                              "label": "g_5"
                            },
                            "loc": {
                              "sourceLocationType": "source",
                              "start": 136,
                              "end": 150
                            }
                          },
                          "annotations": [],
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 133,
                            "end": 150
                          }
                        }
                      ],
                      "identifier": {
                        "type": "term",
                        "subType": "blankNode",
                        "loc": {
                          "sourceLocationType": "noMaterialize"
                        },
                        "label": "g_4"
                      },
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 130,
                        "end": 153
                      }
                    }
                  ],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 123,
                    "end": 153
                  }
                }
              ],
              "loc": {
                "sourceLocationType": "source",
                "start": 108,
                "end": 153
              }
            }
          ],
          "loc": {
            "sourceLocationType": "source",
            "start": 103,
            "end": 155
          }
        },
        "from": {
          "type": "datasetClauses",
          "clauses": [],
          "loc": {
            "sourceLocationType": "noMaterialize"
          }
        },
        "loc": {
          "sourceLocationType": "source",
          "start": 35,
          "end": 155
        }
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "PREFIX : <http://example.com/ns#>\n\nINSERT {\n    << :a :b :c >> ?P :o2  {| ?Y <<:s1 :p1 ?Z>> |}\n} WHERE {\n   << :a :b :c >> ?P :o1 {| ?Y <<:s1 :p1 ?Z>> |}\n}\n\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 155
    },
    "startOnNew": 0,
    "endOnNew": 155
  }
}
