Re: How to update fuseki from a local model?

2015-01-12 Thread Trevor Donaldson
I figured out how to delete reified statements but I feel as though there has to be a more efficient way of doing this. The way I am going about it now is as follows : DELETE {?s ?p ?o} WHERE { ?s rdf:subject https://myapp/servicea/id/ ?s rdf:predicate urn:myapp:id . ?s ?p ?o }

Re: How to update fuseki from a local model?

2015-01-12 Thread Trevor Donaldson
Scratch that question. The problem was that I wasn't using UpdateRequest.add(String string) method. Didn't realize I could add queries to the UpdateRequest. On Mon, Jan 12, 2015 at 8:37 AM, Trevor Donaldson tmdona...@gmail.com wrote: I figured out how to delete reified statements but I feel as

Re: How to update fuseki from a local model?

2015-01-10 Thread Claude Warren
We could extend the QueryBuilder in extras to handle creating the strings for INSERT DATA and DELETE DATA. On Fri, Jan 9, 2015 at 8:50 PM, Andy Seaborne a...@apache.org wrote: On 09/01/15 19:47, Trevor Donaldson wrote: Could I possible do this ? For the adds, yes. DatasetAccessor

How to update fuseki from a local model?

2015-01-09 Thread Trevor Donaldson
Hi all, Is there a way to take a temp model and send the result to fuseki? What I would like to accomplish : 1. Insert / delete triples in temp model 2. Send results (inserts and deletes) to fuseki to have it update the named graph Is this possible or do I need to do build the sparql queries

Re: How to update fuseki from a local model?

2015-01-09 Thread Trevor Donaldson
I think building the sparql manually is the way to go. On Fri, Jan 9, 2015 at 1:23 PM, Trevor Donaldson tmdona...@gmail.com wrote: @Andy - Yes there are bNodes in it. On Fri, Jan 9, 2015 at 12:49 PM, Andy Seaborne a...@apache.org wrote: On 09/01/15 15:13, Trevor Donaldson wrote: Hi all,

Re: How to update fuseki from a local model?

2015-01-09 Thread Trevor Donaldson
@Andy - Yes there are bNodes in it. On Fri, Jan 9, 2015 at 12:49 PM, Andy Seaborne a...@apache.org wrote: On 09/01/15 15:13, Trevor Donaldson wrote: Hi all, Is there a way to take a temp model and send the result to fuseki? What I would like to accomplish : 1. Insert / delete triples in

Re: How to update fuseki from a local model?

2015-01-09 Thread Martynas Jusevičius
Andy - builder code like this? https://github.com/Graphity/graphity-client/blob/master/src/main/java/org/graphity/processor/update/InsertDataBuilder.java It is based on SPIN though, not on Jena directly. On Fri, Jan 9, 2015 at 6:49 PM, Andy Seaborne a...@apache.org wrote: On 09/01/15 15:13,

Re: How to update fuseki from a local model?

2015-01-09 Thread Andy Seaborne
On 09/01/15 15:13, Trevor Donaldson wrote: Hi all, Is there a way to take a temp model and send the result to fuseki? What I would like to accomplish : 1. Insert / delete triples in temp model 2. Send results (inserts and deletes) to fuseki to have it update the named graph Is this possible

Re: How to update fuseki from a local model?

2015-01-09 Thread Trevor Donaldson
Could I possible do this ? DatasetAccessor dataAccessor = DatasetAccessorFactory.createHTTP(http//localhost:3030/ds); Model model = dataAcessor.getModel(); OntModel ontmodel = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM); ontmodel.add(model); //add, remove etc... do

Re: How to update fuseki from a local model?

2015-01-09 Thread Trevor Donaldson
I take that back. I am unable to pull back the named graph. That will not work for me. Looks like manual statements it is. On Fri, Jan 9, 2015 at 2:47 PM, Trevor Donaldson tmdona...@gmail.com wrote: Could I possible do this ? DatasetAccessor dataAccessor =

Re: How to update fuseki from a local model?

2015-01-09 Thread Andy Seaborne
On 09/01/15 19:47, Trevor Donaldson wrote: Could I possible do this ? For the adds, yes. DatasetAccessor dataAccessor = DatasetAccessorFactory.createHTTP(http//localhost:3030/ds); Model model = dataAcessor.getModel(); OntModel ontmodel =