Author: ansell
Date: Mon Oct 29 23:58:14 2012
New Revision: 1403584
URL: http://svn.apache.org/viewvc?rev=1403584&view=rev
Log:
fix nquads specification URL and cleanup source code on
site/supported-formats.html
Modified:
any23/site/supported-formats.html
Modified: any23/site/supported-formats.html
URL:
http://svn.apache.org/viewvc/any23/site/supported-formats.html?rev=1403584&r1=1403583&r2=1403584&view=diff
==============================================================================
--- any23/site/supported-formats.html (original)
+++ any23/site/supported-formats.html Mon Oct 29 23:58:14 2012
@@ -214,7 +214,34 @@
<div id="bodyColumn" class="span9" >
- <!-- Licensed to the Apache Software Foundation (ASF) under one or
more --><!-- contributor license agreements. See the NOTICE file distributed
with --><!-- this work for additional information regarding copyright
ownership. --><!-- The ASF licenses this file to You under the Apache License,
Version 2.0 --><!-- (the "License"); you may not use this file except in
compliance with --><!-- the License. You may obtain a copy of the License at
--><!-- --><!-- http://www.apache.org/licenses/LICENSE-2.0 --><!-- --><!--
Unless required by applicable law or agreed to in writing, software --><!--
distributed under the License is distributed on an "AS IS" BASIS, --><!--
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
--><!-- See the License for the specific language governing permissions and
--><!-- limitations under the License. --><div class="section"><h2>Supported
Formats in Apache Any23<a name="Supported_Formats_in_Apache_Any23"></a></h2><p>
<b>Apache Any23</b> supports all the main standard formats introduced by the
<b>Semantic Web</b> community.</p><div class="section"><h3><b>Input
Formats</b><a name="Input_Formats"></a></h3><p>The following list shows the
accepted input formats and for each one the support
level.</p><ul><li><b>(X)HTML</b> with <b>RDFa 1.0</b>, <b>RDFa 1.1</b>,
<b>Microdata</b> and <b>Microformats</b>. <b>Apache Any23</b> fully supports
the <a class="externalLink" href="http://www.w3.org/TR/html5/">(X)HTML5</a>
input format and in particular provides a set of extractors for processing
embedded <a class="externalLink" href="http://www.w3.org/TR/rdfa-syntax/">RDFa
1.0</a>, <a class="externalLink" href="http://www.w3.org/TR/rdfa-core/">RDFa
1.1</a>, <a class="externalLink"
href="http://microformats.org/">Microformats</a> and <a class="externalLink"
href="http://www.w3.org/TR/microdata/">Microdata</a>.</li><li><b>Turtle</b>
<b>Apache Any23</b> fully supports the <a class="externalLink" href="http:
//www.w3.org/TeamSubmission/turtle/">Turtle</a>
specification.</li><li><b>N-Triples</b> <b>Apache Any23</b> fully supports the
<a class="externalLink"
href="http://www.w3.org/TR/rdf-testcases/#ntriples">N-Triples</a>
specification.</li><li><b>N-Quads</b> <b>Apache Any23</b> fully supports the <a
class="externalLink" href="http://sw.apache.org/2008/07/n-quads/">N-Quads</a>
specification.</li><li><b>RDF/XML</b> <b>Apache Any23</b> fully supports the <a
class="externalLink"
href="http://www.w3.org/TR/rdf-syntax-grammar/">RDF/XML</a>
specification.</li><li><b>CSV</b> <b>Apache Any23</b> allows you to represent
header-provided <a class="externalLink"
href="http://www.ietf.org/rfc/rfc4180.txt">CSV</a> files with RDF using a
specific <a href="./dev-csv-extractor.html">algorithm</a>.</li></ul></div><div
class="section"><h3><b>Output Formats</b><a
name="Output_Formats"></a></h3><p>The supported output formats are enlisted
below.</p><ul><li><b>Turtle</b> <b>Apache Any23</b> is able to
produce output in <a class="externalLink"
href="http://www.w3.org/TeamSubmission/turtle/">Turtle</a>.</li><li><b>N-Triples</b>
<b>Apache Any23</b> is able to produce output in <a class="externalLink"
href="http://www.w3.org/TR/rdf-testcases/#ntriples">N-Triples</a>.</li><li><b>N-Quads</b>
<b>Apache Any23</b> is able to produce output in <a class="externalLink"
href="http://sw.apache.org/2008/07/n-quads/">N-Quads</a>.</li><li><b>RDF/XML</b>
<b>Apache Any23</b> is able to produce output in <a class="externalLink"
href="http://www.w3.org/TR/rdf-syntax-grammar/">RDF/XML</a>.</li><li><b>JSON
Statements</b> <b>Apache Any23</b> is able to produce output in <a
class="externalLink" href="http://www.json.org/">JSON</a> . See the specific <a
href="#json-statements">format</a>.</li><li><b>XML Report</b> <b>Apache
Any23</b> is able to produce a detailed report of the latest document
extraction if required. See further details <a
href="./service.html#report-format">here</a>.</li></ul></d
iv><div class="section"><h3>JSON Statements Format<a
name="JSON_Statements_Format"></a></h3><p><a
name="json-statements">json-statements</a></p><p>Apache Any23 is able to
produce JSON output following the format described below.</p><p>Given the
following example statements (expressed in N-Quads format):</p><div
class="source"><pre class="prettyprint">_:bn1 <http://pred/1>
<http://value/1> <http://graph/1> .
+ <!-- Licensed to the Apache Software Foundation (ASF) under one or
more --><!-- contributor license agreements. See the NOTICE file distributed
with --><!-- this work for additional information regarding copyright
ownership. --><!-- The ASF licenses this file to You under the Apache License,
Version 2.0 --><!-- (the "License"); you may not use this file except in
compliance with --><!-- the License. You may obtain a copy of the License at
--><!-- --><!-- http://www.apache.org/licenses/LICENSE-2.0 --><!-- --><!--
Unless required by applicable law or agreed to in writing, software --><!--
distributed under the License is distributed on an "AS IS" BASIS, --><!--
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
--><!-- See the License for the specific language governing permissions and
--><!-- limitations under the License. -->
+<div class="section"><h2>Supported Formats in Apache Any23<a
name="Supported_Formats_in_Apache_Any23"></a></h2><p><b>Apache Any23</b>
supports all the main standard formats introduced by the <b>Semantic Web</b>
community.</p>
+<div class="section"><h3><b>Input Formats</b><a
name="Input_Formats"></a></h3><p>The following list shows the accepted input
formats and for each one the support level.</p>
+<ul>
+<li><b>(X)HTML</b> with <b>RDFa 1.0</b>, <b>RDFa 1.1</b>, <b>Microdata</b> and
<b>Microformats</b>. <b>Apache Any23</b> fully supports the <a
class="externalLink" href="http://www.w3.org/TR/html5/">(X)HTML5</a> input
format and in particular provides a set of extractors for processing embedded
<a class="externalLink" href="http://www.w3.org/TR/rdfa-syntax/">RDFa 1.0</a>,
<a class="externalLink" href="http://www.w3.org/TR/rdfa-core/">RDFa 1.1</a>, <a
class="externalLink" href="http://microformats.org/">Microformats</a> and <a
class="externalLink" href="http://www.w3.org/TR/microdata/">Microdata</a>.</li>
+<li><b>Turtle</b> <b>Apache Any23</b> fully supports the <a
class="externalLink" href="http://www.w3.org/TeamSubmission/turtle/">Turtle</a>
specification.</li>
+<li><b>N-Triples</b> <b>Apache Any23</b> fully supports the <a
class="externalLink"
href="http://www.w3.org/TR/rdf-testcases/#ntriples">N-Triples</a>
specification.</li>
+<li><b>N-Quads</b> <b>Apache Any23</b> fully supports the <a
class="externalLink" href="http://sw.deri.org/2008/07/n-quads/">N-Quads</a>
specification.</li>
+<li><b>RDF/XML</b> <b>Apache Any23</b> fully supports the <a
class="externalLink"
href="http://www.w3.org/TR/rdf-syntax-grammar/">RDF/XML</a> specification.</li>
+<li><b>CSV</b> <b>Apache Any23</b> allows you to represent header-provided <a
class="externalLink" href="http://www.ietf.org/rfc/rfc4180.txt">CSV</a> files
with RDF using a specific <a href="./dev-csv-extractor.html">algorithm</a>.</li>
+</ul>
+</div>
+
+<div class="section"><h3><b>Output Formats</b><a
name="Output_Formats"></a></h3><p>The supported output formats are enlisted
below.</p>
+<ul>
+<li><b>Turtle</b> <b>Apache Any23</b> is able to produce output in <a
class="externalLink"
href="http://www.w3.org/TeamSubmission/turtle/">Turtle</a>.</li>
+<li><b>N-Triples</b> <b>Apache Any23</b> is able to produce output in <a
class="externalLink"
href="http://www.w3.org/TR/rdf-testcases/#ntriples">N-Triples</a>.</li>
+<li><b>N-Quads</b> <b>Apache Any23</b> is able to produce output in <a
class="externalLink"
href="http://sw.deri.org/2008/07/n-quads/">N-Quads</a>.</li>
+<li><b>RDF/XML</b> <b>Apache Any23</b> is able to produce output in <a
class="externalLink"
href="http://www.w3.org/TR/rdf-syntax-grammar/">RDF/XML</a>.</li>
+<li><b>JSON Statements</b> <b>Apache Any23</b> is able to produce output in <a
class="externalLink" href="http://www.json.org/">JSON</a> . See the specific <a
href="#json-statements">format</a>.</li>
+<li><b>XML Report</b> <b>Apache Any23</b> is able to produce a detailed report
of the latest document extraction if required. See further details <a
href="./service.html#report-format">here</a>.</li>
+</ul>
+</div>
+
+<div class="section"><h3>JSON Statements Format<a
name="JSON_Statements_Format"></a></h3>
+<p><a name="json-statements">json-statements</a></p><p>Apache Any23 is able to
produce JSON output following the format described below.</p>
+<p>Given the following example statements (expressed in N-Quads format):</p>
+<div class="source"><pre class="prettyprint">_:bn1
<http://pred/1> <http://value/1> <http://graph/1> .
<http://sub/2> <http://pred/2> "language literal"@en
<http://graph/2> .
<http://sub/3> <http://pred/3>
"123"^^<http://datatype> <http://graph/3>
.</pre></div><p>these will be represented as:</p><div class="source"><pre
class="prettyprint">{
"quads" : [