W3C home > Mailing lists > Public > semantic-web@w3.org > September 2011

Re: What are the repetitive bits you do?

From: Steve Harris <steve.harris@garlik.com>
Date: Sat, 17 Sep 2011 13:04:23 +0100
Cc: Melvin Carvalho <melvincarvalho@gmail.com>, Danny Ayers <danny.ayers@gmail.com>, Semantic Web <semantic-web@w3.org>
Message-Id: <FF5DCDD5-2C2C-44E9-A3E1-943625C9AC0F@garlik.com>
To: Sebastian Tramp <tramp@informatik.uni-leipzig.de>
On 17 Sep 2011, at 11:37, Sebastian Tramp wrote:

> On Fri, Sep 16, 2011 at 11:13:05PM +0200, Melvin Carvalho wrote:
> 
>>> 1. https://github.com/seebi/rdf.sh
>> 
>> Thanks! I'm using this quite a lot now.
>> 
>> Here's one I like:
>> 
>> curl -X PATCH -H 'Content-Type: application/json'
>> -d '{ "http://melv.data.fm/test.ttl#me": {
>> "http://xmlns.com/foaf/0.1/givenname" : [ { "value" : "Melvin", "type"
>> : "literal" } ] } } ' melv.data.fm/test.ttl
>> 
>> This will send an HTTP PATCH update to change one triple in a file
>> in my data space. It's useful when you want to use The Web as a
>> persistent store.
> 
> Which backend do you use for this?
> 
> A command "rdf patch melv.data.fm/test.ttl <new.json" is easily written
> but I think this is not really useable since writing json by hand is not
> that delight ;-)
> 
> better would be:
> 
> rdf.sh addAttribute m:me foaf:name "Melvin"
> or
> rdf.sh addRelation m:me foaf:knows http://sebastian.tramp.name
> 
> To distinguish between datatype and object relations simplifies the
> command line a little bit. 

Yeah, but the naming is a bit strange.

You can add individual triples using the SPARQL Protocol POST graph, or using a SPARQL Update of course.

- Steve
Received on Saturday, 17 September 2011 12:04:52 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 08:45:26 UTC