On 03/04/15 03:47, Qihong Lin wrote:
3) query string  sytax
I went through TriG syntax.

By the way: in SPARQL Update there is a similar form "INSERT" which takes a TriG+variables template. This is the grammar that you need; the embedded java may need changing or not (I'm not sure but it looks close).

See:

https://github.com/apache/jena/blob/master/jena-arq/Grammar/master.jj#L679

The execution of INSERT (not INSERT DATA) should provide the general approach:

https://github.com/apache/jena/blob/master/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/UpdateEngineWorker.java#L381

and it uses code:

https://github.com/apache/jena/blob/master/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/TemplateLib.java#L46

        Andy

Reply via email to