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
I received the error message "Content is not allowed in Prolog" while attempting to upload metadata to the Databus. See the screen shot. The error message appeared just after entering my WebID password. I initially expected problems with my pom.xml, but found none. After several hours, I decided to recreate my WebID and the upload. My initial WebID used a 303 approach to dereferencing, and worked when tested alone using curl, however it did not work with the databus-maven-plugin as expected. I recreated my WebID using a URI hash tag approach to dereferencing, and everything worked.
As a first step, I propose a better error message. The error message could relate to a problem with dereferencing the WebID.
The text was updated successfully, but these errors were encountered:
Hey thanks for the report.
We had a similar issue yesterday. Our problem was that we did not specify a proper ttl file suffix which prevented Jena/RIOT from correctly guessing the RDF serialization format. Do you have the setup of the old WebId for testing because I am not entirely sure whether 303 was the problem Jena doc says:
org.apache.jena.rdf.model.Model public abstract Model read(String url)
Add the RDF statements from a document. Uses content negotiation to request appropriate mime types. If the content type is not found, it may guess from the URL.
See Model for a description of how to traverse a firewall.
See "Reading and Writing RDF in Apache Jena" for more information about determining the syntax.
Tasks:
I totally agree the message from Jena is not very useful and should be catched and translated into a useful message
make sure backend uses same strategy to verify the webid (that was the bug with the dnkg certificate having no ttl suffix leading to pass in mvn validate but not in server side because of SAN mismatch)
Here is my old WebID you can test at https://graph.culturecreates.com/id/gregory-saumier-finch which does a "hand made" 303 style content negotiation returning either turtle, json-ld or html. The error may be at my end since I was experimenting with Amazon API Gateway and a Lambda function to do the dereferencing ;-)
I received the error message "Content is not allowed in Prolog" while attempting to upload metadata to the Databus. See the screen shot. The error message appeared just after entering my WebID password. I initially expected problems with my pom.xml, but found none. After several hours, I decided to recreate my WebID and the upload. My initial WebID used a 303 approach to dereferencing, and worked when tested alone using curl, however it did not work with the databus-maven-plugin as expected. I recreated my WebID using a URI hash tag approach to dereferencing, and everything worked.
As a first step, I propose a better error message. The error message could relate to a problem with dereferencing the WebID.
The text was updated successfully, but these errors were encountered: