0

Is there a way to update data by (INSERT DATA and DELETE DATA) remotely through a SPARQL endpoint? I'm aware that we can use SERVICE to do distributed and federated query, but I got errors when i tried to use SERVICE to remotely update data as:

INSERT DATA
{SERVICE <SparqlEndpoint1> {
subject, predicate, object
}}

Thank you very much for your help.

TallTed
  • 9,069
  • 2
  • 22
  • 37
  • Possible duplicate of [SPARQL - Insert data from remote endpoint](https://stackoverflow.com/questions/42615446/sparql-insert-data-from-remote-endpoint) – Stanislav Kralin Nov 15 '17 at 17:31
  • 1
    @StanislavKralin - This is not a duplicate. The other questioner wanted to select data from a remote endpoint, for insertion into the local endpoint. This questioner wants to insert data to the remote endpoint, through the local endpoint. – TallTed Nov 15 '17 at 19:51
  • 1
    And why can't you send the query to the endpoint then? The URL of the endpoint is obvisouly known, thus, I don't understand the use case. – UninformedUser Nov 15 '17 at 20:35
  • @AKSW, i tried to update a distributed triplestore via the SPARQL interface provided by a local triplestore,is there any way i can do this? thanks. – Artemis1216 Nov 16 '17 at 09:52
  • 1
    Not via SPARQL. Which distributed triple store is this? Why can't you use the interface of this triple store? – UninformedUser Nov 16 '17 at 10:16

1 Answers1

3

The Federated SPARQL SERVICE clause only supports SELECT operations. SERVICE clauses cannot be used for INSERT, UPDATE, DELETE, or other SPARQL Update operations on remote endpoints. See the SPARQL 1.1 grammar and the other linked documents for more details.

TallTed
  • 9,069
  • 2
  • 22
  • 37