Author: buildbot
Date: Thu Sep 25 21:46:52 2014
New Revision: 923605
Log:
Staging update by buildbot for jena
Modified:
websites/staging/jena/trunk/content/ (props changed)
websites/staging/jena/trunk/content/documentation/io/rdf-input.html
websites/staging/jena/trunk/content/documentation/io/rdf-output.html
websites/staging/jena/trunk/content/documentation/query/spatial-query.html
websites/staging/jena/trunk/content/documentation/query/text-query.html
websites/staging/jena/trunk/content/documentation/tools/index.html
websites/staging/jena/trunk/content/download/index.html
websites/staging/jena/trunk/content/tutorials/rdf_api.html
websites/staging/jena/trunk/content/tutorials/rdf_api_pt.html
Propchange: websites/staging/jena/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Thu Sep 25 21:46:52 2014
@@ -1 +1 @@
-1627032
+1627674
Modified: websites/staging/jena/trunk/content/documentation/io/rdf-input.html
==============================================================================
--- websites/staging/jena/trunk/content/documentation/io/rdf-input.html
(original)
+++ websites/staging/jena/trunk/content/documentation/io/rdf-input.html Thu Sep
25 21:46:52 2014
@@ -393,30 +393,30 @@ configuration file is necessary.</p>
<li>org.apache.jena.riot.stream.LocationMapper</li>
</ul>
<h2 id="advanced-examples">Advanced examples</h2>
-<p>Example code may be found in <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-arq/src-examples/arq/examples/riot/">jena-arq/src-examples</a>.</p>
+<p>Example code may be found in <a
href="https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/">jena-arq/src-examples</a>.</p>
<h3 id="iterating-over-parser-output">Iterating over parser output</h3>
<p>One of the capabilities of the RIOT API is the ability to treat parser
output as an iterator,
this is useful when you don't want to go to the trouble of writing a full sink
implementation and can easily express your
logic in normal iterator style.</p>
<p>To do this you use one of the subclasses of
-<a
href="http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/lang/PipedRDFIterator.java?view=markup">PipedRDFIterator</a>
-in conjunction with a <a
href="http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/lang/PipedRDFStream.java?view=markup">PipedRDFStream</a>.</p>
+<a
href="https://github.com/apache/jena/tree/master/jena-arq/src/main/java/org/apache/jena/riot/lang/PipedRDFIterator.java?view=markup">PipedRDFIterator</a>
+in conjunction with a <a
href="https://github.com/apache/jena/tree/master/jena-arq/src/main/java/org/apache/jena/riot/lang/PipedRDFStream.java?view=markup">PipedRDFStream</a>.</p>
<p>This <code>PipedRDFStream</code> provides an implementation of
<code>StreamRDF</code> which allows it to consume parser output and this is
consumed by
the <code>PipedRDFIterator</code> implementation. This has some advantages
over a direct <code>StreamRDF</code> implementation since it allows the parser
production of data to run ahead of your consumption of data which may result
in better overall throughput.</p>
<p>The only complication is that you need to ensure that the thread feeding
the <code>PipedRDFStream</code> and the consumer of the iterator are on
different threads
as otherwise you can run into a deadlock situation where one is waiting on
data from the other which is never started.</p>
-<p>See <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-arq/src-examples/arq/examples/riot/ExRIOT_6.java">RIOT
example 6</a>
+<p>See <a
href="https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/ExRIOT_6.java">RIOT
example 6</a>
which shows an example usage including a simple way to push the parser onto a
different thread to avoid the possible deadlock.</p>
<h3 id="filter-the-output-of-parsing">Filter the output of parsing</h3>
<p>When working with very large files, it can be useful to
process the stream of triples or quads produced
by the parser so as to work in a streaming fashion.</p>
-<p>See <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-arq/src-examples/arq/examples/riot/ExRIOT_4.java">RIOT
example 4</a></p>
+<p>See <a
href="https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/ExRIOT_4.java">RIOT
example 4</a></p>
<h3 id="add-a-new-language">Add a new language</h3>
<p>The set of languages is not fixed. A new languages,
together with a parser, can be added to RIOT as shown in
-<a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-arq/src-examples/arq/examples/riot/ExRIOT_5.java">RIOT
example 5</a></p>
+<a
href="https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/ExRIOT_5.java">RIOT
example 5</a></p>
</div>
</div>
Modified: websites/staging/jena/trunk/content/documentation/io/rdf-output.html
==============================================================================
--- websites/staging/jena/trunk/content/documentation/io/rdf-output.html
(original)
+++ websites/staging/jena/trunk/content/documentation/io/rdf-output.html Thu
Sep 25 21:46:52 2014
@@ -587,7 +587,7 @@ while the jena writer writer name defaul
</tbody>
</table>
<h2 id="examples">Examples</h2>
-<p>Example code may be found in <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-arq/src-examples/arq/examples/riot/">jena-arq/src-examples</a>.</p>
+<p>Example code may be found in <a
href="https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/">jena-arq/src-examples</a>.</p>
<h3 id="ways-to-write-a-model">Ways to write a model</h3>
<p>The follow ways are different ways to write a model in Turtle:</p>
<div class="codehilite"><pre> <span class="n">Model</span> <span
class="n">model</span> <span class="p">=</span> <span class="p">...</span>
<span class="p">;</span>
@@ -641,7 +641,7 @@ the default graph of the dataset.</p>
<h3 id="adding-a-new-output-format">Adding a new output format</h3>
<p>An complete example of adding a new output format is given in the example
file:
-<a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-arq/src-examples/arq/examples/riot/ExRIOT_out3.java">RIOT
Output example 3</a></p>
+<a
href="https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/ExRIOT_out3.java">RIOT
Output example 3</a></p>
<h2 id="notes">Notes</h2>
<p>Using <code>OutputStream</code>s is strongly encouraged. This allows the
writers
to manage the character encoding using UTF-8. Using
<code>java.io.Writer</code>
Modified:
websites/staging/jena/trunk/content/documentation/query/spatial-query.html
==============================================================================
--- websites/staging/jena/trunk/content/documentation/query/spatial-query.html
(original)
+++ websites/staging/jena/trunk/content/documentation/query/spatial-query.html
Thu Sep 25 21:46:52 2014
@@ -152,7 +152,7 @@ Spatial indexes are additional informati
<p>The spatial index can be either <a
href="http://lucene.apache.org/core">Apache Lucene</a> for a
same-machine spatial index, or <a href="http://lucene.apache.org/solr/">Apache
Solr</a>
for a large scale enterprise search application.</p>
-<p>Some example code is <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-spatial/src/main/java/examples/">available
here</a>.</p>
+<p>Some example code is <a
href="https://github.com/apache/jena/tree/master/jena-spatial/src/main/java/examples/">available
here</a>.</p>
<p><em>Illustration</em></p>
<p>This query makes a spatial query for the places within 10 kilometres of
Bristol UK (which as latitude/longitude of 51.46, 2.6).</p>
<div class="codehilite"><pre><span class="n">PREFIX</span> <span
class="n">spatial</span><span class="p">:</span> <span
class="o"><</span><span class="n">http</span><span class="p">:</span><span
class="o">//</span><span class="n">jena</span><span class="p">.</span><span
class="n">apache</span><span class="p">.</span><span class="n">org</span><span
class="o">/</span><span class="n">spatial</span>#<span class="o">></span>
@@ -229,8 +229,9 @@ for a large scale enterprise search appl
<p><strong>Important note</strong> In order to read geo data in 2) WKT literal
format, jena-spatial uses <a
href="http://tsusiatsoftware.net/jts/main.html">JTS Topology Suite</a>,
which is under LGPL licence. jena-spatial <strong>does not</strong> make a
hard dependency on JTS. In other words,
if an end user just uses the feature of 1), there's no need to depend on JTS
(i.e. nothing needs to be done). If he wants 2),
-he can make it by setting the <code>SpatialContextFactory</code> of <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-spatial/src/main/java/org/apache/jena/query/spatial/EntityDefinition.java">EntityDefinition</a>
to <code>JtsSpatialContextFactory</code>,
-which is an optional choice. In this way, the JTS libs should be in the
classpath. Here's the sample code: </p>
+he can make it by setting the <code>SpatialContextFactory</code> of
+<a
href="https://github.com/apache/jena/tree/master/jena-spatial/src/main/java/org/apache/jena/query/spatial/EntityDefinition.java">EntityDefinition</a>
+to <code>JtsSpatialContextFactory</code>, which is an optional choice. In this
way, the JTS libs should be in the classpath. Here's the sample code: </p>
<div class="codehilite"><pre><span class="n">import</span> <span
class="n">org</span><span class="p">.</span><span class="n">apache</span><span
class="p">.</span><span class="n">jena</span><span class="p">.</span><span
class="n">query</span><span class="p">.</span><span
class="n">spatial</span><span class="p">.</span><span
class="n">EntityDefinition</span>
<span class="p">...</span>
<span class="n">EntityDefinition</span> <span class="n">entDef</span> <span
class="p">=</span> <span class="n">new</span> <span
class="n">EntityDefinition</span><span class="p">(</span>"<span
class="n">entityField</span>"<span class="p">,</span> "<span
class="n">geoField</span>"<span class="p">);</span>
@@ -244,7 +245,8 @@ which is an optional choice. In this way
<h4 id="custom-geo-predicates">Custom Geo Predicates</h4>
<p>However, there may be more predicates for other data sources for both 1)
and 2).
jena-spatial provides an interface for consuming all kinds of custom geo
predicates.
-You can simply add predicates to let jena-spatial recognize them using <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-spatial/src/main/java/org/apache/jena/query/spatial/EntityDefinition.java">EntityDefinition</a>:</p>
+You can simply add predicates to let jena-spatial recognize them using
+<a
href="https://github.com/apache/jena/tree/master/jena-spatial/src/main/java/org/apache/jena/query/spatial/EntityDefinition.java">EntityDefinition</a>:</p>
<div class="codehilite"><pre><span class="n">import</span> <span
class="n">org</span><span class="p">.</span><span class="n">apache</span><span
class="p">.</span><span class="n">jena</span><span class="p">.</span><span
class="n">query</span><span class="p">.</span><span
class="n">spatial</span><span class="p">.</span><span
class="n">EntityDefinition</span>
<span class="p">...</span>
@@ -261,7 +263,7 @@ You can simply add predicates to let jen
</pre></div>
-<p>See more supported <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-spatial/src/test/resources/geoarq-data-1.ttl">geo
data examples</a></p>
+<p>See more supported <a
href="https://github.com/apache/jena/tree/master/jena-spatial/src/test/resources/geoarq-data-1.ttl">geo
data examples</a></p>
<h3 id="load-geo-data-into-spatial-dataset">Load Geo Data into Spatial
Dataset</h3>
<div class="codehilite"><pre><span class="n">spatialDataset</span><span
class="p">.</span><span class="n">begin</span><span class="p">(</span><span
class="n">ReadWrite</span><span class="p">.</span><span
class="n">WRITE</span><span class="p">);</span>
<span class="k">try</span> <span class="p">{</span>
@@ -318,7 +320,9 @@ You can simply add predicates to let jen
<p>See <a
href="http://edndoc.esri.com/arcsde/9.1/general_topics/understand_spatial_relations.htm">ESRIs
docs on spatial relations</a></p>
<h2 id="spatial-dataset-assembler">Spatial Dataset Assembler</h2>
<p>The usual way to describe an index is with a <a
href="http://jena.apache.org/documentation/assembler/index.html">Jena assembler
description</a>. Configurations can also be built with <a
href="#how-to-use-it-by-code">code</a>. The assembler describes a "spaital
dataset" which has an underlying RDF dataset and a spatial index. The spatial
index describes the spatial index technology (Lucene or Solr) and the details
needed for for each.</p>
-<p>A spatial index has an <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-spatial/src/main/java/org/apache/jena/query/spatial/EntityDefinition.java">EntityDefinition</a>
which defines the properties to index, the name of the lucene/solr field used
for storing the URI itself (e.g. "entityField") and its geo information (e.g.
latitude/longitude as "geoField"), and the custom geo predicates.</p>
+<p>A spatial index has an
+<a
href="https://github.com/apache/jena/tree/master/jena-spatial/src/main/java/org/apache/jena/query/spatial/EntityDefinition.java">EntityDefinition</a>
+which defines the properties to index, the name of the lucene/solr field used
for storing the URI itself (e.g. "entityField") and its geo information (e.g.
latitude/longitude as "geoField"), and the custom geo predicates.</p>
<p>For common RDF spatial query, only "entityField" and "geoField" are
required with the <a href="#builtin-geo-predicates">builtin geo predicates</a>
working well. More complex setups, with multiple <a
href="#custom-geo-predicates">custom geo predicates</a> besides the two fields
are possible.
You also optionally use JtsSpatialContextFactory to support indexing WKT
literals. </p>
<p>Once setup this way, any data added to the spatial dataset is automatically
indexed as well.</p>
@@ -390,7 +394,7 @@ You also optionally use JtsSpatialContex
<h2 id="working-with-solr">Working with Solr</h2>
<p>Besides Lucene, jena-spatial can work with Solr for spatial query, powered
by <a href="http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4">Lucene /
Solr 4 Spatial</a> and <a
href="http://wiki.apache.org/solr/Solrj">Solrj</a>.</p>
<p>It's required to add the field definitions for "entityField" and "geoField"
respectively in <code>schema.xml</code> of Solr.
-The names of the fields in <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-spatial/src/main/java/org/apache/jena/query/spatial/EntityDefinition.java">EntityDefinition</a>
should be in accordance with those in <code>schema.xml</code>.
+The names of the fields in <a
href="https://github.com/apache/jena/tree/master/jena-spatial/src/main/java/org/apache/jena/query/spatial/EntityDefinition.java">EntityDefinition</a>
should be in accordance with those in <code>schema.xml</code>.
Here is an example defining the names of "entityField" as "uri" and "geoField"
as "geo":</p>
<div class="codehilite"><pre><span class="o"><</span><span
class="n">field</span> <span class="n">name</span><span
class="p">=</span>"<span class="n">uri</span>" <span
class="n">type</span><span class="p">=</span>"<span
class="n">string</span>" <span class="n">indexed</span><span
class="p">=</span>"<span class="n">true</span>" <span
class="n">stored</span><span class="p">=</span>"<span
class="n">true</span>" <span class="n">required</span><span
class="p">=</span>"<span class="n">true</span>" <span
class="n">multiValued</span><span class="p">=</span>"<span
class="n">false</span>" <span class="o">/></span>
<span class="o"><</span><span class="n">field</span> <span
class="n">name</span><span class="p">=</span>"<span
class="n">geo</span>" <span class="n">type</span><span
class="p">=</span>"<span class="n">location_rpt</span>" <span
class="n">indexed</span><span class="p">=</span>"<span
class="n">true</span>" <span class="n">stored</span><span
class="p">=</span>"<span class="n">true</span>" <span
class="n">multiValued</span><span class="p">=</span>"<span
class="n">true</span>" <span class="o">/></span>
@@ -411,8 +415,8 @@ Here is an example defining the names of
<p>The above is the least required configuration to run jena-spatial in Solr.
For more information about the configuration, please check the <a
href="http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4">Lucene / Solr
4 Spatial</a> documentation.</p>
-<p>There're also some demostrations of the usage of Solr in the <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-spatial/src/test/java/org/apache/jena/query/spatial/pfunction/solr">unit
tests</a> of jena-spatial.
-They use a <code>EmbeddedSolrServer</code>with a <code>SOLR_HOME</code> sample
<a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-spatial/src/test/resources/SolrHome">here</a>.</p>
+<p>There're also some demostrations of the usage of Solr in the <a
href="https://github.com/apache/jena/tree/master/jena-spatial/src/test/java/org/apache/jena/query/spatial/pfunction/solr">unit
tests</a> of jena-spatial.
+They use a <code>EmbeddedSolrServer</code>with a <code>SOLR_HOME</code> sample
<a
href="https://github.com/apache/jena/tree/master/jena-spatial/src/test/resources/SolrHome">here</a>.</p>
<h2 id="working-with-fuseki">Working with Fuseki</h2>
<p>The Fuseki configuration simply points to the spatial dataset as the
fuseki:dataset of the service.</p>
<div class="codehilite"><pre><span class="o"><</span>#<span
class="n">service_spatial_tdb</span><span class="o">></span> <span
class="n">rdf</span><span class="p">:</span><span class="n">type</span> <span
class="n">fuseki</span><span class="p">:</span><span class="n">Service</span>
<span class="p">;</span>
Modified:
websites/staging/jena/trunk/content/documentation/query/text-query.html
==============================================================================
--- websites/staging/jena/trunk/content/documentation/query/text-query.html
(original)
+++ websites/staging/jena/trunk/content/documentation/query/text-query.html Thu
Sep 25 21:46:52 2014
@@ -153,7 +153,7 @@ accessing the RDF graph.</p>
<p>The text index can be either <a href="http://lucene.apache.org/core">Apache
Lucene</a> for a
same-machine text index, or <a href="http://lucene.apache.org/solr/">Apache
Solr</a>
for a large scale enterprise search application.</p>
-<p>Some example code is <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-text/src/main/java/examples/">available
here</a>.</p>
+<p>Some example code is <a
href="https://github.com/apache/jena/tree/master/jena-text/src/main/java/examples/">available
here</a>.</p>
<p>This module is not compatible with the much older LARQ module.</p>
<p><em>Illustration</em></p>
<p>This query makes a text query for 'word' on a specific property
Modified: websites/staging/jena/trunk/content/documentation/tools/index.html
==============================================================================
--- websites/staging/jena/trunk/content/documentation/tools/index.html
(original)
+++ websites/staging/jena/trunk/content/documentation/tools/index.html Thu Sep
25 21:46:52 2014
@@ -191,7 +191,7 @@ a variety of tasks in developing Jena-ba
<p>Windows users may experience problems if trying to run the tools when their
<code>JENAROOT</code> path contains spaces in it, there are two workarounds for
this:</p>
<ol>
<li>Move your Jena install to a path without spaces</li>
-<li>Grab the latest scripts from <a
href="http://svn.apache.org/viewvc/jena/trunk/apache-jena/bat/">Trunk</a> where
they have been fixed to safely handle this. Future releases will include this
fix and resolve this issue</li>
+<li>Grab the latest scripts from <a
href="https://github.com/apache/jena/tree/master/apache-jena/bat/">master</a>
where they have been fixed to safely handle this. Future releases will include
this fix and resolve this issue</li>
</ol>
</div>
</div>
Modified: websites/staging/jena/trunk/content/download/index.html
==============================================================================
--- websites/staging/jena/trunk/content/download/index.html (original)
+++ websites/staging/jena/trunk/content/download/index.html Thu Sep 25 21:46:52
2014
@@ -212,9 +212,9 @@ Other mirrors: <select name="Preferred">
<h4 id="source-code">Source code</h4>
-<p>The development codebase is available from SVN.</p>
-<p><a
href="https://svn.apache.org/repos/asf/jena/">https://svn.apache.org/repos/asf/jena/</a></p>
-<p>This is mirrored as a git repository on github:</p>
+<p>The development codebase is available from git.</p>
+<p><a
href="https://git-wip-us.apache.org/repos/asf?p=jena.git">https://git-wip-us.apache.org/repos/asf?p=jena.git</a></p>
+<p>This is mirrored on github:</p>
<p><a
href="https://github.com/apache/jena">https://github.com/apache/jena</a></p>
<h4 id="previous-releases">Previous releases</h4>
<p>While previous releases are available, we strongly recommend that wherever
Modified: websites/staging/jena/trunk/content/tutorials/rdf_api.html
==============================================================================
--- websites/staging/jena/trunk/content/tutorials/rdf_api.html (original)
+++ websites/staging/jena/trunk/content/tutorials/rdf_api.html Thu Sep 25
21:46:52 2014
@@ -284,7 +284,7 @@ compactly written in a cascading style:<
</blockquote>
<p>The working code for this example can be found in the /src-examples
directory of
-the Jena distribution as <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial01.java">tutorial
1</a>. As
+the Jena distribution as <a
href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial01.java">tutorial
1</a>. As
an exercise, take this code and modify it to create a simple VCARD for
yourself.</p>
@@ -330,7 +330,7 @@ Resource johnSmith
</blockquote>
<p>The working code for this example can be found as <a
-href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial02.java">tutorial
2</a> in the /src-examples directory
+href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial02.java">tutorial
2</a> in the /src-examples directory
of the Jena distribution.</p>
<h2><a id="ch-Statements">Statements</a></h2>
@@ -365,7 +365,7 @@ methods to the subject, predicate and ob
<p>Now we will use that interface to extend tutorial2 to list all the
statements created and print them out. The complete code for this can be
-found in <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial03.java">tutorial
3</a>.</p>
+found in <a
href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial03.java">tutorial
3</a>.</p>
<blockquote>
<pre><code>// list the statements in the Model
@@ -428,7 +428,7 @@ N-Triples writer built in.</p>
used to save an RDF model to a file and later read it back in again.</p>
<p>Tutorial 3 created a model and wrote it out in triple form. <a
-href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial04.java">Tutorial
4</a> modifies tutorial 3 to write the
+href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial04.java">Tutorial
4</a> modifies tutorial 3 to write the
model in RDF XML form to the standard output stream. The code again, is
very simple: <code>model.write</code> can take an <code>OutputStream</code>
argument.</p>
@@ -521,7 +521,7 @@ the N-Triples specification.</p>
<h2><a id="ch-Reading RDF">Reading RDF</a></h2>
-<p><a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial05.java">Tutorial
5</a> demonstrates reading the
+<p><a
href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial05.java">Tutorial
5</a> demonstrates reading the
statements recorded in RDF XML form into a model. With this tutorial,
we have provided a small database of vcards in RDF/XML form. The following
code will read it in and write it out. <em>Note that for this application to
@@ -550,7 +550,7 @@ model.write(System.out);
<p>The second argument to the <code>read()</code> method call is the URI which
will
be used for resolving relative URI's. As there are no relative URI
references in the test file, it is allowed to be empty. When run, <a
-href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial05.java">
tutorial 5</a> will produce XML output which
+href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial05.java">
tutorial 5</a> will produce XML output which
looks like:</p>
<blockquote>
@@ -871,7 +871,7 @@ while (iter.hasNext()) {
}</code></pre>
</blockquote>
-<p>This code can be found in <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial06.java">
tutorial 6</a>.
+<p>This code can be found in <a
href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial06.java">
tutorial 6</a>.
The statement iterator <code>iter</code> produces each and every statement
with subject <code>vcard</code> and predicate <code>VCARD.NICKNAME</code>,
so looping over it allows us to fetch each statement by using
@@ -971,7 +971,7 @@ is equivalent to
<p>
The following code, which can be found in full in <a
-href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial07.java">tutorial
7</a> lists the full names on all the
+href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial07.java">tutorial
7</a> lists the full names on all the
vcards in the database.</p>
<blockquote>
@@ -1026,7 +1026,7 @@ predicate and object arguments takes pla
<code>selects(...)</code> method is called, so the extra test will only be
applied to matching statements.</p>
-<p>The full code can be found in <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial08.java">tutorial
+<p>The full code can be found in <a
href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial08.java">tutorial
8</a> and produces output like this:</p>
<blockquote>
@@ -1086,7 +1086,7 @@ one and the duplicate <code>vcard:FN</co
<img alt="figure 6" src="figures/fig6.png" width="540" height="240"></p>
<p>Lets look at the code to do this (the full code is in <a
-href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial09.java">tutorial
9</a>) and see what happens.</p>
+href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial09.java">tutorial
9</a>) and see what happens.</p>
<blockquote>
<pre><code>// read the RDF/XML files
@@ -1244,7 +1244,7 @@ if (iter2.hasNext()) {
Becky Smith</code></pre>
</blockquote>
-<p>Executable example code can be found in <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial10.java">
+<p>Executable example code can be found in <a
href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial10.java">
tutorial 10</a>, which glues together the fragments above into a complete
example.</p>
@@ -1271,7 +1271,7 @@ Model is written as RDF/XML a special co
parseType='Literal' attribute is used to represent it.</p>
<p>In Jena, these attributes of a literal may be set when the literal is
-constructed, e.g. in <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial11.java">tutorial
11</a>:</p>
+constructed, e.g. in <a
href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial11.java">tutorial
11</a>:</p>
<blockquote>
<pre><code>// create the resource
Modified: websites/staging/jena/trunk/content/tutorials/rdf_api_pt.html
==============================================================================
--- websites/staging/jena/trunk/content/tutorials/rdf_api_pt.html (original)
+++ websites/staging/jena/trunk/content/tutorials/rdf_api_pt.html Thu Sep 25
21:46:52 2014
@@ -236,7 +236,7 @@ para criar um modelo na memória. Jena
.addProperty(VCARD.FN, fullName);</code></pre>
</blockquote>
-<p>Os códigos desse exemplo podem ser encontrados no diretório /src-examples
no pacote de distribuição do Jena como <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial01.java">tutorial
1</a>. Como exercÃcio, pegue este código e modifique-o para criar um
próprio VCARD para você.</p>
+<p>Os códigos desse exemplo podem ser encontrados no diretório /src-examples
no pacote de distribuição do Jena como <a
href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial01.java">tutorial
1</a>. Como exercÃcio, pegue este código e modifique-o para criar um
próprio VCARD para você.</p>
<p>Agora vamos adicionar mais detalhes ao vcard, explorando mais recursos de
RDF e Jena.</p>
@@ -270,7 +270,7 @@ Resource johnSmith
.addProperty(VCARD.Family,
familyName));</code></pre>
</blockquote>
-<p>Os códigos desse exemplo podem ser encontrados no diretório /src-examples
no pacote de distribuição do Jena como <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial02.java">tutorial
2</a>.</p>
+<p>Os códigos desse exemplo podem ser encontrados no diretório /src-examples
no pacote de distribuição do Jena como <a
href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial02.java">tutorial
2</a>.</p>
<h2><a id="ch-Statements">Sentenças</a></h2>
@@ -292,7 +292,7 @@ por causa de suas três partes.</p>
<code>StmtIterator</code> possui o método <code>nextStatement()</code>
que retorna a próxima sentença do iterador (o mesmo que <code>next()</code>
faz, já convertido para <code>Statement</code>). A interface
<code>Statement</code> provê métodos de acesso ao sujeito, predicado e objeto
de uma sentença.</p>
-<p>Agora vamos usar essa interface para estender tutorial2 para listar todas
as sentenças criadas e imprimi-las. O código completo deste exemplo pode ser
encontrado em <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial03.java">tutorial
3</a>.</p>
+<p>Agora vamos usar essa interface para estender tutorial2 para listar todas
as sentenças criadas e imprimi-las. O código completo deste exemplo pode ser
encontrado em <a
href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial03.java">tutorial
3</a>.</p>
<blockquote>
<pre><code>// list the statements in the Model
@@ -340,7 +340,7 @@ Group</a> definiu uma notação simi
<p>Jena possui métodos para ler e escrever RDF como XML. Eles podem ser
usados para armazenar o modelo RDF em um arquivo e carregá-lo novamente em
outro momento.</p>
<p>O Tutorial 3 criou um modelo e o escreveu no formato de triplas. <a
-href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial04.java">Tutorial
4</a> modifica o tutorial 3 para escrever o modelo na forma de RDF XML numa
stream de saÃda. O código, novamente, é muito simples:
<code>model.write</code> pode receber um <code>OutputStream</code> como
argumento.</p>
+href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial04.java">Tutorial
4</a> modifica o tutorial 3 para escrever o modelo na forma de RDF XML numa
stream de saÃda. O código, novamente, é muito simples:
<code>model.write</code> pode receber um <code>OutputStream</code> como
argumento.</p>
<blockquote>
<pre><code>// now write the model in XML form to a file
@@ -398,7 +398,7 @@ model.write(System.out, "N-TRIPLE");
<h2><a id="ch-Reading RDF">Leitura de RDF</a></h2>
-<p><a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial05.java">Tutorial
5</a> demonstra a leitura num modelo de sentenças gravadas num RDF XML. Com
este tutorial, nós teremos criado uma pequena base de dados de vcards na forma
RDF/XML. O código a seguir fará leitura e escrita. <em>Note que para esta
aplicação rodar, o arquivo de entrada precisa estar no diretório da
aplicação.</em></p>
+<p><a
href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial05.java">Tutorial
5</a> demonstra a leitura num modelo de sentenças gravadas num RDF XML. Com
este tutorial, nós teremos criado uma pequena base de dados de vcards na forma
RDF/XML. O código a seguir fará leitura e escrita. <em>Note que para esta
aplicação rodar, o arquivo de entrada precisa estar no diretório da
aplicação.</em></p>
<blockquote>
<pre><code>
@@ -420,7 +420,7 @@ model.write(System.out);
</code></pre>
</blockquote>
-<p>O segundo argumento da chamada de método <code>read()</code> é a URI que
será usada para resolver URIs relativas. Como não há referências URI
relativas no arquivo de teste, ele pode ser vazio. Quando executado, <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial05.java">
tutorial 5</a> produzirá uma saÃda XML como esta:</p>
+<p>O segundo argumento da chamada de método <code>read()</code> é a URI que
será usada para resolver URIs relativas. Como não há referências URI
relativas no arquivo de teste, ele pode ser vazio. Quando executado, <a
href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial05.java">
tutorial 5</a> produzirá uma saÃda XML como esta:</p>
<blockquote>
<pre><code><rdf:RDF
@@ -660,7 +660,7 @@ while (iter.hasNext()) {
}</code></pre>
</blockquote>
-<p>Esse código pode ser encontrado em <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial06.java">
tutorial 6</a>. O iterador <code>iter</code> reproduz todas as sentenças com
sujeito <code>vcard</code> e predicado <code>VCARD.NICKNAME</code>, então,
iterar sobre ele permite recuperar cada sentença usando
+<p>Esse código pode ser encontrado em <a
href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial06.java">
tutorial 6</a>. O iterador <code>iter</code> reproduz todas as sentenças com
sujeito <code>vcard</code> e predicado <code>VCARD.NICKNAME</code>, então,
iterar sobre ele permite recuperar cada sentença usando
<code>nextStatement()</code>, pegar o campo do objeto, e convertê-lo para
string. O código produz a seguinte saÃda quando executado:</p>
<blockquote>
@@ -730,7 +730,7 @@ while (iter.hasNext()) {
<p>
O código a seguir, que pode ser encontrado em <a
-href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial07.java">tutorial
7</a> que lista os nomes completos de todos os vcards do banco de dados.</p>
+href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial07.java">tutorial
7</a> que lista os nomes completos de todos os vcards do banco de dados.</p>
<blockquote>
<pre><code>// select all the resources with a VCARD.FN property
@@ -777,7 +777,7 @@ StmtIterator iter = model.listStatements
<p>Esse código usa uma técnica elegante de Java para sobrescrever a
definição de um método quando criamos uma instância da classe. Aqui, o
método <code>selects(...)</code> garante que o nome completo termine com
âSmithâ. Ã importante notar que a filtragem baseada nos argumentos
sujeito, predicado e objeto tem lugar antes que o método
<code>selects(...)</code> seja chamado, então esse teste extra só será
aplicado para casar sentenças.</p>
-<p>O código completo pode ser encontrado no <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial08.java">tutorial
+<p>O código completo pode ser encontrado no <a
href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial08.java">tutorial
8</a> e produz uma saÃda igual a:</p>
<blockquote>
@@ -829,7 +829,7 @@ StmtIterator iter = model.listStatements
<img alt="figure 6" src="figures/fig6.png" width="540" height="240"></p>
<p>Vamos ver o código (o código completo está em <a
-href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial09.java">tutorial
9</a>) e ver o que acontece.</p>
+href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial09.java">tutorial
9</a>) e ver o que acontece.</p>
<blockquote>
<pre><code>// read the RDF/XML files
@@ -959,7 +959,7 @@ if (iter2.hasNext()) {
Becky Smith</code></pre>
</blockquote>
-<p>O código executável pode ser encontrado em <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial10.java">
+<p>O código executável pode ser encontrado em <a
href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial10.java">
tutorial 10</a>, que coloca esses fragmentos de código juntos num exemplo
completo.</p>
<p>As classes de Jena oferecem métodos para manipular containers, incluindo
adição de novos membros, inserção de novos membros no meio de um container
e a remoção de membros existentes. As classes de container Jena atualmente
garantem que a lista ordenada de propriedades usadas começam com rdf:_1 e é
contÃguo. O RDFCore WG relaxou essa regra, permitindo uma representação
parcial dos containers. Isso, portanto, é uma área de Jena que pode ser
mudada no futuro.</p>
@@ -970,7 +970,7 @@ tutorial 10</a>, que coloca esses fragme
<p>Há na realidade dois tipos de Literais. Em uma delas, o componente string
é somente isso, uma string ordinária. Na outra, o componente string é
esperado que fosse um bem balanceado fragmento de XML. Quando um modelo RDF é
escrito como RDF/XML, uma construção especial usando um atributo
parseType='Literal' é usado para representar isso.</p>
-<p>Em Jena, esses atributos de uma literal podem ser setados quando a literal
é construÃda, e.g. no <a
href="https://svn.apache.org/repos/asf/jena/trunk/jena-core/src-examples/jena/examples/rdf/Tutorial11.java">tutorial
11</a>:</p>
+<p>Em Jena, esses atributos de uma literal podem ser setados quando a literal
é construÃda, e.g. no <a
href="https://github.com/apache/jena/tree/master/jena-core/src-examples/jena/examples/rdf/Tutorial11.java">tutorial
11</a>:</p>
<blockquote>
<pre><code>// create the resource