Hi Rupert,

I'll look into it. Right now I've reached the point of reproducing the issue (btw we should update README etc. to stress that the trunk no longer builds on Java6). I'll get to the code soon

Alessandro



On 28/08/2014 14:46, Rupert Westenthaler wrote:
Hi Alessandro, all

I have done similar fixes to some other OntologyManager modules.
However for the Ontologymanager Registry module it seams that there is
also an other problem as this fix alone [1] seams not to resolve all
the failing tests. After the fix [1] two unit tests are still in
error.

Would be good if you can have a look.

best
Rupert

[1] http://svn.apache.org/r1621135

On Thu, Aug 28, 2014 at 3:16 PM, Rupert Westenthaler
<rupert.westentha...@gmail.com> wrote:
Hi all,

After some try and error, I finally found the issue. The newest
Clerezza version does no longer support

     private Parser parser = new Parser();
     parser.bindParsingProvider(new JenaParserProvider())

outside of OSGI one has to use

     private Parser parser = Parser.getInstance();

This method will use the ServiceLoader utility to initialize a parser
instance with all serializers available in the classpath.

Committed a fix with [1]

best
Rupert


[1] http://svn.apache.org/r1621131



On Tue, Aug 26, 2014 at 4:15 PM, Alessandro Adamou
<alessandro.ada...@studio.unibo.it> wrote:
I will look into that, but it seems that for some reason the unit tests can
no longer access the Clerezza RDF/XML parser for guessing OWL ontology IDs.

Alessandro



On 26/08/2014 14:55, Andreas Kuckartz wrote:
Can anyone reproduce these issues?

Cheers,
Andreas

-------------------------------------------------------
   T E S T S
-------------------------------------------------------
Running org.apache.stanbol.commons.owl.util.TestOWLUtils
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
further details.
looking for QE
Tests run: 8, Failures: 6, Errors: 2, Skipped: 0, Time elapsed: 0.33 sec
<<< FAILURE! - in org.apache.stanbol.commons.owl.util.TestOWLUtils

lookaheadVersionedDistance100(org.apache.stanbol.commons.owl.util.TestOWLUtils)
   Time elapsed: 0.038 sec  <<< FAILURE!
java.lang.AssertionError:
expected:<<http://stanbol.apache.org/ontologies/test>> but
was:<Anonymous-1>
          at org.junit.Assert.fail(Assert.java:88)
          at org.junit.Assert.failNotEquals(Assert.java:743)
          at org.junit.Assert.assertEquals(Assert.java:118)
          at org.junit.Assert.assertEquals(Assert.java:144)
          at

org.apache.stanbol.commons.owl.util.TestOWLUtils.lookaheadVersionedDistance100(TestOWLUtils.java:162)

lookaheadVersioned(org.apache.stanbol.commons.owl.util.TestOWLUtils)
Time elapsed: 0.003 sec  <<< FAILURE!
java.lang.AssertionError: null
          at org.junit.Assert.fail(Assert.java:86)
          at org.junit.Assert.assertTrue(Assert.java:41)
          at org.junit.Assert.assertFalse(Assert.java:64)
          at org.junit.Assert.assertFalse(Assert.java:74)
          at

org.apache.stanbol.commons.owl.util.TestOWLUtils.lookaheadVersioned(TestOWLUtils.java:127)

lookaheadNamed(org.apache.stanbol.commons.owl.util.TestOWLUtils)  Time
elapsed: 0.009 sec  <<< FAILURE!
java.lang.AssertionError: null
          at org.junit.Assert.fail(Assert.java:86)
          at org.junit.Assert.assertTrue(Assert.java:41)
          at org.junit.Assert.assertFalse(Assert.java:64)
          at org.junit.Assert.assertFalse(Assert.java:74)
          at

org.apache.stanbol.commons.owl.util.TestOWLUtils.lookaheadNamed(TestOWLUtils.java:86)

namedUriRef(org.apache.stanbol.commons.owl.util.TestOWLUtils)  Time
elapsed: 0.023 sec  <<< ERROR!

org.apache.clerezza.rdf.core.serializedform.UnsupportedParsingFormatException:
No parser available for application/rdf+xml
          at
org.apache.clerezza.rdf.core.serializedform.Parser.parse(Parser.java:238)
          at

org.apache.stanbol.commons.owl.util.TestOWLUtils.namedUriRef(TestOWLUtils.java:221)

namelessUriRef(org.apache.stanbol.commons.owl.util.TestOWLUtils)  Time
elapsed: 0.007 sec  <<< ERROR!

