Graph
Turtle

🐢Turtle

NEW

Also known as: Terse RDF Triple Language

Compact textual syntax for writing RDF graphs using prefixes and subject–predicate–object triples.

DESCRIPTION

Turtle is a human-readable RDF serialization that uses prefixes to shorten IRIs and a concise notation for triples. It supports collections, blank nodes, and datatype/language tags. As part of the RDF 1.1 standard, Turtle simplifies authoring and reading semantic data compared to RDF/XML. It is widely used in linked data and knowledge graph projects. SPARQL works over RDF data regardless of serialization.

ALTERNATIVE DEFINITIONS

W3C

Turtle is a textual syntax for RDF graphs.

Authoritative, succinct definition within the RDF specification family.

Source

Wikipedia

Terse RDF Triple Language (Turtle) is a syntax for expressing RDF data.

Defines Turtle and situates it among RDF syntaxes.

Source

W3C RDF 1.1 Primer

Turtle, a compact, human-readable syntax for RDF, is often used to write small graphs.

Emphasizes readability and common usage for small RDF graphs.

Source

RDF RDF Schema OWL SPARQL Namespace IRI Triple Namespace Prefix

COMPETING TERMS

RDF-XML JSON-LD N-Triples

KNOWLEDGE AREAS

Semantic & Knowledge Modeling Data Integration & Interoperability Data Modeling

TARGET AUDIENCE

Data Architect Data Modeler Data Engineer Information Analyst

EXTERNAL SOURCES

  • Wikipedia - Turtle (syntax)
  • W3C - Official Turtle specification
  • W3C - Primer explaining RDF with Turtle
  • Apache Jena - RDF I/O including Turtle support

TOP QUESTIONS

What is Turtle in RDF?

It’s a compact, human-readable syntax to serialize RDF graphs via triples and prefixes.

Category: Definition

Why use Turtle over RDF/XML?

Turtle is more readable and concise, easing authoring and debugging of RDF data.

Category: Comparison

How do prefixes work in Turtle?

Prefixes define shorthand for IRIs, reducing verbosity and improving clarity.

Category: Mechanism

Can Turtle represent all RDF constructs?

Yes, it supports blank nodes, collections, datatypes, and language tags within RDF 1.1.

Category: Capabilities

How does SPARQL relate to Turtle?

SPARQL queries RDF graphs regardless of serialization; Turtle is one way to store/query RDF.

Category: Relation

What are common mistakes with Turtle?

Incorrect prefixes, missing periods, and malformed IRIs frequently cause parsing errors.

Category: Mistakes

Where is Turtle used?

Linked data publishing, ontologies, and knowledge graphs frequently use Turtle.

Category: UseCase

How do I validate Turtle files?

Use RDF parsers and validators (e.g., Jena, RDF4J, W3C tools) to check syntax and semantics.

Category: Testing

What is a hot topic around Turtle?

Combining Turtle with SHACL for validation and JSON-LD for web interoperability is trending.

Category: Topic