Author: andy
Date: Thu Sep 25 21:46:25 2014
New Revision: 1627674
URL: http://svn.apache.org/r1627674
Log:
svn.apache.org -> git.apache.org or github/com/apache/jena/master
Modified:
jena/site/trunk/content/documentation/io/rdf-input.mdtext
jena/site/trunk/content/documentation/io/rdf-output.mdtext
jena/site/trunk/content/documentation/query/spatial-query.mdtext
jena/site/trunk/content/documentation/query/text-query.mdtext
jena/site/trunk/content/documentation/tools/index.mdtext
jena/site/trunk/content/download/index.mdtext
jena/site/trunk/content/tutorials/rdf_api.mdtext
jena/site/trunk/content/tutorials/rdf_api_pt.mdtext
Modified: jena/site/trunk/content/documentation/io/rdf-input.mdtext
URL:
http://svn.apache.org/viewvc/jena/site/trunk/content/documentation/io/rdf-input.mdtext?rev=1627674&r1=1627673&r2=1627674&view=diff
==============================================================================
--- jena/site/trunk/content/documentation/io/rdf-input.mdtext (original)
+++ jena/site/trunk/content/documentation/io/rdf-input.mdtext Thu Sep 25
21:46:25 2014
@@ -206,7 +206,7 @@ Using log4j, set the logging level of th
## Advanced examples
-Example code may be found in
[jena-arq/src-examples](https://svn.apache.org/repos/asf/jena/trunk/jena-arq/src-examples/arq/examples/riot/).
+Example code may be found in
[jena-arq/src-examples](https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/).
### Iterating over parser output
@@ -215,8 +215,8 @@ this is useful when you don't want to go
logic in normal iterator style.
To do this you use one of the subclasses of
-[PipedRDFIterator](http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/lang/PipedRDFIterator.java?view=markup)
-in conjunction with a
[PipedRDFStream](http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/lang/PipedRDFStream.java?view=markup).
+[PipedRDFIterator](https://github.com/apache/jena/tree/master/jena-arq/src/main/java/org/apache/jena/riot/lang/PipedRDFIterator.java?view=markup)
+in conjunction with a
[PipedRDFStream](https://github.com/apache/jena/tree/master/jena-arq/src/main/java/org/apache/jena/riot/lang/PipedRDFStream.java?view=markup).
This `PipedRDFStream` provides an implementation of `StreamRDF` which allows
it to consume parser output and this is consumed by
the `PipedRDFIterator` implementation. This has some advantages over a direct
`StreamRDF` implementation since it allows the parser
@@ -225,7 +225,7 @@ production of data to run ahead of your
The only complication is that you need to ensure that the thread feeding the
`PipedRDFStream` 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.
-See [RIOT example
6](https://svn.apache.org/repos/asf/jena/trunk/jena-arq/src-examples/arq/examples/riot/ExRIOT_6.java)
+See [RIOT example
6](https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/ExRIOT_6.java)
which shows an example usage including a simple way to push the parser onto a
different thread to avoid the possible deadlock.
### Filter the output of parsing
@@ -234,10 +234,10 @@ When working with very large files, it c
process the stream of triples or quads produced
by the parser so as to work in a streaming fashion.
-See [RIOT example
4](https://svn.apache.org/repos/asf/jena/trunk/jena-arq/src-examples/arq/examples/riot/ExRIOT_4.java)
+See [RIOT example
4](https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/ExRIOT_4.java)
### Add a new language
The set of languages is not fixed. A new languages,
together with a parser, can be added to RIOT as shown in
-[RIOT example
5](https://svn.apache.org/repos/asf/jena/trunk/jena-arq/src-examples/arq/examples/riot/ExRIOT_5.java)
\ No newline at end of file
+[RIOT example
5](https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/ExRIOT_5.java)
\ No newline at end of file
Modified: jena/site/trunk/content/documentation/io/rdf-output.mdtext
URL:
http://svn.apache.org/viewvc/jena/site/trunk/content/documentation/io/rdf-output.mdtext?rev=1627674&r1=1627673&r2=1627674&view=diff
==============================================================================
--- jena/site/trunk/content/documentation/io/rdf-output.mdtext (original)
+++ jena/site/trunk/content/documentation/io/rdf-output.mdtext Thu Sep 25
21:46:25 2014
@@ -316,7 +316,7 @@ while the jena writer writer name defaul
## Examples
-Example code may be found in
[jena-arq/src-examples](https://svn.apache.org/repos/asf/jena/trunk/jena-arq/src-examples/arq/examples/riot/).
+Example code may be found in
[jena-arq/src-examples](https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/).
### Ways to write a model
@@ -370,7 +370,7 @@ might give:
### Adding a new output format
An complete example of adding a new output format is given in the example
file:
-[RIOT Output example
3](https://svn.apache.org/repos/asf/jena/trunk/jena-arq/src-examples/arq/examples/riot/ExRIOT_out3.java)
+[RIOT Output example
3](https://github.com/apache/jena/tree/master/jena-arq/src-examples/arq/examples/riot/ExRIOT_out3.java)
## Notes
Modified: jena/site/trunk/content/documentation/query/spatial-query.mdtext
URL:
http://svn.apache.org/viewvc/jena/site/trunk/content/documentation/query/spatial-query.mdtext?rev=1627674&r1=1627673&r2=1627674&view=diff
==============================================================================
--- jena/site/trunk/content/documentation/query/spatial-query.mdtext (original)
+++ jena/site/trunk/content/documentation/query/spatial-query.mdtext Thu Sep 25
21:46:25 2014
@@ -10,7 +10,7 @@ The spatial index can be either [Apache
same-machine spatial index, or [Apache Solr](http://lucene.apache.org/solr/)
for a large scale enterprise search application.
-Some example code is [available
here](https://svn.apache.org/repos/asf/jena/trunk/jena-spatial/src/main/java/examples/).
+Some example code is [available
here](https://github.com/apache/jena/tree/master/jena-spatial/src/main/java/examples/).
*Illustration*
@@ -88,8 +88,9 @@ For 2) WKT, DBPedia uses `geo:geometry`,
**Important note** In order to read geo data in 2) WKT literal format,
jena-spatial uses [JTS Topology
Suite](http://tsusiatsoftware.net/jts/main.html),
which is under LGPL licence. jena-spatial **does not** 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 `SpatialContextFactory` of
[EntityDefinition](https://svn.apache.org/repos/asf/jena/trunk/jena-spatial/src/main/java/org/apache/jena/query/spatial/EntityDefinition.java)
to `JtsSpatialContextFactory`,
-which is an optional choice. In this way, the JTS libs should be in the
classpath. Here's the sample code:
+he can make it by setting the `SpatialContextFactory` of
+[EntityDefinition](https://github.com/apache/jena/tree/master/jena-spatial/src/main/java/org/apache/jena/query/spatial/EntityDefinition.java)
+to `JtsSpatialContextFactory`, which is an optional choice. In this way, the
JTS libs should be in the classpath. Here's the sample code:
import org.apache.jena.query.spatial.EntityDefinition
...
@@ -103,7 +104,8 @@ which is an optional choice. In this way
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
[EntityDefinition](https://svn.apache.org/repos/asf/jena/trunk/jena-spatial/src/main/java/org/apache/jena/query/spatial/EntityDefinition.java):
+You can simply add predicates to let jena-spatial recognize them using
+[EntityDefinition](https://github.com/apache/jena/tree/master/jena-spatial/src/main/java/org/apache/jena/query/spatial/EntityDefinition.java):
import org.apache.jena.query.spatial.EntityDefinition
...
@@ -119,7 +121,7 @@ You can simply add predicates to let jen
Resource wkt_1 =
ResourceFactory.createResource("http://localhost/jena_example/#wkt_1");
entDef.addWKTPredicate( wkt_1 );
-See more supported [geo data
examples](https://svn.apache.org/repos/asf/jena/trunk/jena-spatial/src/test/resources/geoarq-data-1.ttl)
+See more supported [geo data
examples](https://github.com/apache/jena/tree/master/jena-spatial/src/test/resources/geoarq-data-1.ttl)
### Load Geo Data into Spatial Dataset
@@ -154,7 +156,9 @@ See [ESRIs docs on spatial relations](ht
The usual way to describe an index is with a [Jena assembler
description](http://jena.apache.org/documentation/assembler/index.html).
Configurations can also be built with [code](#how-to-use-it-by-code). 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.
-A spatial index has an
[EntityDefinition](https://svn.apache.org/repos/asf/jena/trunk/jena-spatial/src/main/java/org/apache/jena/query/spatial/EntityDefinition.java)
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.
+A spatial index has an
+[EntityDefinition](https://github.com/apache/jena/tree/master/jena-spatial/src/main/java/org/apache/jena/query/spatial/EntityDefinition.java)
+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.
For common RDF spatial query, only "entityField" and "geoField" are required
with the [builtin geo predicates](#builtin-geo-predicates) working well. More
complex setups, with multiple [custom geo predicates](#custom-geo-predicates)
besides the two fields are possible.
You also optionally use JtsSpatialContextFactory to support indexing WKT
literals.
@@ -230,7 +234,7 @@ Key here is that the assembler contains
Besides Lucene, jena-spatial can work with Solr for spatial query, powered by
[Lucene / Solr 4
Spatial](http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4) and
[Solrj](http://wiki.apache.org/solr/Solrj).
It's required to add the field definitions for "entityField" and "geoField"
respectively in `schema.xml` of Solr.
-The names of the fields in
[EntityDefinition](https://svn.apache.org/repos/asf/jena/trunk/jena-spatial/src/main/java/org/apache/jena/query/spatial/EntityDefinition.java)
should be in accordance with those in `schema.xml`.
+The names of the fields in
[EntityDefinition](https://github.com/apache/jena/tree/master/jena-spatial/src/main/java/org/apache/jena/query/spatial/EntityDefinition.java)
should be in accordance with those in `schema.xml`.
Here is an example defining the names of "entityField" as "uri" and "geoField"
as "geo":
<field name="uri" type="string" indexed="true" stored="true"
required="true" multiValued="false" />
@@ -249,8 +253,8 @@ Addtionally, in `solrconfig.xml`, there
The above is the least required configuration to run jena-spatial in Solr.
For more information about the configuration, please check the [Lucene / Solr
4 Spatial](http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4)
documentation.
-There're also some demostrations of the usage of Solr in the [unit
tests](https://svn.apache.org/repos/asf/jena/trunk/jena-spatial/src/test/java/org/apache/jena/query/spatial/pfunction/solr)
of jena-spatial.
-They use a `EmbeddedSolrServer`with a `SOLR_HOME` sample
[here](https://svn.apache.org/repos/asf/jena/trunk/jena-spatial/src/test/resources/SolrHome).
+There're also some demostrations of the usage of Solr in the [unit
tests](https://github.com/apache/jena/tree/master/jena-spatial/src/test/java/org/apache/jena/query/spatial/pfunction/solr)
of jena-spatial.
+They use a `EmbeddedSolrServer`with a `SOLR_HOME` sample
[here](https://github.com/apache/jena/tree/master/jena-spatial/src/test/resources/SolrHome).
## Working with Fuseki
Modified: jena/site/trunk/content/documentation/query/text-query.mdtext
URL:
http://svn.apache.org/viewvc/jena/site/trunk/content/documentation/query/text-query.mdtext?rev=1627674&r1=1627673&r2=1627674&view=diff
==============================================================================
--- jena/site/trunk/content/documentation/query/text-query.mdtext (original)
+++ jena/site/trunk/content/documentation/query/text-query.mdtext Thu Sep 25
21:46:25 2014
@@ -12,7 +12,7 @@ The text index can be either [Apache Luc
same-machine text index, or [Apache Solr](http://lucene.apache.org/solr/)
for a large scale enterprise search application.
-Some example code is [available
here](https://svn.apache.org/repos/asf/jena/trunk/jena-text/src/main/java/examples/).
+Some example code is [available
here](https://github.com/apache/jena/tree/master/jena-text/src/main/java/examples/).
This module is not compatible with the much older LARQ module.
Modified: jena/site/trunk/content/documentation/tools/index.mdtext
URL:
http://svn.apache.org/viewvc/jena/site/trunk/content/documentation/tools/index.mdtext?rev=1627674&r1=1627673&r2=1627674&view=diff
==============================================================================
--- jena/site/trunk/content/documentation/tools/index.mdtext (original)
+++ jena/site/trunk/content/documentation/tools/index.mdtext Thu Sep 25
21:46:25 2014
@@ -57,7 +57,7 @@ If this command fails then `JENAROOT` is
Windows users may experience problems if trying to run the tools when their
`JENAROOT` path contains spaces in it, there are two workarounds for this:
1. Move your Jena install to a path without spaces
- 1. Grab the latest scripts from [Trunk][1] where they have been fixed to
safely handle this. Future releases will include this fix and resolve this
issue
+ 1. Grab the latest scripts from [master][1] where they have been fixed to
safely handle this. Future releases will include this fix and resolve this
issue
-[1]: http://svn.apache.org/viewvc/jena/trunk/apache-jena/bat/
+[1]: https://github.com/apache/jena/tree/master/apache-jena/bat/
Modified: jena/site/trunk/content/download/index.mdtext
URL:
http://svn.apache.org/viewvc/jena/site/trunk/content/download/index.mdtext?rev=1627674&r1=1627673&r2=1627674&view=diff
==============================================================================
--- jena/site/trunk/content/download/index.mdtext (original)
+++ jena/site/trunk/content/download/index.mdtext Thu Sep 25 21:46:25 2014
@@ -85,11 +85,11 @@ See "[Using Jena with Apache Maven](mave
#### Source code
-The development codebase is available from SVN.
+The development codebase is available from git.
-[https://svn.apache.org/repos/asf/jena/](https://svn.apache.org/repos/asf/jena/)
+[https://git-wip-us.apache.org/repos/asf?p=jena.git](https://git-wip-us.apache.org/repos/asf?p=jena.git)
-This is mirrored as a git repository on github:
+This is mirrored on github:
[https://github.com/apache/jena](https://github.com/apache/jena)
Modified: jena/site/trunk/content/tutorials/rdf_api.mdtext
URL:
http://svn.apache.org/viewvc/jena/site/trunk/content/tutorials/rdf_api.mdtext?rev=1627674&r1=1627673&r2=1627674&view=diff
==============================================================================
--- jena/site/trunk/content/tutorials/rdf_api.mdtext (original)
+++ jena/site/trunk/content/tutorials/rdf_api.mdtext Thu Sep 25 21:46:25 2014
@@ -139,7 +139,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>
@@ -185,7 +185,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>
@@ -219,7 +219,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
@@ -281,7 +281,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>
@@ -374,7 +374,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
@@ -403,7 +403,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>
@@ -728,7 +728,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
@@ -828,7 +828,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>
@@ -883,7 +883,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>
@@ -943,7 +943,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
@@ -1101,7 +1101,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>
@@ -1128,7 +1128,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: jena/site/trunk/content/tutorials/rdf_api_pt.mdtext
URL:
http://svn.apache.org/viewvc/jena/site/trunk/content/tutorials/rdf_api_pt.mdtext?rev=1627674&r1=1627673&r2=1627674&view=diff
==============================================================================
--- jena/site/trunk/content/tutorials/rdf_api_pt.mdtext (original)
+++ jena/site/trunk/content/tutorials/rdf_api_pt.mdtext Thu Sep 25 21:46:25 2014
@@ -107,7 +107,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>
@@ -141,7 +141,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>
@@ -162,7 +162,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
@@ -209,7 +209,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
@@ -267,7 +267,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>
@@ -289,7 +289,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
@@ -533,7 +533,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>
@@ -603,7 +603,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
@@ -650,7 +650,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>
@@ -702,7 +702,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
@@ -832,7 +832,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>
@@ -843,7 +843,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