Hi,
There is one other suggestion ... A Utility I felt that would be helpful...
There can be a, public static method that should take in
TokenInputStream... and return List<PatchLines>
eg: public static List<PatchLine> getPatchLines(TokenInputStream in){
/**
* parse the input stream
* construct the PatchLine ( Quad + Action)
**/
return List<PatchLine>;
}
class PatchLine{
String quadAction; (eg: A,D)
Quad quadLine;
}
Thought this will be helpful , as am in need for the work I am doing....
And i think it can go inside either org.apache.jena.rdfpatch.RDFPatch or
org.apache.jena.rdfpatch.PatchAssembler
Thanks
Mahendiran
From: Andy Seaborne <[email protected]>
To: [email protected]
Date: 06/11/2014 12:35 PM
Subject: Re: RDF Patch
On 11/06/14 17:02, Mahendiran Chandrasekar wrote:
> Sure, Will do.
>
> So I am using the experimental project. The
> RDFPatch./_replayChange,_/DatasetChangesTuples,_
TokenOutputStreamWriter_ works good..
>
> The only concern is , why is it supporting only Quad Patches and not
> Triple patches
>
> The spec http://afs.github.io/rdf-patch/#rdf-tuples-format
>
> RowItem = WORD | Term | VAR
> Row = RowItem* DOT
>
> sounds like it should allow Triples aswel, Is there any specific reason
> for supporting only quads.
yes - the spec allows triples and it would be better to have specific
Graph player with the addition checking implied.
At the moment you, can have a dataset with the target graph as the
default graph because that's where triple changes get applied.
Andy
>
> Thanks
> Mahendiran
>
> Inactive hide details for Andy Seaborne ---06/10/2014 08:44:04 AM---On
> 09/06/14 14:50, Mahendiran Chandrasekar wrote: > Hello,Andy Seaborne
> ---06/10/2014 08:44:04 AM---On 09/06/14 14:50, Mahendiran Chandrasekar
> wrote: > Hello,
>
> From: Andy Seaborne <[email protected]>
> To: [email protected]
> Date: 06/10/2014 08:44 AM
> Subject: Re: RDF Patch
>
> ------------------------------------------------------------------------
>
>
>
> On 09/06/14 14:50, Mahendiran Chandrasekar wrote:
> > Hello,
> >
> > I am trying to apply the patch to an existing data set,instead of
> > dropping and fetching an entire resource again....
> >
> > Will this be included along with jena 2.11.2 ?
>
> What I would like is feedback (good as well as bad) on the ideas. Once
> something is in the main release, code starts depending on it (as it
> should be able to). If you coudl provide such feedback that woudl
> really help. Jena 2.11.2 was just released - it does not have it in.
>
> A special consideration for the next release is 2.12.0 - the version
> bump is because we are now moving to java7 from java6 as the lowest java
> version provided.
>
> We hope (as volunteers, we don't have resourcing to make the sort of
> guarantees you might associate with a "plan") to make the 2.12. release
> quite soon (a month maybe? depends on various things such as how much
> RDF 1.1 switch over to include).
>
> Andy
>
> >
> > Thanks
> > Mahendiran
> >
> > Inactive hide details for Andy Seaborne ---06/06/2014 05:39:09 PM---On
> > 06/06/14 15:22, Mahendiran Chandrasekar wrote: >Andy Seaborne
> > ---06/06/2014 05:39:09 PM---On 06/06/14 15:22, Mahendiran Chandrasekar
> > wrote: >
> >
> > From: Andy Seaborne <[email protected]>
> > To: [email protected]
> > Date: 06/06/2014 05:39 PM
> > Subject: Re: RDF Patch
> >
> >
------------------------------------------------------------------------
> >
> >
> >
> > On 06/06/14 15:22, Mahendiran Chandrasekar wrote:
> > >
> > >
> > > Hello All,
> > >
> > > I am trying to use the
> > http://afs.github.io/rdf-patch/#rdf-patch-details...
> > > (RDFPatch) to a TDB for updating a dataset using patch mechanism
> > >
> > > Does Jena support / plan to support API's for this
> > >
> > > Thanks
> > > Mahendiran
> > >
> >
> > There is some code available in:
> >
> > https://svn.apache.org/repos/asf/jena/Experimental/rdfpatch/
> >
> > I would welcome feedback. What are you trying to achieve with it?
> >
> > Andy
> >
> >
>
>