Generated by DeepSeek V3.2| Turtle (syntax) | |
|---|---|
![]() | |
| Name | Turtle |
| Paradigm | Declarative, Logic |
| Designer | Tim Berners-Lee, Melvin Conway, Dan Connolly |
| Developer | W3C |
| First release | 2008 |
| Latest release | 2014 |
| Influenced by | RDF, SPARQL |
| Influenced | RDFa, JSON-LD |
Turtle (syntax). Turtle is a syntax for expressing RDF data in a more human-readable format. It is a terse and JSON-like syntax that allows for the expression of RDF triples. Turtle is often used for exchanging and integrating data on the Semantic Web. The syntax is designed to be easy to read and write, making it a popular choice for knowledge graph construction.
Turtle is a W3C-recommended syntax for expressing RDF data. It was designed to be a more readable and writable alternative to other RDF syntaxes, such as RDF/XML. Turtle is based on the RDF data model, which represents data as a set of triples, each consisting of a subject, predicate, and object. Turtle allows for the expression of these triples in a concise and readable format.
Turtle syntax consists of a series of triples, each expressed in the format `subject predicate object`. Subjects, predicates, and objects can be expressed using IRIs, literals, or blank nodes. Turtle also supports prefixes, which allow for the abbreviation of IRIs. The syntax is designed to be easy to read and write, with a focus on simplicity and concision.
The following is an example of Turtle syntax: ```turtle @prefix foaf: <http://xmlns.com/foaf/0.1/> .
<http://example.org/people/Alice> foaf:name "Alice" ; foaf:age 30 . ``` This example expresses two triples: one stating that Alice's name is "Alice", and another stating that her age is 30.
Turtle is closely related to RDF, as it is a syntax for expressing RDF data. RDF is a W3C-recommended standard for representing data on the Semantic Web. SPARQL, another W3C-recommended standard, is a query language for RDF data. Turtle is often used in conjunction with SPARQL, as it provides a human-readable format for expressing RDF data that can be queried using SPARQL.
There are several tools and implementations of Turtle, including Apache Jena, Sesame, and rdflib. These tools provide support for parsing, generating, and manipulating Turtle data. Additionally, many triple stores and graph databases support Turtle as a data import and export format.
Turtle was first proposed in 2008 by Tim Berners-Lee, Melvin Conway, and Dan Connolly. The syntax was later standardized by the W3C in 2014, as part of the RDF 1.1 specification. The standardization of Turtle has helped to increase its adoption and use in a wide range of applications, from data exchange to knowledge graph construction.