JSON-LD To N-Quads
Convert JSON-LD documents to N-Quads RDF serialization format with real-time browser-side processing.
Convert JSON-LD to N-Quads RDF format
N-Quads is a line-based RDF serialization format that extends N-Triples with an optional graph name component. Each line represents one RDF statement (quad) with subject, predicate, object, and graph terms.
What this tool does
Paste a JSON-LD document and the converter transforms it into N-Quads using the jsonld.js toRDF processor. The output shows every RDF quad extracted from your linked data document.
When to use N-Quads conversion
- Inspect the RDF triples behind a JSON-LD document.
- Feed linked data into RDF stores and SPARQL endpoints.
- Debug JSON-LD markup by viewing the underlying graph structure.
- Export semantic web data for tools that require N-Quads input.
Related tools
For canonical RDF output, use JSON-LD to Normalized. To transform JSON-LD between compact and expanded forms, try JSON-LD to Expanded or JSON-LD to Compacted.
Frequently Asked Questions
What is the N-Quads format?
N-Quads is a W3C standard serialization for RDF datasets. Each line contains four terms (subject, predicate, object, graph) separated by spaces and ending with a period.
Does processing happen in the browser?
Yes. This tool uses the jsonld.js processor locally. Your documents are not uploaded to a server.
What is the difference between N-Quads and N-Triples?
N-Triples serializes RDF triples with three terms per line. N-Quads adds a fourth graph term, supporting named graphs and datasets with multiple graph contexts.
Can I convert N-Quads back to JSON-LD?
This tool converts JSON-LD to N-Quads only. The reverse operation requires an N-Quads to JSON-LD parser, which is a separate transformation using the fromRDF algorithm.
Why do some lines use blank node identifiers?
When JSON-LD contains nodes without explicit @id values, the processor generates blank node identifiers (like _:b0) to represent them in the RDF output.