org.apache.clerezza.rdf.core.serializedform.UnsupportedParsingFormatException:
No parser available for application/rdf+xml
          at
org.apache.clerezza.rdf.core.serializedform.Parser.parse(Parser.java:238)
          at

org.apache.stanbol.commons.owl.util.TestOWLUtils.namelessUriRef(TestOWLUtils.java:232)


lookaheadVersionedDistance100Reversed(org.apache.stanbol.commons.owl.util.TestOWLUtils)
   Time elapsed: 0.002 sec  <<< FAILURE!
java.lang.AssertionError: null
          at org.junit.Assert.fail(Assert.java:86)
          at org.junit.Assert.assertTrue(Assert.java:41)
          at org.junit.Assert.assertFalse(Assert.java:64)
          at org.junit.Assert.assertFalse(Assert.java:74)
          at

org.apache.stanbol.commons.owl.util.TestOWLUtils.lookaheadVersionedDistance100Reversed(TestOWLUtils.java:192)


lookaheadVersionedImmediate(org.apache.stanbol.commons.owl.util.TestOWLUtils)
   Time elapsed: 0.007 sec  <<< FAILURE!
java.lang.AssertionError:

expected:<<http://stanbol.apache.org/ontologies/test><http://svn.apache.org/repos/asf/incubator/stanbol/trunk/commons/owl/src/test/resources/owl/versioned_immediate.owl>>
but was:<Anonymous-8>
          at org.junit.Assert.fail(Assert.java:88)
          at org.junit.Assert.failNotEquals(Assert.java:743)
          at org.junit.Assert.assertEquals(Assert.java:118)
          at org.junit.Assert.assertEquals(Assert.java:144)
          at

org.apache.stanbol.commons.owl.util.TestOWLUtils.lookaheadVersionedImmediate(TestOWLUtils.java:211)

lookaheadNamedImmediate(org.apache.stanbol.commons.owl.util.TestOWLUtils)
Time elapsed: 0.003 sec  <<< FAILURE!
java.lang.AssertionError:
expected:<<http://stanbol.apache.org/ontologies/test>> but
was:<Anonymous-9>
          at org.junit.Assert.fail(Assert.java:88)
          at org.junit.Assert.failNotEquals(Assert.java:743)
          at org.junit.Assert.assertEquals(Assert.java:118)
          at org.junit.Assert.assertEquals(Assert.java:144)
          at

org.apache.stanbol.commons.owl.util.TestOWLUtils.lookaheadNamedImmediate(TestOWLUtils.java:102)

Running org.apache.stanbol.commons.owl.util.TestUriUtils
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017
sec - in org.apache.stanbol.commons.owl.util.TestUriUtils
Running org.apache.stanbol.commons.owl.RunSingleSPARQLTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.669
sec - in org.apache.stanbol.commons.owl.RunSingleSPARQLTest
Running

org.apache.stanbol.commons.owl.transformation.OWLAPIToClerezzaConverterTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.159
sec - in

org.apache.stanbol.commons.owl.transformation.OWLAPIToClerezzaConverterTest
Running
org.apache.stanbol.commons.owl.transformation.JenaToClerezzaConverterTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.052
sec - in
org.apache.stanbol.commons.owl.transformation.JenaToClerezzaConverterTest

Results :

Failed tests:
    TestOWLUtils.lookaheadVersionedDistance100:162
expected:<<http://stanbol.apache.org/ontologies/test>> but
was:<Anonymous-1>
    TestOWLUtils.lookaheadVersioned:127 null
    TestOWLUtils.lookaheadNamed:86 null
    TestOWLUtils.lookaheadVersionedDistance100Reversed:192 null
    TestOWLUtils.lookaheadVersionedImmediate:211

expected:<<http://stanbol.apache.org/ontologies/test><http://svn.apache.org/repos/asf/incubator/stanbol/trunk/commons/owl/src/test/resources/owl/versioned_immediate.owl>>
but was:<Anonymous-8>
    TestOWLUtils.lookaheadNamedImmediate:102
expected:<<http://stanbol.apache.org/ontologies/test>> but
was:<Anonymous-9>

Tests in error:
    TestOWLUtils.namedUriRef:221 » UnsupportedParsingFormat No parser
available fo...
    TestOWLUtils.namelessUriRef:232 » UnsupportedParsingFormat No parser
available...

Tests run: 20, Failures: 6, Errors: 2, Skipped: 0

.



--
| Rupert Westenthaler             rupert.westentha...@gmail.com
| Bodenlehenstraße 11                              ++43-699-11108907
| A-5500 Bischofshofen
| REDLINK.CO 
..........................................................................
| http://redlink.co/



Reply via email to