Re: [3.0.1] Upgrading to 3.8.0

2018-09-17 Thread ajs6f
For > 6. org.apache.jena.sparql.engine.http.Service.queryAuthUser/queryAuthPwd in particular, https://jena.apache.org/documentation/query/http-auth.html details methods for all-Jena HTTP authentication. Let us know if that doesn't meet your use case. ajs6f > On Sep 17, 2018, at 6:04 PM,

[3.0.1] Upgrading to 3.8.0

2018-09-17 Thread Martynas Jusevičius
Hi, now that SPIN API has done that, we are finally forced to do (a long overdue) upgrade from 3.0.1 to 3.8.0. This brings up a few deprecated/removed methods that I would like to ask some help with: 1. ReaderRIOT.setErrorHandler() 2. ReaderRIOT.setParserProfile() 3. ParserProfile.setBaseURI()

Re: Building a spatial index with jena/fuseki

2018-09-17 Thread ajs6f
Okay, I think we've got it. Nice debugging, Markus! If you look at the line of the spatial indexer code that is throwing an exception: https://github.com/apache/jena/blob/master/jena-spatial/src/main/java/jena/spatialindexer.java#L110 indeed, it does not start a transaction against the dataset

Re: Building a spatial index with jena/fuseki

2018-09-17 Thread Markus Neumann
It seems I made a mess with absolute and relative paths all together. So I created a minimal setup for testing: (I include the file-contents at the bottom) $ export JENA_HOME=/srv/linked_data_store/apache-jena-3.8.0 $ export PATH=$PATH:$JENA_HOME/bin $ tdb2.tdbloader

Re: Building a spatial index with jena/fuseki

2018-09-17 Thread ajs6f
I think you might have misunderstood the use of $JENA_HOME, or perhaps the Java classpath. $JENA_HOME, which should generally be an absolute filepath, allows the Jena scripts to find their libraries at runtime. Internally, the scripts use $JENA_HOME to set up the classpaths with which to start

Re: Building a spatial index with jena/fuseki

2018-09-17 Thread Markus Neumann
Ok, that's exactly what I did here: $ java -cp lib/*.jar jena.spatialindexer --desc=../fuseki-server/run/configuration/mm.ttl Error: Could not find or load main class lib.commons-cli-1.4.jar Or from outside JENA_HOME: $ java -cp apache-jena-3.8.0/lib/* jena.spatialindexer

Re: Building a spatial index with jena/fuseki

2018-09-17 Thread Marco Neumann
don't worry it's a common problem and frequent source of confusion not only with jena but java projects. try to simply inlcude all the jars. I presume you run this on a linux box with OpenJDK 8. correct? now once you have set up jena just add the following

Re: Building a spatial index with jena/fuseki

2018-09-17 Thread Markus Neumann
This is embarrassing but I don't get it. I've configured $JENA_HOME and adjusted the PATH. Now what classpath should I include when invoking the indexer? What I've tried so far: $ cd $JENA_HOME $ java -cp jena-spatial-3.8.0.jar jena.spatialindexer

Re: API in binary release?

2018-09-17 Thread Andy Seaborne
Using maven/gradle/... will make things easier in the long run. If you do want to use the distribution, the source is available in the distribution and if you attach that, the javadoc should be available in the IDE (at least, it is in Eclipse). It is also online:

Re: Building a spatial index with jena/fuseki

2018-09-17 Thread Marco Neumann
yes correct, this looks good. now include the classpath during invocation of the spatialindexer in addition it's always a good idea to properly configure jena along your java runtime environment settings to avoid jdk / lib conflicts during execution.

Re: Building a spatial index with jena/fuseki

2018-09-17 Thread Markus Neumann
Hi, I tried that and it does not change anything in the behaviour. Server starts fine but spatial queries don't work. Best Markus > Am 17.09.2018 um 11:26 schrieb Øyvind Gjesdal : > > Looking at our very similar config (based on the fuseki examples) only > difference I see (except from the

Re: Building a spatial index with jena/fuseki

2018-09-17 Thread Markus Neumann
1.: what do you mean by indexer? Probably my biggest problem is, that I have no clue how to find out, where the jena.spatialindexer could be located except for asking here. Here is the content of the apache jena I downloaded: $ ls -lh ../apache-jena-3.8.0/lib total 17M -rw-r--r-- 1 process

Re: Building a spatial index with jena/fuseki

2018-09-17 Thread Øyvind Gjesdal
Looking at our very similar config (based on the fuseki examples) only difference I see (except from the additional library) is that our config uses TDB, and your config uses TDB2. I believe tdbloader2 generates tdb1 data ( I could be wrong), since I remember using it pre tdb2 release, so there

Re: Building a spatial index with jena/fuseki

2018-09-17 Thread Lorenz B.
> 1. I download the jena-spatial-3.8.0.jar and specify that in the classpath: > $ java -cp jena-spatial-3.8.0.jar jena.spatialindexer > --desc=../fuseki-server/run/configuration/mm.ttl > Error: Could not find or load main class jena.spatialindexer The documentation is a bit misleading I'd say.

Re: Building a spatial index with jena/fuseki

2018-09-17 Thread Marco Neumann
Ok let's take a look at this. 1. please include in the indexer in the classpath. It's part of the current jena distribution. 2. do you need jts? it's a package that allows you to index multi point geometries. here a sample query would be helpful. If single point geometries are indexed and used

Building a spatial index with jena/fuseki

2018-09-17 Thread Markus Neumann
Hi, (sorry for the long post) I've been struggling with the spatial index for a while now. I've read https://jena.apache.org/documentation/query/spatial-query.html and skipped through about every spatial related thread here on

Re: API in binary release?

2018-09-17 Thread Lorenz B.
Using Maven/Gradle would fetch sources and Javadoc automatically via IDEs like Eclipse, IntelliJ, etc. If you really want to import the JARs manually, you can get Javadoc from Maven repo [1]. Indeed, you have to do it for each module, e.g. "core", "arq", etc. in your classpath [1]