This is an automated email from the ASF dual-hosted git repository.

git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/jena-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 80491ae  Updated site from main 
(92ad4bbef253292f45270737628cf82284f4af65)
80491ae is described below

commit 80491aefc679a1dc1cbb94ec7d92ce3df6150f11
Author: jenkins <[email protected]>
AuthorDate: Sat May 8 09:11:01 2021 +0000

    Updated site from main (92ad4bbef253292f45270737628cf82284f4af65)
---
 content/documentation/index.xml                    |  13 ++
 content/documentation/io/index.html                |   1 +
 content/documentation/io/{index.html => trix.html} | 203 ++++++++-------------
 content/index.xml                                  |  13 ++
 content/sitemap.xml                                |   9 +-
 5 files changed, 107 insertions(+), 132 deletions(-)

diff --git a/content/documentation/index.xml b/content/documentation/index.xml
index 8217a5e..5981882 100644
--- a/content/documentation/index.xml
+++ b/content/documentation/index.xml
@@ -1841,6 +1841,19 @@ TOC test The title above will generate an h1 element 
from the CMS scripts
     </item>
     
     <item>
+      <title>TriX support in Apache Jena</title>
+      <link>https://jena.apache.org/documentation/io/trix.html</link>
+      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
+      
+      <guid>https://jena.apache.org/documentation/io/trix.html</guid>
+      <description>Jena supports TriX, a simple XML format for RDF, for both 
reading and writing RDF data.
+The support is of the TriX core, without processing instructions.
+Both the original HPlabs and W3C DTDs are supported for reading. Writing is 
according to the W3C DTD, that is using root element &amp;lt;trix&amp;gt;, 
rather than &amp;lt;TriX&amp;gt;.
+Note: This format should not be confused with RDF/XML, the W3C standardised 
XML format for RDF.
+TriX History TriX originated from work by Jeremy Carroll (then at HP Labs, 
Bristol) and Patrick Stickler (then at Nokia) and published as a tech report 
HPL-2004-56 There is also earlier work published in HPL-2003-268.</description>
+    </item>
+    
+    <item>
       <title>Tutorial - Manipulando SPARQL usando ARQ</title>
       
<link>https://jena.apache.org/documentation/query/manipulating_sparql_using_arq_pt.html</link>
       <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
diff --git a/content/documentation/io/index.html 
b/content/documentation/io/index.html
index 84e3ff2..8aaf3ea 100644
--- a/content/documentation/io/index.html
+++ b/content/documentation/io/index.html
@@ -261,6 +261,7 @@ Assumes N-Quads/N-Triples from stdin.</li>
 </tbody>
 </table>
 <p><code>.n3</code> is supported but only as a synonym for Turtle.</p>
+<p>The <a href="trix.html">TriX</a> support is for the core TriX format.</p>
 <p>In addition, if the extension is <code>.gz</code> the file is assumed to be 
gzip
 compressed. The file name is examined for an inner extension. For
 example, <code>.nt.gz</code> is gzip compressed N-Triples.</p>
diff --git a/content/documentation/io/index.html 
b/content/documentation/io/trix.html
similarity index 66%
copy from content/documentation/io/index.html
copy to content/documentation/io/trix.html
index 84e3ff2..218a151 100644
--- a/content/documentation/io/index.html
+++ b/content/documentation/io/trix.html
@@ -3,7 +3,7 @@
 <head>
     
 
-    <title>Apache Jena - Reading and Writing RDF in Apache Jena</title>
+    <title>Apache Jena - TriX support in Apache Jena</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
 
@@ -118,7 +118,7 @@
                     </ul>
                 </li>
 
-                <li id="edit"><a 
href="https://github.com/apache/jena-site/edit/main/source/documentation/io/__index.md";
 title="Edit this page on GitHub"><span class="glyphicon 
glyphicon-pencil"></span> Edit this page</a></li>
+                <li id="edit"><a 
href="https://github.com/apache/jena-site/edit/main/source/documentation/io/trix.md";
 title="Edit this page on GitHub"><span class="glyphicon 
glyphicon-pencil"></span> Edit this page</a></li>
             </ul>
         </div>
     </div>
@@ -135,9 +135,6 @@
 
 
 
-    
-    
-
 
 <ol class="breadcrumb">
     
@@ -156,7 +153,15 @@
         
         
             
-                <li class="active">IO</li>
+                <li><a href='/documentation/io'>IO</a></li>
+            
+            
+        
+    
+        
+        
+            
+                <li class="active">TRIX</li>
             
             
         
