Tried to test against existing projects but failed to get Maven
resolution to work. No doubt user error (my inability to ever have Maven
work for me is well known) but I've spend some time on this without
getting anywhere.
Using:
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>apache-jena-libs</artifactId>
<type>pom</type>
<version>2.10.0-SNAPSHOT</version>
</dependency>
and my normal repository entries:
<repositories>
<repository>
<id>apache-repo-releases</id>
<url>https://repository.apache.org/content/repositories/releases/</url>
<releases>
<enabled>true</enabled>
</releases>
</repository>
<repository>
<id>apache-repo-snapshots</id>
<url>https://repository.apache.org/content/repositories/snapshots/org/apache/jena/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
...
</repositories>
Then using Maven command line (version 3.0.3, on Ubuntu 13.04) I see:
[[[
Downloading:
http://repository.apache.org/content/repositories/snapshots/org/apache/jena/apache-jena-libs/2.10.0-SNAPSHOT/maven-metadata.xml
[WARNING] Checksum validation failed, expected <!DOCTYPE but is
94dbdf66c1bb3a5c799701be99258c04d5b08501 for
http://repository.apache.org/content/repositories/snapshots/org/apache/jena/apache-jena-libs/2.10.0-SNAPSHOT/maven-metadata.xml
[WARNING] Checksum validation failed, expected <!DOCTYPE but is
94dbdf66c1bb3a5c799701be99258c04d5b08501 for
http://repository.apache.org/content/repositories/snapshots/org/apache/jena/apache-jena-libs/2.10.0-SNAPSHOT/maven-metadata.xml
Downloaded:
http://repository.apache.org/content/repositories/snapshots/org/apache/jena/apache-jena-libs/2.10.0-SNAPSHOT/maven-metadata.xml
(399 B at 0.0 KB/sec)
[WARNING] The metadata
/home/der/.m2/repository/org/apache/jena/apache-jena-libs/2.10.0-SNAPSHOT/maven-metadata-apache-repo-snapshots.xml
is invalid: end tag name </body> must match start tag name <hr> from
line 7 (position: TEXT seen ...</address>\n</body>... @9:8)
Downloading:
https://repository.apache.org/content/repositories/releases/org/apache/jena/apache-jena-libs/2.10.0-SNAPSHOT/apache-jena-libs-2.10.0-SNAPSHOT.pom
Downloading:
http://repository.apache.org/content/repositories/snapshots/org/apache/jena/apache-jena-libs/2.10.0-SNAPSHOT/apache-jena-libs-2.10.0-SNAPSHOT.pom
[WARNING] Checksum validation failed, expected <!DOCTYPE but is
130d6e8640395f95842df937e1d43bb33498e44a for
http://repository.apache.org/content/repositories/snapshots/org/apache/jena/apache-jena-libs/2.10.0-SNAPSHOT/apache-jena-libs-2.10.0-SNAPSHOT.pom
[WARNING] Checksum validation failed, expected <!DOCTYPE but is
130d6e8640395f95842df937e1d43bb33498e44a for
http://repository.apache.org/content/repositories/snapshots/org/apache/jena/apache-jena-libs/2.10.0-SNAPSHOT/apache-jena-libs-2.10.0-SNAPSHOT.pom
Downloaded:
http://repository.apache.org/content/repositories/snapshots/org/apache/jena/apache-jena-libs/2.10.0-SNAPSHOT/apache-jena-libs-2.10.0-SNAPSHOT.pom
(417 B at 0.5 KB/sec)
[WARNING] The POM for
org.apache.jena:apache-jena-libs:pom:2.10.0-SNAPSHOT is invalid,
transitive dependencies (if any) will not be available, enable debug
logging for more details
]]]
Nuking the entire Jena area of my ~/.m2/repository and switching to the
dependency:
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>jena-tdb</artifactId>
<version>0.10.0-SNAPSHOT</version>
</dependency>
Then a clean compile generates:
[[[
Downloading:
http://www.epimorphics.com/maven2/org/apache/jena/jena-tdb/0.10.0-SNAPSHOT/maven-metadata.xml
[WARNING] Checksum validation failed, expected <!DOCTYPE but is
53ede9572737d92449809302a82f192cf7870165 for
http://repository.apache.org/content/repositories/snapshots/org/apache/jena/jena-tdb/0.10.0-SNAPSHOT/maven-metadata.xml
[WARNING] Checksum validation failed, expected <!DOCTYPE but is
53ede9572737d92449809302a82f192cf7870165 for
http://repository.apache.org/content/repositories/snapshots/org/apache/jena/jena-tdb/0.10.0-SNAPSHOT/maven-metadata.xml
Downloaded:
http://repository.apache.org/content/repositories/snapshots/org/apache/jena/jena-tdb/0.10.0-SNAPSHOT/maven-metadata.xml
(391 B at 0.0 KB/sec)
[WARNING] Could not transfer metadata
org.apache.jena:jena-tdb:0.10.0-SNAPSHOT/maven-metadata.xml from/to
repo-epi (http://www.epimorphics.com/maven2): Access denied to:
http://www.epimorphics.com/maven2/org/apache/jena/jena-tdb/0.10.0-SNAPSHOT/maven-metadata.xml
[WARNING] The metadata
/home/der/.m2/repository/org/apache/jena/jena-tdb/0.10.0-SNAPSHOT/maven-metadata-apache-repo-snapshots.xml
is invalid: end tag name </body> must match start tag name <hr> from
line 7 (position: TEXT seen ...</address>\n</body>... @9:8)
Downloading:
http://www.epimorphics.com/maven2/org/apache/jena/jena-tdb/0.10.0-SNAPSHOT/maven-metadata.xml
[WARNING] The metadata
/home/der/.m2/repository/org/apache/jena/jena-tdb/0.10.0-SNAPSHOT/maven-metadata-apache-repo-snapshots.xml
is invalid: end tag name </body> must match start tag name <hr> from
line 7 (position: TEXT seen ...</address>\n</body>... @9:8)
Downloading:
https://repository.apache.org/content/repositories/releases/org/apache/jena/jena-tdb/0.10.0-SNAPSHOT/jena-tdb-0.10.0-SNAPSHOT.pom
Downloading:
http://repository.apache.org/content/repositories/snapshots/org/apache/jena/jena-tdb/0.10.0-SNAPSHOT/jena-tdb-0.10.0-SNAPSHOT.pom
[WARNING] Checksum validation failed, expected <!DOCTYPE but is
90bfca3bbba171909dcef73af4c96a6fad064b48 for
http://repository.apache.org/content/repositories/snapshots/org/apache/jena/jena-tdb/0.10.0-SNAPSHOT/jena-tdb-0.10.0-SNAPSHOT.pom
[WARNING] Checksum validation failed, expected <!DOCTYPE but is
90bfca3bbba171909dcef73af4c96a6fad064b48 for
http://repository.apache.org/content/repositories/snapshots/org/apache/jena/jena-tdb/0.10.0-SNAPSHOT/jena-tdb-0.10.0-SNAPSHOT.pom
Downloaded:
http://repository.apache.org/content/repositories/snapshots/org/apache/jena/jena-tdb/0.10.0-SNAPSHOT/jena-tdb-0.10.0-SNAPSHOT.pom
(401 B at 0.5 KB/sec)
[WARNING] The POM for org.apache.jena:jena-tdb:jar:0.10.0-SNAPSHOT is
invalid, transitive dependencies (if any) will not be available, enable
debug logging for more details
Downloading:
https://repository.apache.org/content/repositories/releases/org/apache/jena/jena-tdb/0.10.0-SNAPSHOT/jena-tdb-0.10.0-SNAPSHOT.jar
Downloading:
http://repository.apache.org/content/repositories/snapshots/org/apache/jena/jena-tdb/0.10.0-SNAPSHOT/jena-tdb-0.10.0-SNAPSHOT.jar
[WARNING] Checksum validation failed, expected <!DOCTYPE but is
7575871f9c161d3792cdff22930ea5f83b52969f for
http://repository.apache.org/content/repositories/snapshots/org/apache/jena/jena-tdb/0.10.0-SNAPSHOT/jena-tdb-0.10.0-SNAPSHOT.jar
[WARNING] Checksum validation failed, expected <!DOCTYPE but is
7575871f9c161d3792cdff22930ea5f83b52969f for
http://repository.apache.org/content/repositories/snapshots/org/apache/jena/jena-tdb/0.10.0-SNAPSHOT/jena-tdb-0.10.0-SNAPSHOT.jar
Downloaded:
http://repository.apache.org/content/repositories/snapshots/org/apache/jena/jena-tdb/0.10.0-SNAPSHOT/jena-tdb-0.10.0-SNAPSHOT.jar
(401 B at 0.5 KB/sec)
...
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] error: error reading
/home/der/.m2/repository/org/apache/jena/jena-tdb/0.10.0-SNAPSHOT/jena-tdb-0.10.0-SNAPSHOT.jar;
error in opening zip file
[INFO] 1 error
]]]
I normally use m2e (v. 1.1.0.20120530-0009) under Eclipse (Juno) which
was giving a lot of mysterious errors. Only by wiping (the jena area of)
my maven repository and trying the command line could I see the above
error messages.
Dave
On 12/02/13 09:12, Andy Seaborne wrote:
We're gearing up for the Jena 2.10.0 and we'd like to ask for your help
testing it before the release.
This is not an incremental release and so we are especially asking for
feedback to make the transition as smooth a possible.
Key changes are:
* Reification - "Minimal" and "Convenient" styles have been removed.
* New RDF 1.1 Turtle parser tracking the developing standard
* A single maven artifact to include Jena in your maven project
* Changes to the way storage subsystems provide SPARQL Update
The snapshot repository is:
https://repository.apache.org/content/repositories/snapshots/org/apache/jena/
and the download is in directory apache-jena. Please use the latest
2.10.0-SNAPSHOT (there are nightly builds so 'latest' is down the bottom
if is more then one).
You can find out which version have by running the SPARQL script with
--version.
We have undertaken some internal simplification and while we are not
intending to cause change, we also recognize that some applications may
be depending on internal code in ways we don't know about.
We would most grateful for reports in the next 2 weeks of successful use
or any problems arising.
Andy
== apache-jena-libs
There is a new maven artifact to help applications by providing a single
maven artifact that include the main Jena modules.
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>apache-jena-libs</artifactId>
<type>pom</type>
<version>2.10.0</version>
</dependency>
Note the use of <type>pom</type>
BY using this artifact, applications will not be affected by any future
changes to the internal development module structure of Jena.
See
http://jena.staging.apache.org/download/maven.html
== RIOT Reader
There is a new RDF parser subsystem, which includes
* improved content negotiation
* the ability to register new parsers into Jena
* alignment to RDF 1.1 Turtle
* features apply when applications use model.read
http://jena.apache.org/documentation/io/index.html
The package name org.openjena.riot becomes org.apache.jena.riot.
There is some compatibility code in org.openjena.riot. Operations are
deprecated and will be removed after this release.
Call
org.apache.jena.riot.RIOT.init()
to ensure it is initialized if in doubt but it should automatically be
used by model.read.
Test:
model.read("data.ttl")
will read a local Turtle file.
== Streaming Update
The SPARQL Update engine has been re-architected to make the fundamental
execution of SPARQL Updates streamable.
There is no change to applications using SPARQL Update.
There are changes to the interface for storage systems that make special
provision for SPARQL Update. If you are migrating such a storage system,
do talk to the developers on [email protected] if you have any
questions or suggestions for improvements.
== Portuguese Translations of the tutorial
Guilherme Cavalcanti has provided a Portuguese translation of the
tutorials.
http://jena.staging.apache.org/tutorials/
== Reification
As part of simplifying Jena, the reification styles Convenient and
Minimal are being removed. These need a significant amount of internal
state management and impede scaling beyond storage in memory.
The only support style is "standard", which as always been the default
style in Jena. Only style "standard" has even been supported by TDB and
SDB.
Use of the constants for these styles is deprecated and will be treated
as "standard".
== Internal simplification
Other simplifications in this release include the removal of the graph
query handler subsystem. This is unrelated to SPARQL and existed in
support of RDQL.
The graph level bulk query handler has been removed - compatibility for
the Model API for all bulk update is maintained.