Comments (5)
It will work outside Netbean using Maven:
mvn exec:java -Dexec.mainClass="com.myworks.testprog"
but still returns null using the "java -jar" method.
from jena.
After some digging, I added:
ARQ.init();
and now the expected results print. I never had to do this before. I suppose something is different in this new JDK I am using.
from jena.
This could be because the combined jar does not include the service loader files:
https://jena.apache.org/documentation/notes/jena-repack.html
For each of the jena jars included, the repacking needs to include (concatenate into one file) the contents of all
META-INF/services/org.apache.jena.sys.JenaSubsystemLifecycle
files in one file in the combined jar.
These are what drives Jena initialization using Java ServiceLoader. The JenaSubsystemLifecycle in Jena calls ARQ.init amongst other things.
from jena.
That did the trick. I was able to remove the ARQ.init() line after that. The weird is that I've used a shaded jar in this project for years with Jena without needing this change, so I'm not sure what changed, but it's an easy enough change. Thanks Andy!
from jena.
There was probably partial initialization - normally initialization happens when Jena is first touched by app code. An app can force it with JenaSystem.init()
. There is still class initialization happening and ARQ.init
can be triggered (or "was triggered") by other routes.
https://jena.apache.org/documentation/notes/system-initialization.html
including how to debug.
from jena.
Related Issues (20)
- trouble with Fuseki UI and one AJAX request (/$/stats) HOT 9
- Fuseki HttpAction: Check and improve the transaction lifecycle for HTTP action execution.
- Fuseki - setting the context path to a relative path causes 404s.
- Support for SPARQL CDTs (lists and maps as literals) HOT 1
- Using a reasoner to retrieve individuals beloning to a Class HOT 3
- How do you work with jena-fuseki-ui for local development? HOT 4
- Update jena-text to use Lucene in a Java21 compatible way.
- Always use hash joins when joining VALUES blocks HOT 3
- Prefixes Service
- More granular control over Blank node serialization HOT 1
- Error parsing linkedart context definition HOT 2
- ResultSetException: Datatype is rdf:langString but no language given HOT 3
- `UNDEF` in `VALUES` doesn't work with `SERVICE` HOT 4
- Provide a framework for normalizing RDF terms
- Titanium JSON-LD processor no longer supported HOT 1
- Move test log4j setting from log4j.properties to log4j2-test.properties
- Inconsistent default graph handling in RIOT writers HOT 2
- RDFLink: API for passing raw query strings to backend HOT 3
- java.lang.Error: Maximum lock count exceeded HOT 1
- SPARQL query round-trip serialization error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jena.