You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<body>Exception occured while processing /models
<pre>Message: net.enilink.komma.core.KommaException: Invalid RDF data:
IRI included an unencoded space: '32' [line 1]
net.enilink.komma.model.ModelUtil.readData(ModelUtil.java:644)
net.enilink.komma.model.rdf4j.SerializableModelSupport$1.run(SerializableModelSupport.java:211)
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
java.base/java.lang.Thread.run(Thread.java:829)
Caught and thrown by:
Message: org.eclipse.rdf4j.rio.RDFParseException: IRI included an unencoded space: '32' [line 1]
org.eclipse.rdf4j.rio.helpers.RDFParserHelper.reportError(RDFParserHelper.java:276)
org.eclipse.rdf4j.rio.helpers.AbstractRDFParser.reportError(AbstractRDFParser.java:584)
org.eclipse.rdf4j.rio.turtle.TurtleParser.reportError(TurtleParser.java:1298)
org.eclipse.rdf4j.rio.turtle.TurtleParser.parseURI(TurtleParser.java:900)
org.eclipse.rdf4j.rio.turtle.TurtleParser.parseValue(TurtleParser.java:568)
org.eclipse.rdf4j.rio.turtle.TurtleParser.parseSubject(TurtleParser.java:395)
org.eclipse.rdf4j.rio.turtle.TurtleParser.parseTriples(TurtleParser.java:330)
org.eclipse.rdf4j.rio.turtle.TurtleParser.parseStatement(TurtleParser.java:200)
org.eclipse.rdf4j.rio.turtle.TurtleParser.parse(TurtleParser.java:162)
org.eclipse.rdf4j.rio.turtle.TurtleParser.parse(TurtleParser.java:125)
net.enilink.komma.model.ModelUtil.readData(ModelUtil.java:642)
net.enilink.komma.model.rdf4j.SerializableModelSupport$1.run(SerializableModelSupport.java:211)
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
java.base/java.lang.Thread.run(Thread.java:829)
</pre>
</body>
Process
posting a new model in ttl-format to the /models-endpoint . Ontology imports another ontology in rdf/xml which is accessable in the web (example ttl below)
sending GET with the same model as parameter -> only the first time server exception is thrown
sending GET again -> everything ok
Reason (most likely)
When sending GET request model is being parsed with the RDF4J.rio-TurtleParser, but also the imported rdf/xml. The first line of the xml is <?xml version="1.0" encoding="UTF-8"?> which probably is interpreted as an IRI by the turtle parser. The exception is thrown due to the space inbetween.
In my test, I could isolate the problematic ontology (no further imports, so the mistake is certainly from there): http://spinrdf.org/sp
Server answer with stack trace
Process
Reason (most likely)
When sending GET request model is being parsed with the RDF4J.rio-TurtleParser, but also the imported rdf/xml. The first line of the xml is
<?xml version="1.0" encoding="UTF-8"?>
which probably is interpreted as an IRI by the turtle parser. The exception is thrown due to the space inbetween.In my test, I could isolate the problematic ontology (no further imports, so the mistake is certainly from there): http://spinrdf.org/sp
HTTP Code for testing (insert domain address)
The text was updated successfully, but these errors were encountered: