You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Sandor Kopacsi <sa...@univie.ac.at> on 2016/09/16 09:02:01 UTC

s-put, s-post, s-delete

Dear List Members,

In a previous thread (extending an existing dataset) Andy suggested to 
use s-put to replace a deficient data file (delete the old one and 
upload a new one) in an existing dataset.

I am not sure, but I am afraid that the suggested s-put scrip is not 
appropriate to upload new data file in my case, since I have already 
several other data files in the dataset in the TDB that I want to keep 
intact. I only would like to replace a certain data file with a new one 
(extended with some additional triplets) under the same graph name. As 
far as I know  s-put will clean the entire dataset first before it 
uploads the new datafile. But I might use s-post, that - according to 
may knowledge - can add new datafile without cleaning the existing data 
files from the TDB. Am I right?

Another the question is, how can I delete a dedicated graph from the 
dataset. The utility s-delete might help?

Thank you very much and best regards,
Sandor

-- 
Dr. Sandor Kopacsi
IT Software Designer

Vienna University Computer Center


Re: s-put, s-post, s-delete

Posted by Andy Seaborne <an...@apache.org>.
It's "add triples" (POST) not replace (PUT)

On 27/09/16 15:17, Sandor Kopacsi wrote:
> Thanks, it is clear, I just wanted to know additionally, that by the
> upload from the HTML form of Fuseki's Control Panel does it simply
> replace the specified graph (or the default graph) with the content of
> the provided file, like by s-put.
>
>
> Am 27.09.2016 um 15:41 schrieb Andy Seaborne:
>> It uses a plain HTML form upload IIRC.
>>
>> fuseki:serviceUpload in the service configuration.
>>
>>
>> On 27/09/16 14:24, Sandor Kopacsi wrote:
>>> Thank you, now it is clear.
>>>
>>> My last question regarding this, if the Control Panel of Fuseki uses
>>> s-put style upload?
>>>
>>> Thanks,
>>> Sandor
>>>
>>>
>>> Am 16.09.2016 um 11:30 schrieb Andy Seaborne:
>>>> Sandor,
>>>>
>>>> What makes you think it replaces the entire dataset? Have you seen
>>>> this happen?  HTTP PUT on the dataset URI wil do that - s-put does not
>>>> because it replaces the graph, default or named, not the whole dataset.
>>>> See the "SPARQL Graph Store Protocol".
>>>>
>>>> If your file is not in its own graph, you'll need to use a SPARQL
>>>> Update operation DELETE/INSERT/WHERE.
>>>>
>>>> s-post is "add RDF to a graph".  in HTTP, POST should always be
>>>> "append-like" when on some container-like resource.
>>>>
>>>>     Andy
>>>>
>>>> On 16/09/16 10:02, Sandor Kopacsi wrote:
>>>>> Dear List Members,
>>>>>
>>>>> In a previous thread (extending an existing dataset) Andy suggested to
>>>>> use s-put to replace a deficient data file (delete the old one and
>>>>> upload a new one) in an existing dataset.
>>>>>
>>>>> I am not sure, but I am afraid that the suggested s-put scrip is not
>>>>> appropriate to upload new data file in my case, since I have already
>>>>> several other data files in the dataset in the TDB that I want to keep
>>>>> intact. I only would like to replace a certain data file with a new
>>>>> one
>>>>> (extended with some additional triplets) under the same graph name. As
>>>>> far as I know  s-put will clean the entire dataset first before it
>>>>> uploads the new datafile. But I might use s-post, that - according to
>>>>> may knowledge - can add new datafile without cleaning the existing
>>>>> data
>>>>> files from the TDB. Am I right?
>>>>>
>>>>> Another the question is, how can I delete a dedicated graph from the
>>>>> dataset. The utility s-delete might help?
>>>>>
>>>>> Thank you very much and best regards,
>>>>> Sandor
>>>>>
>>>
>

Re: s-put, s-post, s-delete

Posted by Sandor Kopacsi <sa...@univie.ac.at>.
Thanks, it is clear, I just wanted to know additionally, that by the 
upload from the HTML form of Fuseki's Control Panel does it simply 
replace the specified graph (or the default graph) with the content of 
the provided file, like by s-put.


