{
  "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": "deletedata",
        "data": [
          {
            "type": "pattern",
            "subType": "bgp",
            "triples": [
              {
                "type": "triple",
                "subject": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "s",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 54,
                    "end": 56
                  },
                  "prefix": ""
                },
                "predicate": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "p",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 57,
                    "end": 59
                  },
                  "prefix": ""
                },
                "object": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "o1",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 60,
                    "end": 63
                  },
                  "prefix": ""
                },
                "annotations": [
                  {
                    "val": {
                      "type": "term",
                      "subType": "namedNode",
                      "value": "iri",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 66,
                        "end": 70
                      },
                      "prefix": ""
                    },
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 64,
                      "end": 70
                    }
                  },
                  {
                    "type": "tripleCollection",
                    "subType": "blankNodeProperties",
                    "triples": [
                      {
                        "type": "triple",
                        "subject": {
                          "type": "term",
                          "subType": "namedNode",
                          "value": "iri",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 66,
                            "end": 70
                          },
                          "prefix": ""
                        },
                        "predicate": {
                          "type": "term",
                          "subType": "namedNode",
                          "value": "added",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 75,
                            "end": 81
                          },
                          "prefix": ""
                        },
                        "object": {
                          "type": "term",
                          "subType": "literal",
                          "value": "Test",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 82,
                            "end": 88
                          }
                        },
                        "annotations": [],
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 66,
                          "end": 88
                        }
                      }
                    ],
                    "identifier": {
                      "type": "term",
                      "subType": "namedNode",
                      "value": "iri",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 66,
                        "end": 70
                      },
                      "prefix": ""
                    },
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 72,
                      "end": 91
                    }
                  }
                ],
                "loc": {
                  "sourceLocationType": "source",
                  "start": 54,
                  "end": 91
                }
              }
            ],
            "loc": {
              "sourceLocationType": "source",
              "start": 54,
              "end": 91
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 35,
          "end": 93
        }
      }
    },
    {
      "context": [],
      "operation": {
        "type": "updateOperation",
        "subType": "insertdata",
        "data": [
          {
            "type": "pattern",
            "subType": "bgp",
            "triples": [
              {
                "type": "triple",
                "subject": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "s",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 115,
                    "end": 117
                  },
                  "prefix": ""
                },
                "predicate": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "p",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 118,
                    "end": 120
                  },
                  "prefix": ""
                },
                "object": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "o2",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 121,
                    "end": 124
                  },
                  "prefix": ""
                },
                "annotations": [
                  {
                    "val": {
                      "type": "term",
                      "subType": "namedNode",
                      "value": "iri",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 127,
                        "end": 131
                      },
                      "prefix": ""
                    },
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 125,
                      "end": 131
                    }
                  },
                  {
                    "type": "tripleCollection",
                    "subType": "blankNodeProperties",
                    "triples": [
                      {
                        "type": "triple",
                        "subject": {
                          "type": "term",
                          "subType": "namedNode",
                          "value": "iri",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 127,
                            "end": 131
                          },
                          "prefix": ""
                        },
                        "predicate": {
                          "type": "term",
                          "subType": "namedNode",
                          "value": "added",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 136,
                            "end": 142
                          },
                          "prefix": ""
                        },
                        "object": {
                          "type": "term",
                          "subType": "literal",
                          "value": "Test",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 143,
                            "end": 149
                          }
                        },
                        "annotations": [],
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 127,
                          "end": 149
                        }
                      }
                    ],
                    "identifier": {
                      "type": "term",
                      "subType": "namedNode",
                      "value": "iri",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 127,
                        "end": 131
                      },
                      "prefix": ""
                    },
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 133,
                      "end": 152
                    }
                  }
                ],
                "loc": {
                  "sourceLocationType": "source",
                  "start": 115,
                  "end": 152
                }
              }
            ],
            "loc": {
              "sourceLocationType": "source",
              "start": 115,
              "end": 152
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 96,
          "end": 154
        }
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "PREFIX : <http://example.com/ns#>\n\nDELETE DATA  {\n    :s :p :o1 ~ :iri  {| :added 'Test' |}\n}\n;\nINSERT DATA  {\n    :s :p :o2 ~ :iri  {| :added 'Test' |}\n}\n\n\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 154
    },
    "startOnNew": 0,
    "endOnNew": 154
  }
}
