Re: fuseki: 2 services sharing a dataset with text index

2015-12-22 Thread Andy Seaborne
JENA-1104 suggests there is a ordering/timing issue and that it is not Fuseki1/Fuseki2 expect that things happen in a different order. I'm not sure that a shared index across two different datasets will work if updates are involved. Maybe someone else can help with that. What's

Re: fuseki: 2 services sharing a dataset with text index

2015-12-22 Thread Brian McBride
On 22/12/15 18:22, Andy Seaborne wrote: JENA-1104 suggests there is a ordering/timing issue and that it is not Fuseki1/Fuseki2 expect that things happen in a different order. OK. Should I reopen that Jira? It was closed because the issue was not reproducible. The behaviour I'm seeing has

Re: fuseki: 2 services sharing a dataset with text index

2015-12-22 Thread Andy Seaborne
On 22/12/15 19:00, Brian McBride wrote: What's fuseki:allowTimeoutOverride? Is this a local build with the code for that uncommented out? Not a local build no. I didn't come up with this, I suggest you get back to where this came from because ... but it may be related to

Re: SPARQL to return only the directly implemented class from a class hierarchy

2015-12-22 Thread Andy Seaborne
On 22/12/15 19:09, A. Soroka wrote: Were you using that with an inferring model? Because then you are going to materialize a bunch of fresh rdf:type triples, which are going to turn up as the other (super) classes. Chris : "directly implemented" -- do you mean direct subclasses?

Re: SPARQL to return only the directly implemented class from a class hierarchy

2015-12-22 Thread Chris Snyder
Yes, you are correct that path update works if I turn off the reasoner. I’m still interested in knowing if there is a query that will work with the OWL reasoner enabled. Part of my research is to evaluate how a reasoner can/can not be beneficial. So this is actually good data point. Thanks,

Re: SPARQL to return only the directly implemented class from a class hierarchy

2015-12-22 Thread Chris Snyder
Yeah, I tried that route but it still returns all the class in the inheritance structure. Thanks, Chris > On Dec 22, 2015, at 11:52 AM, A. Soroka wrote: > > I am _no_ SPARQL guru, but I think you might be able to do this without > inference, with property paths: > >

Re: SPARQL to return only the directly implemented class from a class hierarchy

2015-12-22 Thread A. Soroka
Were you using that with an inferring model? Because then you are going to materialize a bunch of fresh rdf:type triples, which are going to turn up as the other (super) classes. --- A. Soroka The University of Virginia Library > On Dec 22, 2015, at 1:58 PM, Chris Snyder

Unable to fetch Equivalent Class

2015-12-22 Thread Dibyanshu Jaiswal
I am using the following function to get a list of all the equivalent classes of a given class. *Inputs* : 1. myModel: is my jena OntModel. 2. classURI : URI of the class for which I want to fetch the equivalent classes. *Output* : List containing the URIs of the equivalent classes.

Re: Query with spatial *and* text searches.

2015-12-22 Thread Andy Seaborne
On 22/12/15 07:06, Mark Wharton wrote: Ah, wheels within wheels. The formulation with the filter in it is fine, except that if you want to search for more than one word or you match in label and comment then the UNION formulation returns you duplicate rows. This isn't a problem with the Lucene

Re: about reasoner(owl rule)