Am 27.09.2016 um 15:41 schrieb Andy Seaborne:
> It uses a plain HTML form upload IIRC.
>
> fuseki:serviceUpload in the service configuration.
>
>
> On 27/09/16 14:24, Sandor Kopacsi wrote:
>> Thank you, now it is clear.
>>
>> My last question regarding this, if the Control Panel of Fuseki uses
>> s-put style upload?
>>
>> Thanks,
>> Sandor
>>
>>
>> Am 16.09.2016 um 11:30 schrieb Andy Seaborne:
>>> Sandor,
>>>
>>> What makes you think it replaces the entire dataset? Have you seen
>>> this happen?  HTTP PUT on the dataset URI wil do that - s-put does not
>>> because it replaces the graph, default or named, not the whole dataset.
>>> See the "SPARQL Graph Store Protocol".
>>>
>>> If your file is not in its own graph, you'll need to use a SPARQL
>>> Update operation DELETE/INSERT/WHERE.
>>>
>>> s-post is "add RDF to a graph".  in HTTP, POST should always be
>>> "append-like" when on some container-like resource.
>>>
>>>     Andy
>>>
>>> On 16/09/16 10:02, Sandor Kopacsi wrote:
>>>> Dear List Members,
>>>>
>>>> In a previous thread (extending an existing dataset) Andy suggested to
>>>> use s-put to replace a deficient data file (delete the old one and
>>>> upload a new one) in an existing dataset.
>>>>
>>>> I am not sure, but I am afraid that the suggested s-put scrip is not
>>>> appropriate to upload new data file in my case, since I have already
>>>> several other data files in the dataset in the TDB that I want to keep
>>>> intact. I only would like to replace a certain data file with a new 
>>>> one
>>>> (extended with some additional triplets) under the same graph name. As
>>>> far as I know  s-put will clean the entire dataset first before it
>>>> uploads the new datafile. But I might use s-post, that - according to
>>>> may knowledge - can add new datafile without cleaning the existing 
>>>> data
>>>> files from the TDB. Am I right?
>>>>
>>>> Another the question is, how can I delete a dedicated graph from the
>>>> dataset. The utility s-delete might help?
>>>>
>>>> Thank you very much and best regards,
>>>> Sandor
>>>>
>>

-- 
Dr. Sandor Kopacsi
IT Software Designer

Vienna University Computer Center
Universit�tsstra�e 7 (NIG)
A-1010 Vienna

Phone:  +43-1-4277-14176
Mobile: +43-664-60277-14176


Re: s-put, s-post, s-delete

Posted by Andy Seaborne <an...@apache.org>.
It uses a plain HTML form upload IIRC.

fuseki:serviceUpload in the service configuration.


On 27/09/16 14:24, Sandor Kopacsi wrote:
> Thank you, now it is clear.
>
> My last question regarding this, if the Control Panel of Fuseki uses
> s-put style upload?
>
> Thanks,
> Sandor
>
>
> Am 16.09.2016 um 11:30 schrieb Andy Seaborne:
>> Sandor,
>>
>> What makes you think it replaces the entire dataset? Have you seen
>> this happen?  HTTP PUT on the dataset URI wil do that - s-put does not
>> because it replaces the graph, default or named, not the whole dataset.
>> See the "SPARQL Graph Store Protocol".
>>
>> If your file is not in its own graph, you'll need to use a SPARQL
>> Update operation DELETE/INSERT/WHERE.
>>
>> s-post is "add RDF to a graph".  in HTTP, POST should always be
>> "append-like" when on some container-like resource.
>>
>>     Andy
>>
>> On 16/09/16 10:02, Sandor Kopacsi wrote:
>>> Dear List Members,
>>>
>>> In a previous thread (extending an existing dataset) Andy suggested to
>>> use s-put to replace a deficient data file (delete the old one and
>>> upload a new one) in an existing dataset.
>>>
>>> I am not sure, but I am afraid that the suggested s-put scrip is not
>>> appropriate to upload new data file in my case, since I have already
>>> several other data files in the dataset in the TDB that I want to keep
>>> intact. I only would like to replace a certain data file with a new one
>>> (extended with some additional triplets) under the same graph name. As
>>> far as I know  s-put will clean the entire dataset first before it
>>> uploads the new datafile. But I might use s-post, that - according to
>>> may knowledge - can add new datafile without cleaning the existing data
>>> files from the TDB. Am I right?
>>>
>>> Another the question is, how can I delete a dedicated graph from the
>>> dataset. The utility s-delete might help?
>>>
>>> Thank you very much and best regards,
>>> Sandor
>>>
>

