Re: Query with spatial *and* text searches.

2015-12-21 Thread Mark Wharton
Hi Osma. Thanks for your help. It was exactly the kind of help that I wanted. Haha, but life is rarely that simple... I ran all your versions and my original a couple of times each to see if there was any difference in performance. query time1 time2 Orig4.615 4.632 1 4.648 4.

Re: Query with spatial *and* text searches.

2015-12-21 Thread Osma Suominen
Hi Mark! Thanks for trying my queries. I'm sorry (but not surprised!) to hear that they weren't any better than your original query. I think JENA-999 is really the key here - until it is implemented, I don't know any way of speeding this up. My (very fuzzy) understanding of ARQ is that it al

fuseki: 2 services sharing a dataset with text index

2015-12-21 Thread Brian McBride
The fuseki configuration below sets up two services with a shared dataset. The dataset has a lucene text index. This configuration works on Fuseki 1.3.1. Fuseki 2.3.1 fails to start. The log output is shown below. Looks like the lucene index may be trying to grab a lock for the dataset twi

Re: Using @vocab keyword from JSON-LD serialization

2015-12-21 Thread Andy Seaborne
Hi Nikola, Jena uses the jsonld-java project for JSON-LD support. Andy https://github.com/jsonld-java/jsonld-java On 20/12/15 23:17, Nikola Milikic wrote: Hi everyone, I am playing with Jena and using JSON-LD syntax for reading and outputting the data. I could not find much documen

Re: Query with spatial *and* text searches.

2015-12-21 Thread Mark Wharton
Hi Osma. Please don't apologise. It's nice to have someone to discuss this with who is so far up the curve. I was just going to rewrite exactly how you suggest (giving in?) but you beat me to it. SELECT ?score ?ent WHERE { ?ent spatial:nearby(51.507999420166016 -0.1099940395355 70.018078804

Checking whether Reader/Writer exists for Lang

2015-12-21 Thread Martynas Jusevičius
Hey, I have a situation where I register a new Lang (JSON-LD) in Jena 2.11.0 but I only have a Writer for it, not a Reader. How can I check whether Reader exists for a certain Lang before doing the actual read? Right now I get an exception: com.hp.hpl.jena.shared.NoReaderForLangException: JSON-L

Re: Query with spatial *and* text searches.

2015-12-21 Thread Mark Wharton
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 search which is why (I now remember) I us