{
  "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": "namedNode",
                  "value": "s",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 48,
                    "end": 50
                  },
                  "prefix": ""
                },
                "predicate": {
                  "type": "term",
                  "subType": "variable",
                  "value": "P",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 51,
                    "end": 53
                  }
                },
                "object": {
                  "type": "term",
                  "subType": "triple",
                  "subject": {
                    "type": "term",
                    "subType": "namedNode",
                    "value": "a",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 58,
                      "end": 60
                    },
                    "prefix": ""
                  },
                  "predicate": {
                    "type": "term",
                    "subType": "namedNode",
                    "value": "b",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 61,
                      "end": 63
                    },
                    "prefix": ""
                  },
                  "object": {
                    "type": "term",
                    "subType": "namedNode",
                    "value": "c",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 64,
                      "end": 66
                    },
                    "prefix": ""
                  },
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 54,
                    "end": 70
                  }
                },
                "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": 75,
                            "end": 77
                          }
                        },
                        "object": {
                          "type": "term",
                          "subType": "triple",
                          "subject": {
                            "type": "term",
                            "subType": "namedNode",
                            "value": "s1",
                            "loc": {
                              "sourceLocationType": "source",
                              "start": 81,
                              "end": 84
                            },
                            "prefix": ""
                          },
                          "predicate": {
                            "type": "term",
                            "subType": "namedNode",
                            "value": "p1",
                            "loc": {
                              "sourceLocationType": "source",
                              "start": 85,
                              "end": 88
                            },
                            "prefix": ""
                          },
                          "object": {
                            "type": "term",
                            "subType": "variable",
                            "value": "Z",
                            "loc": {
                              "sourceLocationType": "source",
                              "start": 89,
                              "end": 91
                            }
                          },
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 78,
                            "end": 94
                          }
                        },
                        "annotations": [],
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 75,
                          "end": 94
                        }
                      }
                    ],
                    "identifier": {
                      "type": "term",
                      "subType": "blankNode",
                      "loc": {
                        "sourceLocationType": "noMaterialize"
                      },
                      "label": "g_0"
                    },
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 72,
                      "end": 97
                    }
                  }
                ],
                "loc": {
                  "sourceLocationType": "source",
                  "start": 48,
                  "end": 97
                }
              }
            ],
            "loc": {
              "sourceLocationType": "source",
              "start": 48,
              "end": 97
            }
          }
        ],
        "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": 111,
                      "end": 113
                    }
                  },
                  "predicate": {
                    "type": "term",
                    "subType": "variable",
                    "value": "P",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 114,
                      "end": 116
                    }
                  },
                  "object": {
                    "type": "term",
                    "subType": "triple",
                    "subject": {
                      "type": "term",
                      "subType": "namedNode",
                      "value": "a",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 121,
                        "end": 123
                      },
                      "prefix": ""
                    },
                    "predicate": {
                      "type": "term",
                      "subType": "namedNode",
                      "value": "b",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 124,
                        "end": 126
                      },
                      "prefix": ""
                    },
                    "object": {
                      "type": "term",
                      "subType": "namedNode",
                      "value": "c",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 127,
                        "end": 129
                      },
                      "prefix": ""
                    },
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 117,
                      "end": 133
                    }
                  },
                  "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": 137,
                              "end": 139
                            }
                          },
                          "object": {
                            "type": "term",
                            "subType": "triple",
                            "subject": {
                              "type": "term",
                              "subType": "namedNode",
                              "value": "s1",
                              "loc": {
                                "sourceLocationType": "source",
                                "start": 143,
                                "end": 146
                              },
                              "prefix": ""
                            },
                            "predicate": {
                              "type": "term",
                              "subType": "namedNode",
                              "value": "p1",
                              "loc": {
                                "sourceLocationType": "source",
                                "start": 147,
                                "end": 150
                              },
                              "prefix": ""
                            },
                            "object": {
                              "type": "term",
                              "subType": "variable",
                              "value": "Z",
                              "loc": {
                                "sourceLocationType": "source",
                                "start": 151,
                                "end": 153
                              }
                            },
                            "loc": {
                              "sourceLocationType": "source",
                              "start": 140,
                              "end": 156
                            }
                          },
                          "annotations": [],
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 137,
                            "end": 156
                          }
                        }
                      ],
                      "identifier": {
                        "type": "term",
                        "subType": "blankNode",
                        "loc": {
                          "sourceLocationType": "noMaterialize"
                        },
                        "label": "g_1"
                      },
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 134,
                        "end": 159
                      }
                    }
                  ],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 111,
                    "end": 159
                  }
                }
              ],
              "loc": {
                "sourceLocationType": "source",
                "start": 111,
                "end": 159
              }
            }
          ],
          "loc": {
            "sourceLocationType": "source",
            "start": 106,
            "end": 161
          }
        },
        "from": {
          "type": "datasetClauses",
          "clauses": [],
          "loc": {
            "sourceLocationType": "noMaterialize"
          }
        },
        "loc": {
          "sourceLocationType": "source",
          "start": 35,
          "end": 161
        }
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "PREFIX : <http://example.com/ns#>\n\nINSERT {\n    :s ?P <<( :a :b :c )>>  {| ?Y <<(:s1 :p1 ?Z)>> |}\n} WHERE {\n   ?s ?P <<( :a :b :c )>> {| ?Y <<(:s1 :p1 ?Z)>> |}\n}\n\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 161
    },
    "startOnNew": 0,
    "endOnNew": 161
  }
}