Re: s-put, s-post, s-delete

Posted by Sandor Kopacsi <sa...@univie.ac.at>.
Thank you, now it is clear.

My last question regarding this, if the Control Panel of Fuseki uses 
s-put style upload?

Thanks,
Sandor


Am 16.09.2016 um 11:30 schrieb Andy Seaborne:
> Sandor,
>
> What makes you think it replaces the entire dataset? Have you seen 
> this happen?  HTTP PUT on the dataset URI wil do that - s-put does not 
> because it replaces the graph, default or named, not the whole dataset.
> See the "SPARQL Graph Store Protocol".
>
> If your file is not in its own graph, you'll need to use a SPARQL 
> Update operation DELETE/INSERT/WHERE.
>
> s-post is "add RDF to a graph".  in HTTP, POST should always be 
> "append-like" when on some container-like resource.
>
>     Andy
>
> On 16/09/16 10:02, Sandor Kopacsi wrote:
>> Dear List Members,
>>
>> In a previous thread (extending an existing dataset) Andy suggested to
>> use s-put to replace a deficient data file (delete the old one and
>> upload a new one) in an existing dataset.
>>
>> I am not sure, but I am afraid that the suggested s-put scrip is not
>> appropriate to upload new data file in my case, since I have already
>> several other data files in the dataset in the TDB that I want to keep
>> intact. I only would like to replace a certain data file with a new one
>> (extended with some additional triplets) under the same graph name. As
>> far as I know  s-put will clean the entire dataset first before it
>> uploads the new datafile. But I might use s-post, that - according to
>> may knowledge - can add new datafile without cleaning the existing data
>> files from the TDB. Am I right?
>>
>> Another the question is, how can I delete a dedicated graph from the
>> dataset. The utility s-delete might help?
>>
>> Thank you very much and best regards,
>> Sandor
>>

-- 
Dr. Sandor Kopacsi
IT Software Designer

Vienna University Computer Center
Universit�tsstra�e 7 (NIG)
A-1010 Vienna

Phone:  +43-1-4277-14176
Mobile: +43-664-60277-14176


Re: s-put, s-post, s-delete

Posted by Andy Seaborne <an...@apache.org>.
Sandor,

What makes you think it replaces the entire dataset? Have you seen this 
happen?  HTTP PUT on the dataset URI wil do that - s-put does not 
because it replaces the graph, default or named, not the whole dataset.
See the "SPARQL Graph Store Protocol".

If your file is not in its own graph, you'll need to use a SPARQL Update 
operation DELETE/INSERT/WHERE.

s-post is "add RDF to a graph".  in HTTP, POST should always be 
"append-like" when on some container-like resource.

	Andy

On 16/09/16 10:02, Sandor Kopacsi wrote:
> Dear List Members,
>
> In a previous thread (extending an existing dataset) Andy suggested to
> use s-put to replace a deficient data file (delete the old one and
> upload a new one) in an existing dataset.
>
> I am not sure, but I am afraid that the suggested s-put scrip is not
> appropriate to upload new data file in my case, since I have already
> several other data files in the dataset in the TDB that I want to keep
> intact. I only would like to replace a certain data file with a new one
> (extended with some additional triplets) under the same graph name. As
> far as I know  s-put will clean the entire dataset first before it
> uploads the new datafile. But I might use s-post, that - according to
> may knowledge - can add new datafile without cleaning the existing data
> files from the TDB. Am I right?
>
> Another the question is, how can I delete a dedicated graph from the
> dataset. The utility s-delete might help?
>
> Thank you very much and best regards,
> Sandor
>