Did not recognise RDF format object Turtle #5319
-
Current BehaviorI developed an app to read ttl files, the app runs very well using eclipse: run as -> java app. The file format is not supported or the file is not a valid Turtle file. The part of the code where I read the ttl file is the following: // Read the TTL file into a model In my pom, I have the following dependencies: org.eclipse.rdf4j rdf4j-storage pom org.slf4j slf4j-simple runtime org.eclipse.rdf4j rdf4j-queryalgebra-geosparql org.eclipse.rdf4j rdf4j-sparqlbuilder org.json json 20230227 org.eclipse.rdf4j rdf4j-rio-turtleWhat I really do not understand is why the app works in eclipse ide, but not as exe jar file. Hope somebody could tell me what I am doing wrong. Best regards Luis Ramos Expected Behaviorttl file should be read, and requested report should be generated Steps To Reproduce
Versionlatest Are you interested in contributing a solution yourself?Yes Anything else?No response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You need to configure the correct merging of spi files. Probably using a shade plug in like below. <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>false</shadedArtifactAttached>
<shadedClassifierName>uber</shadedClassifierName>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Main-Class>swiss.sib.swissprot.servicedescription.Generate</Main-Class>
</manifestEntries>
</transformer>
</transformers>
<artifactSet/>
<outputFile>${project.build.directory}/${project.artifactId}-${project.version}-uber.jar</outputFile>
</configuration>
</execution>
</executions>
</plugin> |
Beta Was this translation helpful? Give feedback.
-
Hi @JervenBolleman , thanks for your support!. The issue is solved. |
Beta Was this translation helpful? Give feedback.
You need to configure the correct merging of spi files. Probably using a shade plug in like below.