Closed
Description
Try as I might, I cannot find a list of RDF serialization formats.
- SPARQL Protocol: https://www.w3.org/TR/sparql12-protocol/#query-success points to specs for the 4 tabular formats suitable for SELECT/ASK
- But for CONSTRUCT and DESCRIBE it gives only RDF XML as an example, then refers to RDF Concepts for more
- RDF Concepts: https://www.w3.org/TR/rdf12-concepts/#section-dataset-conneg doesn't have a list of formats
- RDF 1.1 Primer: https://www.w3.org/TR/rdf11-primer/#section-graph-syntax has a great list of examples and links for 7 formats, but is not updated since 2014
It would be good to have an official list of formats, with links to their respective specs.
I don't know whether this belongs in RDF Concepts, but is there any better place?
https://graphdb.ontotext.com/documentation/10.5/rdf-formats.html lists the formats and MIME types supported by rdf4j.
Here is a subset excluding RDF-Star formats and alternative MIME types:
Format | Content-Type | note |
---|---|---|
RDF XML | application/rdf+xml | |
Turtle | text/turtle | |
N-Triples | application/n-triples | |
N-Quads | application/n-quads | |
JSON-LD | application/ld+json | |
RDF JSON | application/rdf+json | |
N3 | text/n3 | Extension of Turtle, but typical repositories treat it as Turtle |
TriX | application/trix | |
TriG | application/trig |
A major omission is RDFa and Microdata.
Activity