@@ -168,132 +173,70 @@
 
                 
             </div>
-            <h1 class="title">Reading and Writing RDF in Apache Jena</h1>
+            <h1 class="title">TriX support in Apache Jena</h1>
             
-       <p>This page details the setup of RDF I/O technology (RIOT).</p>
-<ul>
-<li><a href="#formats">Formats</a></li>
-<li><a href="#command-line-tools">Commands</a></li>
-<li><a href="rdf-input.html">Reading RDF in Jena</a></li>
-<li><a href="rdf-output.html">Writing RDF in Jena</a></li>
-<li><a href="streaming-io.html">Working with RDF Streams</a></li>
-<li><a href="rdfxml_howto.html">Additional details on working with 
RDF/XML</a></li>
-</ul>
-<h2 id="formats">Formats</h2>
-<p>The following RDF formats are supported by Jena. In addition, other syntaxes
-can be integrated into both the parser and writer registries.</p>
-<ul>
-<li>Turtle</li>
-<li>RDF/XML</li>
-<li>N-Triples</li>
-<li>JSON-LD</li>
-<li>RDF/JSON</li>
-<li>TriG</li>
-<li>N-Quads</li>
-<li>TriX</li>
-<li>RDF Binary</li>
-</ul>
-<p>RDF/JSON is different from JSON-LD - it is a direct encoding of RDF triples 
in JSON.
-See the <a href="rdf-json.html">description of RDF/JSON</a>.</p>
-<p>RDF Binary is a binary encoding of RDF (graphs and datasets) that can be 
useful
-for fast parsing.  See <a href="rdf-binary.html">RDF Binary using Apache 
Thrift</a>.</p>
-<h2 id="command-line-tools">Command line tools</h2>
-<p>There are scripts in Jena download to run these commands.</p>
-<ul>
-<li><code>riot</code> - parse, guessing the syntax from the file extension.
-Assumes N-Quads/N-Triples from stdin.</li>
-<li><code>turtle</code>, <code>ntriples</code>, <code>nquads</code>, 
<code>trig</code>, <code>rdfxml</code> - parse a particular language</li>
-</ul>
-<p>These can be called directly as Java programs:</p>
-<p>The file extensions understood are:</p>
-<table>
-<thead>
-<tr>
-<th> Extension </th>
-<th>  Language </th>
-</tr>
-</thead>
-<tbody>
-<tr>
-<td><code>.ttl</code></td>
-<td>Turtle</td>
-</tr>
-<tr>
-<td><code>.nt</code></td>
-<td>N-Triples</td>
-</tr>
-<tr>
-<td><code>.nq</code></td>
-<td>N-Quads</td>
-</tr>
-<tr>
-<td><code>.trig</code></td>
-<td>TriG</td>
-</tr>
-<tr>
-<td><code>.rdf</code></td>
-<td>RDF/XML</td>
-</tr>
-<tr>
-<td><code>.owl</code></td>
-<td>RDF/XML</td>
-</tr>
-<tr>
-<td><code>.jsonld</code></td>
-<td>JSON-LD</td>
-</tr>
-<tr>
-<td><code>.trdf</code></td>
-<td>RDF Thrift</td>
-</tr>
-<tr>
-<td><code>.rt</code></td>
-<td>RDF Thrift</td>
-</tr>
-<tr>
-<td><code>.rj</code></td>
-<td>RDF/JSON</td>
-</tr>
-<tr>
-<td><code>.trix</code></td>
-<td>TriX</td>
-</tr>
-</tbody>
-</table>
-<p><code>.n3</code> is supported but only as a synonym for Turtle.</p>
-<p>In addition, if the extension is <code>.gz</code> the file is assumed to be 
gzip
-compressed. The file name is examined for an inner extension. For
-example, <code>.nt.gz</code> is gzip compressed N-Triples.</p>
-<p>These scripts call java programs in the <code>riotcmd</code> package. For 
example:</p>
-<pre><code>java -cp ... riotcmd.riot file.ttl
-</code></pre>
-<p>This can be a mixture of files in different syntaxes when file extensions
-are used to determine the file syntax type.</p>
-<p>The scripts all accept the same arguments (type <code>&quot;riot 
--help&quot;</code> to
-get command line reminders):</p>
-<ul>
-<li><code>--syntax=NAME</code>; Explicitly set the input syntax for all 
files.</li>
-<li><code>--validate</code>: Checking mode: same as <code>--strict --sink 
--check=true</code>.</li>
-<li><code>--check=true/false</code>: Run with checking of literals and IRIs 
either on or off.</li>
-<li><code>--time</code>: Output timing information.</li>
-<li><code>--sink</code>: No output.</li>
-<li><code>--output=FORMAT</code>: Output in a given syntax (streaming if 
possible).</li>
-<li><code>--formatted=FORMAT</code>: Output in a given syntax, using pretty 
printing.</li>
-<li><code>--stream=FORMAT</code>: Output in a given syntax, streaming (not all 
syntaxes can be streamed).</li>
-</ul>
-<p>To aid in checking for errors in UTF8-encoded files, there is a
-utility which reads a file of bytes as UTF8 and checks the encoding.</p>
-<ul>
-<li><code>utf8</code> &ndash; read bytes as UTF8</li>
-</ul>
-<h2 id="inference">Inference</h2>
-<p>RIOT support creation of inferred triples during the parsing
-process:</p>
-<pre><code>riotcmd.infer --rdfs VOCAB FILE FILE ...
-</code></pre>
-<p>Output will contain the base data and triples inferred based on
-RDF subclass, subproperty, domain and range declarations.</p>
+       <p>Jena supports <a 
href="http://www.hpl.hp.com/techreports/2004/HPL-2004-56.html";>TriX</a>, a
+simple XML format for RDF, for both reading and writing RDF data.</p>
+<p>The support is of the TriX core, without processing instructions.</p>
+<p>Both the original HPlabs and W3C DTDs are supported for reading. Writing is
+according to the W3C DTD, that is using root element <code>&lt;trix&gt;</code>,
+rather than <code>&lt;TriX&gt;</code>.</p>
+<p>Note: This format should not be confused with RDF/XML, the W3C standardised 
XML
+format for RDF.</p>
+<h3 id="trix-history">TriX History</h3>
+<p>TriX originated from work by Jeremy Carroll (then at HP Labs, Bristol) and 
Patrick
+Stickler (then at Nokia) and published as a tech report
+<a 
href="https://www.hpl.hp.com/techreports/2004/HPL-2004-56.html";>HPL-2004-56</a>
+There is also  earlier work published in <a 
href="https://www.hpl.hp.com/techreports/2003/HPL-2003-268.html";>HPL-2003-268</a>.</p>
+<p>The work within the Semantic Web Interest Group on Named Graphs, including 
TriX,
+is documented at <a 
href="https://www.w3.org/2004/03/trix/";>https://www.w3.org/2004/03/trix/</a>.</p>
+<p>TriX DTD: <a 
href="http://www.w3.org/2004/03/trix/trix-1/trix-1.0.dtd";>http://www.w3.org/2004/03/trix/trix-1/trix-1.0.dtd</a><br/>
+Trix XML Schema: <a 
href="http://www.w3.org/2004/03/trix/trix-1/trix-1.0.xsd";>http://www.w3.org/2004/03/trix/trix-1/trix-1.0.xsd</a></p>
+<p>The <a href="https://www.w3.org/2004/03/trix/trix-1/trix-1.0.dtd";>W3C 
DTD</a> differs from
+HPL-2004-56 by having root element <code>&lt;trix&gt;</code> not 
<code>&lt;TriX&gt;</code>.</p>
+<pre><code>&lt;!-- TriX: RDF Triples in XML --&gt;
+&lt;!ELEMENT trix         (graph*)&gt;
+&lt;!ATTLIST trix         xmlns CDATA #FIXED 
&quot;http://www.w3.org/2004/03/trix/trix-1/&quot;&gt;
+&lt;!ELEMENT graph        (uri, triple*)&gt;
+&lt;!ELEMENT triple       ((id|uri|plainLiteral|typedLiteral), uri, 
(id|uri|plainLiteral|typedLiteral))&gt;
+&lt;!ELEMENT id           (#PCDATA)&gt;
+&lt;!ELEMENT uri          (#PCDATA)&gt;
+&lt;!ELEMENT plainLiteral (#PCDATA)&gt;
+&lt;!ATTLIST plainLiteral xml:lang CDATA #IMPLIED&gt;
+&lt;!ELEMENT typedLiteral (#PCDATA)&gt;
+&lt;!ATTLIST typedLiteral datatype CDATA #REQUIRED&gt;
+</code></pre><h3 id="trix-star">TriX-star</h3>
+<p>The format is extended for <a 
href="https://w3c.github.io/rdf-star/";>RDF-star</a> with
+embedded triples by allowing nested <code>&lt;triple&gt;</code>.</p>
+<p>Trix-star (2021) adds &lsquo;triple&rsquo; to subject and object positions
+of <code>ELEMENT triple</code>.</p>
+<pre><code>&lt;!ELEMENT triple       
((id|uri|plainLiteral|typedLiteral|triple), uri, 
(id|uri|plainLiteral|typedLiteral|triple))&gt;
+</code></pre><h4 id="example">Example</h4>
+<p>The Turtle:</p>
+<pre><code>PREFIX :      &lt;http://example/&gt;
 
+:s      :p      &quot;ABC&quot; .
+&lt;&lt; :s :p :o &gt;&gt;  :q  :r .
+</code></pre><p>is written in Trix as:</p>
+<pre><code>&lt;trix 
xmlns=&quot;http://www.w3.org/2004/03/trix/trix-1/&quot;&gt;
+  &lt;graph&gt;
+    &lt;triple&gt;
+      &lt;uri&gt;http://example/s&lt;/uri&gt;
+      &lt;uri&gt;http://example/p&lt;/uri&gt;
+      &lt;plainLiteral&gt;ABC&lt;/plainLiteral&gt;
+    &lt;/triple&gt;
+    &lt;triple&gt;
+      &lt;triple&gt;
+        &lt;uri&gt;http://example/s&lt;/uri&gt;
+        &lt;uri&gt;http://example/p&lt;/uri&gt;
+        &lt;uri&gt;http://example/o&lt;/uri&gt;
+      &lt;/triple&gt;
+      &lt;uri&gt;http://example/q&lt;/uri&gt;
+      &lt;uri&gt;http://example/r&lt;/uri&gt;
+    &lt;/triple&gt;
+  &lt;/graph&gt;
+&lt;/trix&gt;
+</code></pre>
 
         </div>
     </div>
diff --git a/content/index.xml b/content/index.xml
index 725192e..fa391c5 100644
--- a/content/index.xml
+++ b/content/index.xml
@@ -2151,6 +2151,19 @@ TOC test The title above will generate an h1 element 
from the CMS scripts
     </item>
     
     <item>
+      <title>TriX support in Apache Jena</title>
+      <link>https://jena.apache.org/documentation/io/trix.html</link>
+      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
+      
+      <guid>https://jena.apache.org/documentation/io/trix.html</guid>
+      <description>Jena supports TriX, a simple XML format for RDF, for both 
reading and writing RDF data.
+The support is of the TriX core, without processing instructions.
+Both the original HPlabs and W3C DTDs are supported for reading. Writing is 
according to the W3C DTD, that is using root element &amp;lt;trix&amp;gt;, 
rather than &amp;lt;TriX&amp;gt;.
+Note: This format should not be confused with RDF/XML, the W3C standardised 
XML format for RDF.
+TriX History TriX originated from work by Jeremy Carroll (then at HP Labs, 
Bristol) and Patrick Stickler (then at Nokia) and published as a tech report 
HPL-2004-56 There is also earlier work published in HPL-2003-268.</description>
+    </item>
+    
+    <item>
       <title>Tutorial - Manipulando SPARQL usando ARQ</title>
       
<link>https://jena.apache.org/documentation/query/manipulating_sparql_using_arq_pt.html</link>
       <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
diff --git a/content/sitemap.xml b/content/sitemap.xml
index 831c9c3..2cd2b53 100644
--- a/content/sitemap.xml
+++ b/content/sitemap.xml
@@ -309,7 +309,7 @@
   
   <url>
     <loc>https://jena.apache.org/documentation.html</loc>
-    <lastmod>2021-05-03T21:48:03+08:00</lastmod>
+    <lastmod>2021-05-08T10:08:50+01:00</lastmod>
   </url>
   
   <url>
@@ -664,7 +664,7 @@
   
   <url>
     <loc>https://jena.apache.org/documentation/io/</loc>
-    <lastmod>2020-02-28T13:09:12+01:00</lastmod>
+    <lastmod>2021-05-08T10:08:50+01:00</lastmod>
   </url>
   
   <url>
@@ -1023,6 +1023,11 @@
   </url>
   
   <url>
+    <loc>https://jena.apache.org/documentation/io/trix.html</loc>
+    <lastmod>2021-05-08T10:08:50+01:00</lastmod>
+  </url>
+  
+  <url>
     
<loc>https://jena.apache.org/documentation/query/manipulating_sparql_using_arq_pt.html</loc>
     <lastmod>2020-05-01T11:11:56+12:00</lastmod>
   </url>

Reply via email to