---
title: "Turtle (page.ttl)"
description: "Compact RDF triples."
canonical: "https://geordy.ai/formats/turtle"
---
# Turtle

**Compact RDF triples.**

A concise serialization of semantic relationships. The lingua franca of knowledge graphs.

Turtle (Terse RDF Triple Language) serves as the primary syntax for representing RDF datasets. Introduced by the W3C Semantic Web Deployment Working Group in 2008, it offers a more accessible and compact alternative to RDF/XML. Prioritizes human readability while maintaining conciseness for semantic data representation.

## At a glance

- File: `page.ttl`
- First released: 2008
- Created by: W3C Semantic Web Deployment Working Group
- Specification: https://www.w3.org/TR/turtle/
- Read by: Knowledge graph systems, Semantic search engines, ChatGPT, Claude

## Why it matters for AI

Turtle is the most human-readable serialization of RDF, the W3C standard graph data model that LLMs and search engines parse to extract entity relationships. Publishing knowledge as Turtle makes facts explicit, typed, and link-resolvable, which improves accuracy and grounding for AI consumers compared with prose.

## Example

```
@prefix geordy: <http://geordy.ai/ns#> .
@prefix schema: <http://schema.org/> .

ex:GeordyAI
  a geordy:AIPlatform ;
  schema:name "Geordy AI Platform" ;
  schema:url "https://geordy.ai" ;
  geordy:optimizesFor ex:GenerativeSearch .
```

## Benefits

- Human-readable RDF
- Compact compared to RDF/XML
- W3C-maintained spec

## Limitations

- Verbose for very large datasets

## Best practices

- Declare @prefix shortcuts at the top so URIs stay short and readable; reuse standard vocabularies (FOAF, Schema.org, Dublin Core, SKOS) instead of inventing new IRIs.
- Use language tags (@en) on human-language string literals and explicit XSD datatypes (^^xsd:date, ^^xsd:integer) on every literal where type matters.
- Group triples about one subject with the `;` predicate-list separator and use `,` for multiple objects to keep files compact and diff-friendly.
- Always end statements with a period; serve Turtle with the official MIME type `text/turtle` and UTF-8 encoding.

## Pitfalls

- Forgetting the trailing period at the end of a statement - one of the most common parser errors.
- Confusing the special token `a` (which means rdf:type) with a regular property, or omitting prefixes that are referenced.
- Mixing up bare strings (`"2024-01-01"`) with typed literals (`"2024-01-01"^^xsd:date`) - downstream tools treat them as plain text and lose the date semantics.

## Use cases

- **Knowledge graphs**
- **Linked data**
- **Semantic annotation**

## Adopters

- DBpedia (https://www.dbpedia.org/resources/ontology/)
- Wikidata (https://www.wikidata.org/wiki/Wikidata:Database_download)
- schema.org (https://schema.org/version/latest/schemaorg-current-https.ttl)
- EU Vocabularies (https://op.europa.eu/en/web/eu-vocabularies)
- Library of Congress (https://id.loc.gov/)
---

Source: https://geordy.ai/formats/turtle
This is a machine-readable markdown version of that page, generated by Geordy.