Re: Can I save an in-memory Jena Model to a remote Fuseki-managed database?

2015-08-17 Thread Andy Seaborne
On 17/08/15 22:40, Martynas Jusevičius wrote: So what are the semantics of POSTing quads and PUTing quads? Append and replace as per HTTP. RFC 7231: 4.3.3. POST ... - Extending a database through an append operation. ... (any ordering implied by "extend" is irrelevant for a set of quads

Fuseki over HTTPS?

2015-08-17 Thread Jason Levitt
Sorry if this is a FAQ, but I'm wondering if there are any guidelines online to setting up Fuseki for HTTPS access? Jason

Re: Can I save an in-memory Jena Model to a remote Fuseki-managed database?

2015-08-17 Thread Martynas Jusevičius
So what are the semantics of POSTing quads and PUTing quads? On Mon, Aug 17, 2015 at 11:32 PM, Andy Seaborne wrote: > On 17/08/15 22:21, Martynas Jusevičius wrote: >> >> Is that an oversight in the GSP spec? > > > Not really - the GET/POST/PUT on the dataset itself is just normal use of > HTTP. >

Re: Can I save an in-memory Jena Model to a remote Fuseki-managed database?

2015-08-17 Thread Andy Seaborne
On 17/08/15 22:21, Martynas Jusevičius wrote: Is that an oversight in the GSP spec? Not really - the GET/POST/PUT on the dataset itself is just normal use of HTTP. The "Graph Store Protocol" for managing a graph store. What it really adds is the naming convention, ?default and ?graph.

Re: Can I save an in-memory Jena Model to a remote Fuseki-managed database?

2015-08-17 Thread Martynas Jusevičius
Is that an oversight in the GSP spec? I had done something similar (which I use as a low-level API): https://github.com/Graphity/graphity-core/blob/master/src/main/java/org/graphity/core/util/DataManager.java On Mon, Aug 17, 2015 at 10:16 PM, Andy Seaborne wrote: > On 17/08/15 20:26, Martynas J

Re: Can I save an in-memory Jena Model to a remote Fuseki-managed database?

2015-08-17 Thread Andy Seaborne
On 17/08/15 20:26, Martynas Jusevičius wrote: Andy, I have a related question. What if I have a Dataset at hand, not a Model - how do I send it to a remote Graph Store? The SPARQL Graph Store Protocol does not mention this. Fuseki supports REST-ish PUT/POST/GET on the dataset URL. Currentl

Re: Can I save an in-memory Jena Model to a remote Fuseki-managed database?

2015-08-17 Thread Martynas Jusevičius
Andy, I have a related question. What if I have a Dataset at hand, not a Model - how do I send it to a remote Graph Store? Martynas On Mon, Aug 17, 2015 at 9:19 PM, Andy Seaborne wrote: > DatasetAccessor > > This is the API to the SPARQL Graph Store Protocol. > > Model model = ... > DatasetAcce

Re: Can I save an in-memory Jena Model to a remote Fuseki-managed database?

2015-08-17 Thread Andy Seaborne
DatasetAccessor This is the API to the SPARQL Graph Store Protocol. Model model = ... DatasetAccessor acc = DatasetAccessorFactory.createHTTP ("http://.../datasets/data";) ; acc.add(model) ; // adds to existign data, if any. or acc.putModel(model) -- which overwrites existing data On

Re: Can I save an in-memory Jena Model to a remote Fuseki-managed database?

2015-08-17 Thread aj...@virginia.edu
There may be a better answer for this, but at the very least, you can serialize your triples/quads and use SPARQL Update to send them to your Fuseki instance. --- A. Soroka The University of Virginia Library On Aug 17, 2015, at 3:08 PM, Andy Doddington wrote: > > On 17 Aug 2015, at 19:50, An

Re: Can I save an in-memory Jena Model to a remote Fuseki-managed database?

2015-08-17 Thread Andy Doddington
On 17 Aug 2015, at 19:50, Andy Doddington wrote: Hoping the subject makes my query clear - since I am a total newbie in this area. I have created a tiny model, using ModelFactory.createDefaultModel() to create my initially empty model, which I then populate manually. So, having done this,

Re: special graph urn:x-arq:UnionGraph with TDB

2015-08-17 Thread Andy Seaborne
On 17/08/15 09:12, Jean-Marc Vanel wrote: Hi Is it a lazy copy of the TDB data? That, will it load triples in memory as soon as the navigation or query demands them ? Will it unload triples in memory later ? Is it a live copy of the TDB data? Or will it reflect the updates occurring in current

special graph urn:x-arq:UnionGraph with TDB

2015-08-17 Thread Jean-Marc Vanel
Hi Is it a lazy copy of the TDB data? That, will it load triples in memory as soon as the navigation or query demands them ? Will it unload triples in memory later ? Is it a live copy of the TDB data? Or will it reflect the updates occurring in current transactions? In other transactions? What