4store / 4store

4store is an efficient, scalable and stable RDF database.
https://4store.github.io
GNU General Public License v3.0
290 stars 73 forks source link

rdf/xml mime-type error parsing in POST with curl #67

Open msalvadores opened 12 years ago

msalvadores commented 12 years ago

The following command does not work with a valid RDF document.

curl --data-urlencode data@vcards.rdf 
        -d  'graph=http%3A%2F%2Fproject.org%2FvCards' 
        -d 'mime-type=application/rdf+xml' http://localhost:7070/data/

If mime-type is not sent then the POST works just fine.

TortugaAttack commented 10 years ago

It's still an Issue. But maybe i found out why. If you have Blank Nodes as Resources: { BlankNode1 } {BlankNode1 /Literal} If you want to POST files containing triples like this there will be a 400 Parser Error (doesn't matter if Turtle or RDF/XML)

If you change the BlankNodes to UUIDs everything works fine.

I uploaded the Files where i noticed it. (with Blank Nodes and UUIDs) http://www.file-upload.net/download-8794050/Teichmann_Blank.ttl.html http://www.file-upload.net/download-8794081/Teichmann_UUID.ttl.html

I hope it will help.