Update for latest eXist-db and Jena - #7
Conversation
|
@adamretter Awesome! Does it require Java 8, by chance? Using OpenJDK 11 (Liberica), I got this error when building using the directions in your revised README:
The full block: |
|
@joewiz It sounds like the javadoc in the project may not be compatible with Java 11. Some aspects of Javadoc have changed (been made stricter) with each release of Java. I can also confirm that the javadoc is generated correctly on Java 8. I would suggest for now you build the module with Java 8, it will still run on Java 11. I haven't modified the original Javadoc and I am afraid I don't have time to fix the Javadoc right now for Java 11. I am happy for anyone else to send a second PR which does though :-) |
|
@adamretter Thanks! I can confirm that the PR builds under Java 8. |
There was a problem hiding this comment.
Also, the sample query in the README raises errors I reported in https://github.com/ljo/exist-sparql/pull/1/files, but running the revised sample query https://github.com/ljo/exist-sparql/blob/3dbc7cf70f4e9bd2f45df9a76fd8730988d22249/README.md returns no results, instead of the expected results.
| 4. enable the Index module in conf.xml, by adding one module declaration under "indexer/modules": | ||
| 4. enable the Index module in `$EXIST_HOME/conf.xml`, by adding one module declaration under "indexer/modules": | ||
| ```xml | ||
| <module id="rdf-index" class="org.exist.indexing.rdf.TDBRDFIndex"/> |
There was a problem hiding this comment.
After installing the xar, making this change to conf.xml, and restarting eXist 5.3.0-SNAPSHOT, I get this error in exist.log:
2020-06-25 12:09:04,712 [global.launcher.startJetty] ERROR (JettyStart.java [run]:216) - configuration error: element 'module' requires an attribute 'uri'
org.exist.util.DatabaseConfigurationException: element 'module' requires an attribute 'uri'
at org.exist.util.Configuration.loadModuleClasses(Configuration.java:433) ~[exist-core-5.3.0-SNAPSHOT.jar:5.3.0-SNAPSHOT]
at org.exist.util.Configuration.configureXQuery(Configuration.java:390) ~[exist-core-5.3.0-SNAPSHOT.jar:5.3.0-SNAPSHOT]
at org.exist.util.Configuration.<init>(Configuration.java:275) ~[exist-core-5.3.0-SNAPSHOT.jar:5.3.0-SNAPSHOT]
at org.exist.util.SingleInstanceConfiguration.<init>(SingleInstanceConfiguration.java:56) ~[exist-core-5.3.0-SNAPSHOT.jar:5.3.0-SNAPSHOT]
at org.exist.util.SingleInstanceConfiguration.<init>(SingleInstanceConfiguration.java:52) ~[exist-core-5.3.0-SNAPSHOT.jar:5.3.0-SNAPSHOT]
at org.exist.jetty.JettyStart.run(JettyStart.java:199) ~[exist-core-5.3.0-SNAPSHOT.jar:5.3.0-SNAPSHOT]
at org.exist.launcher.Launcher.lambda$4(Launcher.java:188) ~[exist-core-5.3.0-SNAPSHOT.jar:5.3.0-SNAPSHOT]
at java.lang.Thread.run(Thread.java:834) [?:?]
Changing the <module> element to:
<module uri="http://exist-db.org/xquery/sparql" class="org.exist.indexing.rdf.TDBRDFIndex"/>
... allows eXist to start up without error.
There was a problem hiding this comment.
@joewiz there are two module lines - the first is an index module, and the second is a xquery module. It sounds like you may have placed the index module in the xquery module part of conf.xml.
|
@adamretter I just tried to build this (running: Thoughts? I would love to use this in our upcoming re-release of the Srophe application. |
|
@wsalesky you might need to add http://repo.evolvedbinary.com/repository/exist-db/ to your repositories list until 5.3.0 is updated and this is updated for that. However I did find some problems with this... Maybe it would be good to have a watch of my recent Markup UK webinar |
|
@adamretter Thanks I will take a look at the webinar. |
|
@ljo Will this ever be merged? |
All tests now pass too ;-)
This removes the previous Ant build, as you can no longer build eXist-db with Ant.