Re: Bug in PrintUtil or Node prevents roundtripping Rules

2015-09-17 Thread Martynas Jusevičius
Hit send too soon! When the list is serialized back to String again, I get [[ inheritance: (?template rdf:type http://graphity.org/gp#Template) (?template ?p ?o) (?p rdf:type owl:AnnotationProperty) (?p rdfs:isDefinedBy http://graphity.org/gp#) (?subClass rdfs:subClassOf ?template) noValue(?subCl

Bug in PrintUtil or Node prevents roundtripping Rules

2015-09-17 Thread Martynas Jusevičius
Hey, I have a List created using Rule.parseRules from a String: [inheritance: (?template rdf:type ), (?template ?p ?o), (?p rdf:type owl:AnnotationProperty), (?p rdfs:isDefinedBy ), (?subClass rdfs:subClassOf ?template), noValue(?subClass

Re: jena technical doc

2015-09-17 Thread Zen 98052
Hi Charles, Yes, I agree that Andy has done great job with Jena extensibility. I think I figured it out now (at least until I post another questions in this forum :-)), but I'll also check your code if I got stumbled later. Thanks for sharing. Z From: Char

RE: jena technical doc

2015-09-17 Thread Charles Greer
Hello, I did this recently, and it turned out to be pretty straightforward. Andy did a great job with extensibility. I have not announced this project to the list yet because it's not released yet, and it relies on unreleased code in MarkLogic, but this class shows how to implement the SPARQL

Re: jena technical doc

2015-09-17 Thread Zen 98052
Sorry, ignore what I said (stupid me!). Now I got what you said earlier about DatasetGraph.add and .delete The code I took over didn't implements DatasetGraph for our custom graph store, which was why I got confused. Now I have to rewrite our existing graph store code to implements DatasetGraph

Re: jena technical doc

2015-09-17 Thread Zen 98052
I looked at Jena code more thorough, and I think I found what I am looking for, let me know if this is not the right way. First, I create my own update engine worker (i.e. implements UpdateVisitor interface), this is where I put all my logic to deal with update operations against our back-end d

Re: jena technical doc

2015-09-17 Thread Zen 98052
Hi Andy, I have follow up question for #2 after looking at DatasetGraph class, and Jena's code sample for the update operation. Which interface I can implement, so that I can do something like below: * if the statement in SPARQL query is INSERT, then convert it to specific custom logic (i.e. add

Re: Spatial and Text indexes with Lucene - either, but not both?

2015-09-17 Thread Mark Wharton
Hi Andy. Just got round to trying this again. I'm now running Java 8 apache-jena-3.0.0 jena-fuseki1-1.3.0 lucene-5.3.0 jts-1.13 I'm still experiencing the same error - i.e. POSTing geo:lat/long triples to the /text/update endpoint doesn't get them indexed. I've worked around this for now. Mark