Hi Osma, I manage to compile all skipping the test cases. Indeed there is a little bug that needs to be fixed to make all work.
https://github.com/apache/jena/commit/0cc1d1a01f0e9ce1656d48 ad5b93095b6cdea263 I had a hope that lucene 5.5.3 would be faster but fuseki is still slow. I will create another thread to discuss the issue. Best, On 7 January 2017 at 14:14, Osma Suominen <[email protected]> wrote: > Hi Samur, > > At the time Jean-Marc worked on this (and I helped), it was evidently > possible to compile it. IIRC what I did back then was not to compile > everything, but just the modules that were changed, i.e. jena-text and > jena-spatial, and then either jena-fuseki1 or jena-fuseki2. This way only > the modified modules were manually built for the Fuseki build, with > everything else coming from the Maven repositories. But of course, at the > time, the fork was pretty much up to date with jena master and the Maven > repository. Now it has already diverged and there was the 3.1.1 release in > between, which affects the version numbers of all modules. > > > I've created a git branch which takes the current jena master and rebases > jmvanel's forked master on top of that: > https://github.com/osma/jena/tree/lucene5 > > I was able to build it like this: > > 1. Clear the local Maven repository (~.m2/repository) just in case > 2. Run "mvn clean install" under jena-text > 3. Run "mvn clean install" under jena-spatial > 4. Run "mvn clean package" under jena-fuseki1 > > The resulting Fuseki package under target/ should now contain the > jena-text and jena-spatial modules built with Lucene 5.5.3. > > > I tried building jena-fuseki2 too, but it failed with an error that I > suspect is not related to the Lucene changes. > > Hope this helps, > Osma > > > 06.01.2017, 14:27, Samur Araujo wrote: > >> Thank you for all the help! >> >> It is clear now that the fork have several bugs and issues. >> >> Best. >> >> >> On 6 January 2017 at 11:51, Andy Seaborne <[email protected]> wrote: >> >> >>> >>> On 05/01/17 16:16, Samur Araujo wrote: >>> >>> Thank you Andy, your suggestion worked but I got this new error: >>>> >>>> >>> Don't recognize that one and I don't remember it being some issue with >>> Jena. It would be good if that clone yuo are workign from were up-to-date >>> with the Jena development master branch so that the state of it is known. >>> >>> https://github.com/jmvanel/jena/commits/master >>> >>> is not the Jena projects code repository - as ajs6f says, you will have >>> to >>> take this up with the maintainer of that fork, Jean-Marc Vanel (jmvanel) >>> and find out what the state of work there is. >>> >>> Andy >>> >>> >>> NFO] Using 'UTF-8' encoding to copy filtered resources. >>>> [INFO] Copying 8 resources >>>> [INFO] Copying 1 resource >>>> [INFO] Copying 3 resources >>>> [INFO] >>>> [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ >>>> jena-fuseki-core --- >>>> [INFO] Changes detected - recompiling the module! >>>> [INFO] Compiling 111 source files to >>>> /home/samur/Downloads/jena-master/jena-fuseki2/jena-fuseki- >>>> core/target/classes >>>> [INFO] >>>> [INFO] --- maven-resources-plugin:2.7:testResources >>>> (default-testResources) >>>> @ jena-fuseki-core --- >>>> [INFO] Using 'UTF-8' encoding to copy filtered resources. >>>> [INFO] skip non existing resourceDirectory >>>> /home/samur/Downloads/jena-master/jena-fuseki2/jena-fuseki- >>>> core/src/test/resources >>>> [INFO] Copying 3 resources >>>> [INFO] >>>> [INFO] --- maven-compiler-plugin:3.5.1:testCompile >>>> (default-testCompile) >>>> @ >>>> jena-fuseki-core --- >>>> [INFO] Changes detected - recompiling the module! >>>> [INFO] Compiling 19 source files to >>>> /home/samur/Downloads/jena-master/jena-fuseki2/jena-fuseki- >>>> core/target/test-classes >>>> [INFO] >>>> [INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ >>>> jena-fuseki-core --- >>>> >>>> ------------------------------------------------------- >>>> T E S T S >>>> ------------------------------------------------------- >>>> Running org.apache.jena.fuseki.TS_Fuseki >>>> [2017-01-05 17:11:41] riot ERROR [line: 6, col: 7 ] Unexpected >>>> attribute : :datatype at typedLiteral >>>> Exception in thread "Thread-73" org.apache.jena.riot.RiotException: >>>> [line: >>>> 6, col: 7 ] Unexpected attribute : :datatype at typedLiteral >>>> at >>>> org.apache.jena.riot.system.ErrorHandlerFactory$ErrorHandler >>>> Std.error(ErrorHandlerFactory.java:128) >>>> at org.apache.jena.riot.lang.ReaderTriX.staxError(ReaderTriX.java:419) >>>> at org.apache.jena.riot.lang.ReaderTriX.staxError(ReaderTriX.java:415) >>>> at org.apache.jena.riot.lang.ReaderTriX.attribute(ReaderTriX.java:404) >>>> at org.apache.jena.riot.lang.ReaderTriX.term(ReaderTriX.java:288) >>>> at org.apache.jena.riot.lang.ReaderTriX.read(ReaderTriX.java:215) >>>> at org.apache.jena.riot.lang.ReaderTriX.read(ReaderTriX.java:85) >>>> at org.apache.jena.riot.RDFDataMgr.process(RDFDataMgr.java:859) >>>> at org.apache.jena.riot.RDFDataMgr.parse(RDFDataMgr.java:698) >>>> at org.apache.jena.riot.RDFDataMgr.parse(RDFDataMgr.java:687) >>>> at >>>> org.apache.jena.riot.RDFDataMgr.lambda$createIteratorTriples >>>> $0(RDFDataMgr.java:1250) >>>> at java.lang.Thread.run(Thread.java:745) >>>> [2017-01-05 17:11:51] riot ERROR [line: 6, col: 7 ] Unexpected >>>> attribute : :datatype at typedLiteral >>>> [2017-01-05 17:11:51] riot ERROR [line: 7, col: 7 ] Unexpected >>>> attribute : :datatype at typedLiteral >>>> Exception in thread "Thread-81" org.apache.jena.riot.RiotException: >>>> [line: >>>> 7, col: 7 ] Unexpected attribute : :datatype at typedLiteral >>>> at >>>> org.apache.jena.riot.system.ErrorHandlerFactory$ErrorHandler >>>> Std.error(ErrorHandlerFactory.java:128) >>>> at org.apache.jena.riot.lang.ReaderTriX.staxError(ReaderTriX.java:419) >>>> at org.apache.jena.riot.lang.ReaderTriX.staxError(ReaderTriX.java:415) >>>> at org.apache.jena.riot.lang.ReaderTriX.attribute(ReaderTriX.java:404) >>>> at org.apache.jena.riot.lang.ReaderTriX.term(ReaderTriX.java:288) >>>> at org.apache.jena.riot.lang.ReaderTriX.read(ReaderTriX.java:215) >>>> at org.apache.jena.riot.lang.ReaderTriX.read(ReaderTriX.java:85) >>>> at org.apache.jena.riot.RDFDataMgr.process(RDFDataMgr.java:859) >>>> at org.apache.jena.riot.RDFDataMgr.parse(RDFDataMgr.java:698) >>>> at org.apache.jena.riot.RDFDataMgr.parse(RDFDataMgr.java:687) >>>> at >>>> org.apache.jena.riot.RDFDataMgr.lambda$createIteratorQuads$ >>>> >>>> 1(RDFDataMgr.java:1270) >>>> at java.lang.Thread.run(Thread.java:745) >>>> Tests run: 168, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 24.439 >>>> sec <<< FAILURE! - in org.apache.jena.fuseki.TS_Fuseki >>>> query_construct_conneg(org.apache.jena.fuseki.TestQuery) Time elapsed: >>>> 10.084 sec <<< ERROR! >>>> org.apache.jena.riot.RiotException: Producer failed to ever call >>>> start(), >>>> declaring producer dead >>>> at >>>> org.apache.jena.fuseki.TestQuery.query_construct_conneg( >>>> TestQuery.java:217) >>>> >>>> query_describe_conneg(org.apache.jena.fuseki.TestQuery) Time elapsed: >>>> 0.111 sec <<< ERROR! >>>> org.apache.jena.riot.RiotException: [line: 6, col: 7 ] Unexpected >>>> attribute >>>> : :datatype at typedLiteral >>>> at >>>> org.apache.jena.fuseki.TestQuery.query_describe_conneg( >>>> TestQuery.java:251) >>>> >>>> query_construct_quad_conneg(org.apache.jena.fuseki.TestQuery) Time >>>> elapsed: 10.263 sec <<< ERROR! >>>> org.apache.jena.riot.RiotException: Producer failed to ever call >>>> start(), >>>> declaring producer dead >>>> at >>>> org.apache.jena.fuseki.TestQuery.query_construct_quad_ >>>> conneg(TestQuery.java:235) >>>> >>>> >>>> Results : >>>> >>>> Tests in error: >>>> TestQuery.query_construct_conneg:217 » Riot Producer failed to ever >>>> call >>>> start... >>>> TestQuery.query_construct_quad_conneg:235 » Riot Producer failed to >>>> ever >>>> call ... >>>> TestQuery.query_describe_conneg:251 » Riot [line: 6, col: 7 ] >>>> Unexpected >>>> attri... >>>> >>>> Tests run: 168, Failures: 0, Errors: 3, Skipped: 0 >>>> >>>> [INFO] >>>> ------------------------------------------------------------ >>>> ------------ >>>> [INFO] Reactor Summary: >>>> [INFO] >>>> [INFO] Apache Jena - Parent ............................... SUCCESS [ >>>> 1.722 s] >>>> [INFO] Apache Jena - Shadowed external libraries .......... SUCCESS [ >>>> 2.032 s] >>>> [INFO] Apache Jena - IRI .................................. SUCCESS [ >>>> 6.837 s] >>>> [INFO] Apache Jena - Base Common Environment .............. SUCCESS [ >>>> 9.758 s] >>>> [INFO] Apache Jena - Core ................................. SUCCESS [ >>>> 51.465 s] >>>> [INFO] Apache Jena - ARQ (SPARQL 1.1 Query Engine) ........ SUCCESS [ >>>> 46.230 s] >>>> [INFO] Apache Jena - TDB (Native Triple Store) ............ SUCCESS [ >>>> 50.199 s] >>>> [INFO] Apache Jena - Libraries POM ........................ SUCCESS [ >>>> 0.215 s] >>>> [INFO] Apache Jena - Command line tools ................... SUCCESS [ >>>> 9.637 s] >>>> [INFO] Apache Jena - SPARQL Text Search ................... SUCCESS [ >>>> 13.269 s] >>>> [INFO] Apache Jena - SPARQL Spatial Search ................ SUCCESS [ >>>> 8.797 s] >>>> [INFO] Apache Jena - Data Tables for RDF and SPARQL ....... SUCCESS [ >>>> 6.016 s] >>>> [INFO] Apache Jena - SDB (SQL based triple store) ......... SUCCESS [ >>>> 20.826 s] >>>> [INFO] Apache Jena - Fuseki1 .............................. SUCCESS [ >>>> 13.342 s] >>>> [INFO] Apache Jena - Fuseki - A SPARQL 1.1 Server ......... SUCCESS [ >>>> 0.056 s] >>>> [INFO] Apache Jena - Fuseki Server Engine ................. FAILURE [ >>>> 26.072 s] >>>> >>>> >>>> On 5 January 2017 at 16:56, Andy Seaborne <[email protected]> wrote: >>>> >>>> >>>> >>>>> On 05/01/17 15:26, Samur Araujo wrote: >>>>> >>>>> <<< FAILURE! - in org.apache.jena.riot.tokens.TS_Tokens >>>>> >>>>>> tokenUnit_iri18(org.apache.jena.riot.tokens.TestTokenizer) Time >>>>>> elapsed: >>>>>> 0.004 sec <<< ERROR! >>>>>> java.lang.Exception: Unexpected exception, >>>>>> expected<org.apache.jena.riot.RiotException> but >>>>>> was<java.util.MissingFormatArgumentException> >>>>>> at >>>>>> org.apache.jena.riot.tokens.TestTokenizer.tokenFirst(TestTok >>>>>> enizer.java:45) >>>>>> at >>>>>> org.apache.jena.riot.tokens.TestTokenizer.tokenUnit_iri18(Te >>>>>> stTokenizer.java:205) >>>>>> >>>>>> >>>>>> The code you are compiling is behind the Apache codebase. >>>>>> >>>>> >>>>> It looks like it could be this: >>>>> >>>>> https://github.com/apache/jena/commit/0cc1d1a01f0e9ce1656d48 >>>>> ad5b93095b6cdea263 >>>>> >>>>> Andy >>>>> >>>>> >>>>> >>>>> >>>> >>>> >> >> > > -- > Osma Suominen > D.Sc. (Tech), Information Systems Specialist > National Library of Finland > P.O. Box 26 (Kaikukatu 4) > 00014 HELSINGIN YLIOPISTO > Tel. +358 50 3199529 > [email protected] > http://www.nationallibrary.fi > -- Senior Data Scientist Geophy www.geophy.com Nieuwe Plantage 54-55 2611XK Delft +31 (0)70 7640725 1 Fore Street EC2Y 9DT London +44 (0)20 37690760
