TriG (syntax)

In the modern world, TriG (syntax) is a topic that has become relevant in today's society. Since its inception, TriG (syntax) has been the subject of debate, research and conflicting opinions. Over time, the importance of TriG (syntax) has increased, generating a significant impact on various aspects of daily life. In this article, we will explore in depth the different approaches and perspectives that exist around TriG (syntax), as well as its influence today. From its origins to contemporary implications, TriG (syntax) continues to be a topic of interest and reflection for a wide range of people and professionals. Through a detailed analysis, we aim to shed light on the most relevant aspects related to TriG (syntax), with the aim of enriching knowledge and encouraging informed debate about this phenomenon.

TriG
Filename extension
.trig
Internet media type
application/trig
Developed byFreie Universität Berlin
Type of formatsemantic web
Container forRDF data
Extended fromTurtle
StandardW3C Recommendation

TriG is a serialization format for RDF (Resource Description Framework) graphs. It is a plain text format for serializing named graphs and RDF Datasets which offers a compact and readable alternative to the XML-based TriX syntax.

Example

This example encodes three interlinked named graphs:

  • http://www.example.org/exampleDocument#G1
  • http://www.example.org/exampleDocument#G2
  • http://www.example.org/exampleDocument#G3
 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
 @prefix swp: <http://www.w3.org/2004/03/trix/swp-1/> .
 @prefix dc: <http://purl.org/dc/elements/1.1/> .
 @prefix ex: <http://www.example.org/vocabulary#> .
 @prefix : <http://www.example.org/exampleDocument#> .
 
 :G1 { :Monica ex:name "Monica Murphy" .      
       :Monica ex:homepage <http://www.monicamurphy.org> .
       :Monica ex:email <mailto:[email protected]> .
       :Monica ex:hasSkill ex:Management }
 
 :G2 { :Monica rdf:type ex:Person .
       :Monica ex:hasSkill ex:Programming }
 
 :G3 { :G1 swp:assertedBy _:w1 .
       _:w1 swp:authority :Chris .
       _:w1 dc:date "2003-10-02"^^xsd:date .   
       :G2 swp:quotedBy _:w2 .
       :G3 swp:assertedBy _:w2 .
       _:w2 dc:date "2003-09-03"^^xsd:date .
       _:w2 swp:authority :Chris .
       :Chris rdf:type ex:Person .
       :Chris ex:email <mailto:[email protected]> }

External links