File Syntax

RDF/JSON

The RDF/JSON encoding is a simplified, alternative format to the recommended JSON-LD encoding.

This encoding is not an official W3C Recommendation. Modern implementations should use JSON-LD or other official formats for any data encoding requirements.

Example

{
  "_:b0": {
    "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [
      { "type": "uri", "value": "https://schema.org/WebSite" }
    ],
    "https://schema.org/name": [
      { "type": "literal", "value": "Schema Markup" }
    ],
    "https://schema.org/url": [
      { "type": "uri", "value": "https://schemamarkup.app/" }
    ]
  }
}

Messages

  • Lax Syntax — warnings about syntax errors which may cause unexpected behavior.

References

  • Specifications: RDF 1.1 N-Quads
  • Media Type: application/n-quads
  • File Name: *.nq