Turtle (syntax)

from Wikipedia, the free encyclopedia
Terse RDF Triple Language
File extension : .ttl
MIME type : text / turtle
Developed by: Dave Beckett
Type: Semantic Web
Container for: RDF data
Extended by: N triples
Standard (s) : Specification


Turtle ( Terse RDF Triple Language ) is a serialization for graphs in the Resource Description Framework (RDF) in computer science . It was developed by Dave Beckett. It is a subset of the notation 3 (N3) designed by Tim Berners-Lee and Dan Connollys and includes the minimal N-Triples format. Unlike N3, Turtle does not exceed RDF's graph model.

SPARQL uses a subset of N3 that is similar to Turtle in terms of the graph patterns, but also uses the brackets syntax of N3 to delimit subgraphs.

The RDF Working Group of the World Wide Web Consortium (W3C) accepted Turtle on August 9, 2011 as the first "Working draft", followed by a second "Working draft" on July 10, 2012. On February 25, 2014, Turtle and RDF 1.1 were approved as "RDF 1.1 Turtle" as a recommendation.

Turtle is popular among Semantic Web developers because it is considered a user-friendly alternative to RDF / XML . Turtle uses a significant number of tools for RDF for parsing and serialization (e.g. Redland , Sesame , Jena and RDFLib ).

example

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix ex: <http://example.org/stuff/1.0/> .

<http://www.w3.org/TR/rdf-syntax-grammar>
  dc:title "RDF/XML Syntax Specification (Revised)" ;
   ex:editor [
     ex:fullname "Dave Beckett";
     ex:homePage <http://purl.org/net/dajobe/>
   ] .

The example describes an RDF graph that consists of four triples with the following statements:

  • The W3C Technical Report on RDF Syntax is entitled RDF / XML Syntax Specification (Revised) .
  • The author of this report is someone
    • by the name of Dave Beckett and
    • with a homepage at the address http://purl.org/net/dajobe/ .

The Turtle example is also valid notation3.

The MIME type of turtle is text/turtle. The character encoding of a Turtle document is UTF-8 .

Web links

Individual evidence

  1. Turtle - Terse RDF Triple Language . World Wide Web Consortium (W3C). August 9, 2011. Retrieved March 6, 2014.
  2. Turtle - Terse RDF Triple Language . World Wide Web Consortium (W3C). July 10, 2012. Retrieved March 6, 2014.
  3. RDF 1.1 Turtle - Terse RDF Triple Language . World Wide Web Consortium (W3C). February 25, 2014. Retrieved March 6, 2014.
  4. MIME media types: text / turtle . Internet Assigned Numbers Authority (IANA). March 28, 2011. Retrieved November 27, 2011.