You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@marmotta.apache.org by Osma Suominen <os...@helsinki.fi> on 2016/09/22 07:58:42 UTC
Problems building Marmotta
Hi!
I'm evaluating Apache Marmotta for use as an LDP store for storing and
publishing bibliographic Linked Data at the National Library of Finland.
Our usage scenario is somewhat similar to that of DPLA. We would like to
store at least a million - possibly several million - small (50-100
triples) RDF documents, representing bibliographic metadata derived from
MARC records, in a triple store. Marmotta seems attractive because it
seems relatively simple (cf. Virtuoso which tries to do way too many
things in the same package!), supports LDP and SPARQL 1.1, and uses a
solid database (PostgreSQL) underneath.
I've done some initial tests using Marmotta 3.3.0 but I wanted to try
also the most recent development version since a 3.4.0 release seems to
be imminent. However, I have some problems building the development version.
Building the LDP module results in a test failure. Here is the output:
--snip--
Results :
Failed tests:
LdpWebServiceTest.testPUT:438 1 expectation failed.
Response body doesn't match expectation.
Expected: RDF/XML String (
to contain Statement(<http://localhost:9540/marmotta/ldp/x/PUT>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://example.com/Example>) and
to contain Statement(<http://localhost:9540/marmotta/ldp/x/PUT>
<http://www.w3.org/2000/01/rdf-schema#label> null) and not
to contain Statement(<http://localhost:9540/marmotta/ldp/x/PUT>
<http://www.w3.org/ns/ldp#contains>
<http://localhost:9540/marmotta/ldp/x/PUT>))
Actual: <?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:ldp="http://www.w3.org/ns/ldp#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:parent="http://localhost:9540/marmotta/ldp/x/"
xmlns:child="http://localhost:9540/marmotta/ldp/x/PUT/"
xmlns:this="http://localhost:9540/marmotta/ldp/x/PUT#">
<rdf:Description rdf:about="http://localhost:9540/marmotta/ldp/x/PUT">
<rdf:type rdf:resource="http://www.w3.org/ns/ldp#Resource"/>
<rdf:type rdf:resource="http://www.w3.org/ns/ldp#RDFSource"/>
<ldp:interactionModel rdf:resource="http://www.w3.org/ns/ldp#Container"/>
<rdf:type rdf:resource="http://www.w3.org/ns/ldp#Container"/>
<rdf:type rdf:resource="http://www.w3.org/ns/ldp#BasicContainer"/>
<dcterms:created
rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2016-09-22T10:37:18.585+03:00</dcterms:created>
<dcterms:modified
rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2016-09-22T10:37:18.834+03:00</dcterms:modified>
</rdf:Description>
</rdf:RDF>
Tests run: 8, Failures: 1, Errors: 0, Skipped: 0
--snip--
In an attempt to build Marmotta despite the test failure, I tried adding
the -DskipTests=true parameter. However, this time the build fails at
the Linked Data Query CLI module. As far as I can tell, this is the only
relevant error message:
[WARNING] The POM for
com.fasterxml.jackson.jr:jackson-jr-objects:jar:2.3.5 is missing, no
dependency information available
Downloading:
https://repository.apache.org/content/repositories/releases/com/fasterxml/jackson/jr/jackson-jr-objects/2.3.5/jackson-jr-objects-2.3.5.jar
Here are my build commands:
(cleared ~/.m2 just to be sure)
git clone git://git.apache.org/marmotta.git
git checkout develop
mvn clean package
mvn clean package -DskipTests=true
My system is Ubuntu 16.04 amd64.
Here's the output of mvn --version:
Apache Maven 3.3.9
Maven home: /usr/share/maven
Java version: 1.8.0_91, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: fi_FI, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-36-generic", arch: "amd64", family: "unix"
Am I doing something wrong?
Thanks in advance,
Osma
--
Osma Suominen
D.Sc. (Tech), Information Systems Specialist
National Library of Finland
P.O. Box 26 (Kaikukatu 4)
00014 HELSINGIN YLIOPISTO
Tel. +358 50 3199529
osma.suominen@helsinki.fi
http://www.nationallibrary.fi
Re: Problems building Marmotta
Posted by Michael Della Bitta <mi...@dp.la>.
Hi all,
For what it’s worth, I’m a new engineer at the DPLA looking at some performance problems we’re having with our Marmotta-based system, and I’m looking to do custom builds as well.
I’m having trouble building from HEAD as well. Having test failures in the EH Cache, Infinispan and Reasoner modules, both in Linux and OS X.
Also, it appears that the builds in Apache’s Jenkins and Travis are failing for other reasons:
https://builds.apache.org/job/Marmotta/966/console <https://builds.apache.org/job/Marmotta/966/console>
https://travis-ci.org/apache/marmotta <https://travis-ci.org/apache/marmotta>
Is there a recommended environment to do builds in aside from Java/Maven in terms of OS/versions?
Thanks,
Michael
> On Sep 22, 2016, at 10:40 AM, Osma Suominen <os...@helsinki.fi> wrote:
>
> Hi!
>
> 22.09.2016, 17:15, Sergio Fernández wrote:
>> Try to fetch the current HEAD of develop, we've fixed some minor issues
>> there.
>
> Thanks for the quick fixes!
>
> However, now the build fails at the "KiWi Triplestore: Reasoner" stage, with this test failure:
>
> Results :
>
> Failed tests:
> JustificationResolutionTest.testResolveBaseTriplesSingle:163 expected:<1> but was:<2>
>
> Tests run: 55, Failures: 1, Errors: 0, Skipped: 27
>
>
> I was able to complete the build using -DskipTests=true.
>
>> BTW, you do not need to depend at the source level, but you can easily
>> build your custom Marmotta launcher depending at the Maven level. This
>> is an example we built for a
>> tutorial: https://github.com/wikier/apache-marmotta-tutorial-iswc2014
>> <https://github.com/wikier/apache-marmotta-tutorial-iswc2014>
>
> Thanks, but at the moment, I'm mostly interested in deploying an unaltered Marmotta WAR on a Tomcat application server and then developing any custom parts by hooking into the LDP and SPARQL APIs of Marmotta. But this might change along the way.
>
> -Osma
>
> --
> Osma Suominen
> D.Sc. (Tech), Information Systems Specialist
> National Library of Finland
> P.O. Box 26 (Kaikukatu 4)
> 00014 HELSINGIN YLIOPISTO
> Tel. +358 50 3199529
> osma.suominen@helsinki.fi
> http://www.nationallibrary.fi
Re: Problems building Marmotta
Posted by Osma Suominen <os...@helsinki.fi>.
Hi!
22.09.2016, 17:15, Sergio Fern�ndez wrote:
> Try to fetch the current HEAD of develop, we've fixed some minor issues
> there.
Thanks for the quick fixes!
However, now the build fails at the "KiWi Triplestore: Reasoner" stage,
with this test failure:
Results :
Failed tests:
JustificationResolutionTest.testResolveBaseTriplesSingle:163
expected:<1> but was:<2>
Tests run: 55, Failures: 1, Errors: 0, Skipped: 27
I was able to complete the build using -DskipTests=true.
> BTW, you do not need to depend at the source level, but you can easily
> build your custom Marmotta launcher depending at the Maven level. This
> is an example we built for a
> tutorial: https://github.com/wikier/apache-marmotta-tutorial-iswc2014
> <https://github.com/wikier/apache-marmotta-tutorial-iswc2014>
Thanks, but at the moment, I'm mostly interested in deploying an
unaltered Marmotta WAR on a Tomcat application server and then
developing any custom parts by hooking into the LDP and SPARQL APIs of
Marmotta. But this might change along the way.
-Osma
--
Osma Suominen
D.Sc. (Tech), Information Systems Specialist
National Library of Finland
P.O. Box 26 (Kaikukatu 4)
00014 HELSINGIN YLIOPISTO
Tel. +358 50 3199529
osma.suominen@helsinki.fi
http://www.nationallibrary.fi
Re: Problems building Marmotta
Posted by Sergio Fernández <wi...@apache.org>.
Hi,
On Thu, Sep 22, 2016 at 9:58 AM, Osma Suominen <os...@helsinki.fi>
wrote:
>
> I'm evaluating Apache Marmotta for use as an LDP store for storing and
> publishing bibliographic Linked Data at the National Library of Finland.
> Our usage scenario is somewhat similar to that of DPLA. We would like to
> store at least a million - possibly several million - small (50-100
> triples) RDF documents, representing bibliographic metadata derived from
> MARC records, in a triple store. Marmotta seems attractive because it seems
> relatively simple (cf. Virtuoso which tries to do way too many things in
> the same package!), supports LDP and SPARQL 1.1, and uses a solid database
> (PostgreSQL) underneath.
>
Good to hear that :-)
> I've done some initial tests using Marmotta 3.3.0 but I wanted to try also
> the most recent development version since a 3.4.0 release seems to be
> imminent. However, I have some problems building the development version.
>
> Building the LDP module results in a test failure. Here is the output:
>
Try to fetch the current HEAD of develop, we've fixed some minor issues
there.
BTW, you do not need to depend at the source level, but you can easily
build your custom Marmotta launcher depending at the Maven level. This is
an example we built for a tutorial: https://github.com/
wikier/apache-marmotta-tutorial-iswc2014
Cheers,
--
Sergio Fernández
Partner Technology Manager
Redlink GmbH
m: +43 6602747925
e: sergio.fernandez@redlink.co
w: http://redlink.co