Loading JSON to RDF Turtle Converter...
Please wait a moment

How to Convert JSON to RDF Turtle - Step by Step Guide

Step 1

Input Your JSON Data

Start by inputting your JSON data that you want to convert to RDF Turtle format. Whether you're building knowledge graphs, working with linked data, or preparing data for triple stores, you have multiple input options:

•
Paste directly: Copy your JSON data from APIs, databases, or files and paste it into the input editor
•
Upload a file: Click "Upload" to select a .json file from your computer
•
Try the sample: Click "Sample" to load example data and see how the converter works

Example: Sample JSON Input

Here's a sample JSON object representing a person:

{
  "@context": "http://schema.org/",
  "@id": "http://example.org/person/1",
  "@type": "Person",
  "name": "Dr. Yuki Tanaka",
  "email": "[email protected]",
  "affiliation": "MIT",
  "jobTitle": "Research Scientist"
}
Step 2

Automatic Conversion to RDF Turtle

The converter instantly transforms your JSON into RDF triples using Turtle syntax. Powered by N3.js library, the tool automatically:

•
Generates RDF triples: Creates subject-predicate-object statements from your JSON structure
•
Uses your prefixes: Prefixes declared in your @context become @prefix lines and shorten the IRIs
•
Checks its own output: The Turtle is parsed again with N3.js before it is shown, so what you copy reads back cleanly

Example: Converted RDF Turtle Output

The same data, now in RDF Turtle format:

@prefix schema: <http://schema.org/> .

<http://example.org/person/1>
  a schema:Person ;
  schema:name "Dr. Yuki Tanaka" ;
  schema:email "[email protected]" ;
  schema:affiliation "MIT" ;
  schema:jobTitle "Research Scientist" .
Step 3

Set the Base URI

Two things decide what the IRIs in your output look like:

•
Base URI (Settings): used for keys and resources that have no IRI of their own, e.g. http://example.org/name
•
Your @context: map keys to schema.org, Dublin Core, FOAF or your own ontology there, and declare prefixes to keep the Turtle short
•
Live output: the Turtle updates as soon as you change the JSON or the base URI
Step 4

Export Your RDF Turtle Data

Get your RDF Turtle data ready for knowledge graphs, triple stores, or semantic web applications:

•
Copy to clipboard: One-click copying for quick use in your applications
•
Download as .ttl file: Save as a Turtle file for import into RDF databases or semantic web tools
•
Use in triple stores: Compatible with Apache Jena, RDF4J, Virtuoso, and other RDF platforms

Frequently Asked Questions

What is RDF Turtle format?

RDF Turtle (Terse RDF Triple Language) is a human-readable format for representing RDF data. It's widely used in semantic web applications, knowledge graphs, and linked data projects. Turtle is more compact and readable than RDF/XML while maintaining full RDF expressiveness.

How does JSON-LD differ from regular JSON for RDF?

JSON-LD adds @context, @id and @type so each key points at a real vocabulary term. The converter reads the common parts of JSON-LD: a @context string or object (including @vocab and prefixes), @id, @type, @graph and value objects with @language or @type. It is not a full JSON-LD processor, so @list, @reverse and scoped contexts are not expanded. Plain JSON works too: each key becomes a property under the base URI you set in Settings.

Can I use this for building knowledge graphs?

Absolutely! This tool is perfect for knowledge graph construction. Convert your JSON data to RDF Turtle, then import it into triple stores like Apache Jena, Virtuoso, or GraphDB. The Turtle format is supported by all major semantic web platforms and knowledge graph databases.

What ontologies and vocabularies are supported?

The converter supports common vocabularies like Schema.org, Dublin Core, FOAF, SKOS, and custom ontologies. Any prefix you declare in your @context (for example "foaf": "http://xmlns.com/foaf/0.1/") is written as an @prefix line and used to shorten the IRIs in the output.

Is this compatible with Jelly-RDF and other streaming formats?

Yes! The Turtle output can be further converted to Jelly-RDF for high-performance streaming, or to other RDF formats like N-Triples, N-Quads, or RDF/XML. Turtle serves as an excellent intermediate format for RDF toolchains.

Is the JSON to RDF converter free to use?

Yes, it is free for academic, research and commercial use, with no sign-up. The conversion runs in your browser, so your JSON is not uploaded anywhere; very large files are limited only by your browser's memory.

How are numbers, nested objects and arrays written?

Numbers keep the exact digits you typed: whole numbers become xsd:integer (even long IDs like 8901240544102066246), decimals such as 14.50 become xsd:decimal, and exponents like 1e3 become xsd:double. true and false are xsd:boolean, while quoted values such as "00501" stay strings. A nested object becomes its own node (a blank node, or a named one if it has an @id), each array item becomes a separate triple with the same property, and null values are left out.