linkeddata / rdflib.js

Linked Data API for JavaScript
http://linkeddata.github.io/rdflib.js/doc/
Other
564 stars 143 forks source link

Mime-Type for N-Triples #110

Open ckristo opened 8 years ago

ckristo commented 8 years ago

Hi,

I noticed that $rdf.serialize does not define the mime type for N-Triples (application/n-triples), is there a reason for that? I suppose that application/n-quads should be used for serializing to N-Triples?

BR, Chris

retog commented 6 years ago

The same goes for the parser. n-triples could be supported just by adding the media-type to the list (with turtle or with n-quads)

retog commented 6 years ago

Actually serializing in-n-triples seems to work now

 $rdf.serialize(undefined, graph, 'http://base.org/', 'application/n-triples');