2015-12-22 Thread Dave Reynolds
It is hard to follow your image and understand what it is that you are trying to achieve. On the face of it you have two forward rules, some data (which we can't see) and an inference model. I seems like you want to see the results of the forward inference, without seeing the original data.

Re: Checking whether Reader/Writer exists for Lang

2015-12-22 Thread Andy Seaborne
Unclear. 1/ 2.11.0 is old. Use a later version with JSON-LD built-in. 2/ You may need to use RDFDataMgr. Not sure at 2.11.old whether Lang registration interacted with the Jena RDFReaderFImpl. 3/ Not clear what you registered and how. 4/ Did you call RIOT.init()? Maybe needed. Andy

Re: Illegal unicode escape in file generated with schemagen on Windows

2015-12-22 Thread Joerg Schoenfisch
On 22.12.2015 13:31, Andy Seaborne wrote: On 22/12/15 11:07, Joerg Schoenfisch wrote: So, apparently there is some code in the method setGlobalReplacements() in the schemagen class that should prevent this error. However, it does not seem to work. I tried to do some debugging, but when cloning

Re: Query with spatial *and* text searches.

2015-12-22 Thread Andy Seaborne
Mark - here is another way. This query: SELECT ?score ?ent WHERE { { ?ent spatial:nearby ( ) } { ?ent text:query ( . ) } # No ?ent rdf:type iotic:Entity . # This focuses the query on the presenting issue. } and then run Fuseki with the following flags: --set

Re: Illegal unicode escape in file generated with schemagen on Windows

2015-12-22 Thread Jonathan Camilleri
Where is the class documented, I have not heard of this problem? On 22 December 2015 at 12:07, Joerg Schoenfisch < jo...@informatik.uni-mannheim.de> wrote: > So, apparently there is some code in the method setGlobalReplacements() in > the schemagen class that should prevent this error. However,

Re: Checking whether Reader/Writer exists for Lang

2015-12-22 Thread Andy Seaborne
On 22/12/15 12:46, Martynas Jusevičius wrote: I'm stuck with this version because the latest SPIN API (1.4.0) is using it and last I heard Holger said he's not planning an upgrade :/ Does it matter? 2.12.0 has JSON-LD. I registered the writer like this:

Re: Checking whether Reader/Writer exists for Lang

2015-12-22 Thread Martynas Jusevičius
Correct, I've registered only the writer but attempting to read JSON-LD. That is because content negotiation is based on RDFLanguages.getRegisteredLanguages() and therefore JSON-LD is included in Accept headers. I guess I will need to keep track of actual readable/writable types separately in

Re: Unable to fetch Equivalent Class

2015-12-22 Thread Dave Reynolds
On 22/12/15 12:06, Dibyanshu Jaiswal wrote: Thanks for the nice explanation. Though I’m not using any inferencing mechanism in Protege, Classes like <#CheeseyPizza>, <#NonVegetarianPizza> etc etc are shown as subclasses of <#Pizza>. Is it correct to consider them as subclass? Yes. If A =

Re: Unable to fetch Equivalent Class

2015-12-22 Thread Dave Reynolds
On 22/12/15 11:06, Dibyanshu Jaiswal wrote: I am using the following function to get a list of all the equivalent classes of a given class. *Inputs* : 1. myModel: is my jena OntModel. 2. classURI : URI of the class for which I want to fetch the equivalent classes. *Output* : List

Re: Illegal unicode escape in file generated with schemagen on Windows

2015-12-22 Thread Joerg Schoenfisch
The method can be found here: https://github.com/apache/jena/blob/master/jena-core/src/main/java/jena/schemagen.java#L349 The sources from which we generate the Java files are located in a tree where one folder starts with the letter u resulting in a String in the JavaDoc that is interpreted

Re: Illegal unicode escape in file generated with schemagen on Windows

2015-12-22 Thread Andy Seaborne
On 22/12/15 11:07, Joerg Schoenfisch wrote: So, apparently there is some code in the method setGlobalReplacements() in the schemagen class that should prevent this error. However, it does not seem to work. I tried to do some debugging, but when cloning the repository and importing the Maven

Re: Checking whether Reader/Writer exists for Lang

2015-12-22 Thread Holger Knublauch
On 22/12/2015 1:46 PM, Martynas Jusevičius wrote: I'm stuck with this version because the latest SPIN API (1.4.0) is using it and last I heard Holger said he's not planning an upgrade :/ By coincidence I just filed an ISSUE on our internal JIRA to upgrade our whole TopBraid code base to Jena

Re: Unable to fetch Equivalent Class

2015-12-22 Thread Dibyanshu Jaiswal
Thanks for the nice explanation. Though I’m not using any inferencing mechanism in Protege, Classes like <#CheeseyPizza>, <#NonVegetarianPizza> etc etc are shown as subclasses of <#Pizza>. Is it correct to consider them as subclass? Actually I was writing a code which could build the same

Re: Illegal unicode escape in file generated with schemagen on Windows

2015-12-22 Thread Joerg Schoenfisch
I created a minimal example that shows the error: https://github.com/joe776/u-in-name On 22.12.2015 13:08, Joerg Schoenfisch wrote: The method can be found here: https://github.com/apache/jena/blob/master/jena-core/src/main/java/jena/schemagen.java#L349 The sources from which we generate

SPARQL to return only the directly implemented class from a class hierarchy

2015-12-22 Thread Chris Snyder
I’m using the Jena OWL reasoner with this ontology: http://www.mind-tap.net/kbswt/simple_no_inheritance.ttl I want to get the named individuals that are instances of a modelica:BinaryExpression along with the rdfs:label of the class directly implemented by the named individual. I hope there is

Re: Query with spatial *and* text searches.

2015-12-22 Thread Mark Wharton
Query below run without Andy's switches. INFO [5] 200 OK (4.985 s) Query below run with Andy's switches. INFO [1] 200 OK (840 ms) Them's some magic switches. Thanks, Andy. Do they have any impact (negative or positive) on any other SPARQL operations? I'm only curious as you've solved our

Re: SPARQL to return only the directly implemented class from a class hierarchy

2015-12-22 Thread A. Soroka
I am _no_ SPARQL guru, but I think you might be able to do this without inference, with property paths: PREFIX rdf: PREFIX rdfs: PREFIX owl: PREFIX modelica:

Re: Query with spatial *and* text searches.

2015-12-22 Thread Andy Seaborne
Mark, Thanks for the experiment results. On 22/12/15 15:47, Mark Wharton wrote: Query below run without Andy's switches. INFO [5] 200 OK (4.985 s) Query below run with Andy's switches. INFO [1] 200 OK (840 ms) Them's some magic switches. Thanks, Andy. Do they have any impact