Help with RDFUnit as Library

50 views
Skip to first unread message

Andrea Agazzone

unread,
Mar 18, 2015, 8:27:17 AM3/18/15
to rdf...@googlegroups.com
Hi Dimitris,
I'm working with Anisa Rula and as you suggested, I write here my doubts.

I'm trying to integrate such tool into a Maven project. I followed your Wiki on Github, but honestly I was not been able to make it working.

First questions:
1) Which type of extensions it allows? Only .ttl or also other types (ex: .nt)?
2) Is it mandatory the use of Jena or I can use openRDF too?

Then.. 

When I initialize the main Wrapper I should pass as input the Schema and the dataset, correct?

After that I don't know how to go on, can you explain me the next steps briefly?

Thanks in advance.

Regards,
Andrea Agazzone.

Dimitris Kontokostas

unread,
Mar 19, 2015, 2:45:45 AM3/19/15
to Andrea Agazzone, rdfunit
Hi Andrea,

I would need more details on what documents you need to validate. 
Will all these documents be based on fixed ontology / ontologies or might change per document?

RDFUnit works with Jena but people used it with other libs as well
the problem in this case is that in order to communicate results between models one has to export and re-import to turtle strings, apart from that everything is fine

Best,
Dimitris

--
You received this message because you are subscribed to the Google Groups "RDFUnit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rdfunit+u...@googlegroups.com.
To post to this group, send email to rdf...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdfunit/f19b7363-5541-4eb9-8492-c55ba6dba9d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Kontokostas Dimitris

Dimitris Kontokostas

unread,
Mar 19, 2015, 2:46:34 AM3/19/15
to Andrea Agazzone, rdfunit
btw, We also allow any type of RDF serialization 
I will send you sample code once I get more details
--
Kontokostas Dimitris

Andrea Agazzone

unread,
Mar 19, 2015, 3:39:32 AM3/19/15
to rdf...@googlegroups.com
Hi Dimitris, about your question:
I need to validate some different datasets in order to evaluate their quality. Moreover I don't know what dataset will be given as input so I can't use a specific schema. I saw that the web-based demo allows the validation without a schema specified,so I'm looking for a solution like this, or is there a way to work with maven library without schema?

About openRDF, I think that maybe this is not a problem now, I can use Jena.

Best,
Andrea Agazzone.

Dimitris Kontokostas

unread,
Mar 19, 2015, 5:45:32 AM3/19/15
to Andrea Agazzone, rdfunit
Hi Andrea, a sample of such configuration can be found in the following file
https://github.com/mmlab/RMLValidator/blob/rdfunit/src/main/java/be/ugent/mmlab/rml/rdfunit/RDFUnitValidator.java

in this case the serialization format is fixed to turtle but you can change it to anything that jena accepts [1]
and can also adapt the reporting format (TestCaseExecutionType) according to [2].

Hope that helps

Dimitris



Andrea Agazzone.

--
You received this message because you are subscribed to the Google Groups "RDFUnit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rdfunit+u...@googlegroups.com.
To post to this group, send email to rdf...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Kontokostas Dimitris

Andrea Agazzone

unread,
Mar 19, 2015, 5:54:50 PM3/19/15
to rdf...@googlegroups.com
Good evening Dimitris,
I saw your links and I tried to implement the class, but I got errors.

This is my main java class:

protected void innerExecute() throws DPUException {
 
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();

 
String dpuDir = ctx.getExecMasterContext().getDpuContext().getDpuInstanceDirectory();
 
String rdfUnitDir = dpuDir +"rdfunit/"; // In your example is "dataFolder"

 
new File(rdfUnitDir).mkdirs();

 
String schema = classLoader.getResource("schema.csv").getPath(); // This is the path of your "schemaDecl.csv"
 
String dataset = "/Users/AndreAga/Documents/Sviluppo/Progetti/UnifiedViews/Datasets/FirenzeSinistri.rdf"; // Dataset URI

 
RDFUnitValidation dataValidator = new RDFUnitValidation(dataset, dataset, schema, rdfUnitDir);

 
String result = dataValidator.validate();
 
System.out.println(result);
}

and this is RDFUnitValidation:

public class RDFUnitValidation {

 
private String serializationFormat;
 
private RDFUnitConfiguration configuration;
 
private TestSuite testSuite;

 
public RDFUnitValidation(String datasetURI, String rdfDataFile, String schema, String dataFolder) {

 serializationFormat
= "TURTLE";

 
final TestCaseExecutionType testCaseExecutionType = TestCaseExecutionType.extendedTestCaseResult;

 
//RDFUnitUtils.fillSchemaServiceFromLOV(); <--- THIS IS OFFLINE (?)
 
RDFUnitUtils.fillSchemaServiceFromFile(schema);

 configuration
= new RDFUnitConfiguration(datasetURI, dataFolder);

 
// Set the source
 
File file = new File(rdfDataFile);

 configuration
.setCustomDereferenceURI(file.getAbsolutePath());
 configuration
.setTestCaseExecutionType(testCaseExecutionType);
 configuration
.setAutoSchemataFromQEF(configuration.getTestSource().getExecutionFactory(), true);

 
// Initialize RDFUnit
 org
.aksw.rdfunit.RDFUnit rdfUnit = new org.aksw.rdfunit.RDFUnit();
 
try {
 rdfUnit
.init();
 
} catch (RDFReaderException e) {
 
throw new RuntimeException("Cannot initialize RDFUnit");
 
}

 
// Generate TestSuite for current dataset
 
TestGeneratorExecutor testGeneratorExecutor = new TestGeneratorExecutor(
 configuration
.isAutoTestsEnabled(),
 configuration
.isTestCacheEnabled(),
 configuration
.isManualTestsEnabled());

 testSuite
= testGeneratorExecutor.generateTestSuite(
 configuration
.getTestFolder(),
 configuration
.getTestSource(),
 rdfUnit
.getAutoGenerators());
 
}

 
public String validate() {

 
final SimpleTestExecutorMonitor testExecutorMonitor = new SimpleTestExecutorMonitor(false);
 
final TestExecutor testExecutor = TestExecutorFactory.createTestExecutor(configuration.getTestCaseExecutionType());
 testExecutor
.addTestExecutorMonitor(testExecutorMonitor);
 
final TestSource testSource = configuration.getTestSource();
 testExecutor
.execute(testSource, testSuite);

 
//OutputStream to get the results as string
 
final ByteArrayOutputStream os = new ByteArrayOutputStream();
 
try {
 
new RDFStreamWriter(os, serializationFormat).write(testExecutorMonitor.getModel());
 
return os.toString();
 
} catch (RDFWriterException e) {
 
return null;
 
}
 
}
}


And this is the error I got:

[INFO  RDFUnitUtils] Loaded 12 schema declarations from: java.io.FileInputStream@7fee8714
[WARN  DatasetStatistics] Undefined namespace in LOV or schemaDecl.csv: http://www.w3.org/1999/02/22-rdf-syntax-ns#
[WARN  DatasetStatistics] Undefined namespace in LOV or schemaDecl.csv: http://linkeddata.comune.fi.it:8080/all/
[WARN  DatasetStatistics] Undefined namespace in LOV or schemaDecl.csv: http://linkeddata.comune.fi.it:8080/resource/data/
[WARN  DatasetStatistics] Undefined namespace in LOV or schemaDecl.csv: http://linkeddata.comune.fi.it:8080/
[WARN  DatasetStatistics] Undefined namespace in LOV or schemaDecl.csv: http://www.w3.org/2000/01/rdf-schema#
[WARN  DatasetStatistics] Undefined namespace in LOV or schemaDecl.csv: http://linkeddata.comune.fi.it:8080/resource/sinistri/
[ERROR AbstractDpu] DPU exeution failed!
eu.unifiedviews.dpu.DPUException: DPU.innerExecute throws throwable.
at eu.unifiedviews.helpers.dpu.exec.AbstractDpu.execute(AbstractDpu.java:125)
at cz.cuni.mff.xrg.odcs.dpu.test.TestEnvironment.run(TestEnvironment.java:365)
at eu.unifiedviews.plugins.quality.rdfunit.test.RDFUnitTest.executeTestCase(RDFUnitTest.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Caused by: java.lang.AssertionError
at org.aksw.rdfunit.tests.generators.TestGeneratorExecutor.<init>(TestGeneratorExecutor.java:60)
at eu.unifiedviews.plugins.quality.rdfunit.RDFUnitValidation.<init>(RDFUnitValidation.java:55)
at eu.unifiedviews.plugins.quality.rdfunit.RDFUnit.innerExecute(RDFUnit.java:109)
at eu.unifiedviews.helpers.dpu.exec.AbstractDpu.execute(AbstractDpu.java:117)
... 26 more

In bold there is the error message that would interest you and the line is 55 in RDFUnitValidation.java:

configuration.isManualTestsEnabled());

Do you know what it means? How can I fix It?
Moreover, I initialize RDFUnitValidation with the same dataset path for String datasetURI, String rdfDataFile, is it correct?

Thanks for your time.

Best,
Andrea Agazzone.

Andrea Agazzone

unread,
Mar 19, 2015, 6:18:27 PM3/19/15
to rdf...@googlegroups.com
I add this three lines to RDFUnitValidation:

configuration.setAutoTestsEnabled(false);
configuration
.setTestCacheEnabled(true);
configuration
.setManualTestsEnabled(false);

In order to fix the assert errors in TestGeneratorExecutor:

// no auto && no manual tests do not make sense
assert (!useAutoTests && !useManualTests);

// no auto && cache does not make sense TODO fix this
assert (!useAutoTests && loadFromCache);

Now it works, but I get:

[INFO  RDFUnitUtils] Loaded 12 schema declarations from: java.io.FileInputStream@7fee8714
[WARN  DatasetStatistics] Undefined namespace in LOV or schemaDecl.csv: http://www.w3.org/1999/02/22-rdf-syntax-ns#
[WARN  DatasetStatistics] Undefined namespace in LOV or schemaDecl.csv: http://linkeddata.comune.fi.it:8080/all/
[WARN  DatasetStatistics] Undefined namespace in LOV or schemaDecl.csv: http://linkeddata.comune.fi.it:8080/resource/data/
[WARN  DatasetStatistics] Undefined namespace in LOV or schemaDecl.csv: http://linkeddata.comune.fi.it:8080/
[WARN  DatasetStatistics] Undefined namespace in LOV or schemaDecl.csv: http://www.w3.org/2000/01/rdf-schema#
[WARN  DatasetStatistics] Undefined namespace in LOV or schemaDecl.csv: http://linkeddata.comune.fi.it:8080/resource/sinistri/
@prefix dsp:   <http://dublincore.org/dc-dsp#> .
@prefix schema: <http://schema.org/> .
@prefix owl:   <http://www.w3.org/2002/07/owl#> .
@prefix spin:  <http://spinrdf.org/spin#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix prov:  <http://www.w3.org/ns/prov#> .

rutr:1c940c20-2acc-11b2-802b-aed6edfb1580
        a                          rut:TestExecution , prov:Activity ;
        rut:source                 </Users/AndreAga/Documents/Sviluppo/Progetti/UnifiedViews/Datasets/FirenzeSinistri.rdf> ;
        rut:testsError             "0"^^xsd:nonNegativeInteger ;
        rut:testsFailed            "0"^^xsd:nonNegativeInteger ;
        rut:testsRun               "0"^^xsd:nonNegativeInteger ;
        rut:testsSuceedded         "0"^^xsd:nonNegativeInteger ;
        rut:testsTimeout           "0"^^xsd:nonNegativeInteger ;
        rut:totalIndividualErrors  "0"^^xsd:nonNegativeInteger ;
        prov:endedAtTime           "2015-03-19T22:15:58.421Z"^^xsd:dateTime ;
        prov:startedAtTime         "2015-03-19T22:15:58.421Z"^^xsd:dateTime ;
        prov:used                  ruts:1c940c21-2acc-11b2-802b-aed6edfb1580 ;
        prov:wasStartedBy          <http://localhost/> .

ruts:1c940c21-2acc-11b2-802b-aed6edfb1580
        a       prov:Collection , rut:TestSuite .

It seems no test has run.

Suggestions about that?

Thanks a lot.
Andrea Agazzone.

Dimitris Kontokostas

unread,
Mar 23, 2015, 11:08:17 AM3/23/15
to Andrea Agazzone, rdfunit
Hi Andrea, sorry for the late reply,

On Fri, Mar 20, 2015 at 12:18 AM, Andrea Agazzone <a.aga...@gmail.com> wrote:
I add this three lines to RDFUnitValidation:

configuration.setAutoTestsEnabled(false);
configuration
.setTestCacheEnabled(true);
configuration
.setManualTestsEnabled(false);


By default these are all true, if you switch them to false no tests will be generated so please switch back to true
 
In order to fix the assert errors in TestGeneratorExecutor:

// no auto && no manual tests do not make sense
assert (!useAutoTests && !useManualTests);

// no auto && cache does not make sense TODO fix this
assert (!useAutoTests && loadFromCache);

You are right, the assertion was wrong but strangely RDFUnit never complained before :/
I actually needed to assert that they should never be both false, which is exactly what you had to set :)
If you pull the latest version from github it will be fixed. Once you need a maven artifact I can generate a new release
 
Can you try again and let me know if it works?

Best,
Dimitris

--
You received this message because you are subscribed to the Google Groups "RDFUnit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rdfunit+u...@googlegroups.com.
To post to this group, send email to rdf...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Kontokostas Dimitris

Andrea Agazzone

unread,
Mar 23, 2015, 1:57:02 PM3/23/15
to rdf...@googlegroups.com
Thanks Dimitris, but I have the same error on a different line:

monitor.generationStarted(dataset, sources.size());

Error:

Caused by: java.lang.AssertionError
at org.aksw.rdfunit.tests.generators.TestGeneratorExecutor.<init>(TestGeneratorExecutor.java:63)

No other info available :/

P.S.: http://data.comsode.eu/it/dataset/schools-list here you can find the dataset I'm using..



Il giorno mercoledì 18 marzo 2015 13:27:17 UTC+1, Andrea Agazzone ha scritto:

Dimitris Kontokostas

unread,
Mar 24, 2015, 4:20:26 AM3/24/15
to Andrea Agazzone, rdfunit
Let's have another go :)

Comment the following lines (leave the default configuration)
configuration.setAutoTestsEnabled(false);
configuration
.setTestCacheEnabled(true);
configuration
.setManualTestsEnabled(false);

LOV is back online so uncomment
RDFUnitUtils.fillSchemaServiceFromLOV();

I adapted the following assertion so pull again, if you still get assertions, comment them locally, re-build and tell me if that fixes the problem

--
You received this message because you are subscribed to the Google Groups "RDFUnit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rdfunit+u...@googlegroups.com.
To post to this group, send email to rdf...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Kontokostas Dimitris

Andrea Agazzone

unread,
Mar 24, 2015, 2:19:50 PM3/24/15
to rdf...@googlegroups.com, a.aga...@gmail.com
Good evening Dimitris,
I tried and no other errors :) but with this line uncommented:

RDFUnitUtils.fillSchemaServiceFromLOV();

It doesn't work because the url refused my connection (or something like that). Are you sure the service is come back?

Anyway.. like above no tests have been produced:

[INFO  RDFUnitUtils] Loaded 12 schema declarations from: java.io.FileInputStream@7fee8714
[WARN  DatasetStatistics] Undefined namespace in LOV or schemaDecl.csv: 
[WARN  DatasetStatistics] Undefined namespace in LOV or schemaDecl.csv: http://www.w3.org/1999/02/22-rdf-syntax-ns#
[WARN  DatasetStatistics] Undefined namespace in LOV or schemaDecl.csv: http://schema.org/
[WARN  DatasetStatistics] Undefined namespace in LOV or schemaDecl.csv: http://www.w3.org/2000/01/rdf-schema#
[WARN  DatasetStatistics] Undefined namespace in LOV or schemaDecl.csv: http://xmlns.com/foaf/0.1/
[WARN  DatasetStatistics] Undefined namespace in LOV or schemaDecl.csv: http://comsode.disco.unimib.it/resource/dataset/scuole-infanzia-2010-2011/
rutr:1516fcb8-2acd-11b2-8039-a230238e106f
        a                          prov:Activity , rut:TestExecution ;
        rut:source                 </Users/AndreAga/Documents/Sviluppo/Progetti/UnifiedViews/Datasets/Scuole.ttl> ;
        rut:testsError             "0"^^xsd:nonNegativeInteger ;
        rut:testsFailed            "0"^^xsd:nonNegativeInteger ;
        rut:testsRun               "0"^^xsd:nonNegativeInteger ;
        rut:testsSuceedded         "0"^^xsd:nonNegativeInteger ;
        rut:testsTimeout           "0"^^xsd:nonNegativeInteger ;
        rut:totalIndividualErrors  "0"^^xsd:nonNegativeInteger ;
        prov:endedAtTime           "2015-03-24T18:04:51.506Z"^^xsd:dateTime ;
        prov:startedAtTime         "2015-03-24T18:04:51.506Z"^^xsd:dateTime ;
        prov:used                  ruts:1516fcb9-2acd-11b2-8039-a230238e106f ;
        prov:wasStartedBy          <http://localhost/> .

ruts:1516fcb9-2acd-11b2-8039-a230238e106f
        a       prov:Collection , rut:TestSuite .

I'm working outside the RDFUnit folder and I don't know if this tool requires other own files or not. I saw that in RDFUnit/data folder there are files like autoGeneratorsOWL.ttl.default and pattern.ttl.default, are they required?
Please let me know. 

Thanks a lot :)

Best,
Andrea Agazzone.

Dimitris Kontokostas

unread,
Mar 25, 2015, 5:33:12 AM3/25/15
to Andrea Agazzone, rdfunit
I need to remove the LOV dependency, they keep changing the endpoint URI and leads to trouble.

I committed an update on this so it should work now.
The reason you get no results is because the namespaces used in the data cannot be identified

[WARN  DatasetStatistics] Undefined namespace in LOV or schemaDecl.csv: http://www.w3.org/1999/02/22-rdf-syntax-ns#
[WARN  DatasetStatistics] Undefined namespace in LOV or schemaDecl.csv: http://schema.org/
[WARN  DatasetStatistics] Undefined namespace in LOV or schemaDecl.csv: http://www.w3.org/2000/01/rdf-schema#
[WARN  DatasetStatistics] Undefined namespace in LOV or schemaDecl.csv: http://xmlns.com/foaf/0.1/
[WARN  DatasetStatistics] Undefined namespace in LOV or schemaDecl.csv: http://comsode.disco.unimib.it/resource/dataset/scuole-infanzia-2010-2011/

Although it should work now with the new LOV endpoint, as a workaround for the future you can place the namespaces you plan to use directly in the schemaDecl.csv file

Let me know if you have any problem again

Dimitris

--
You received this message because you are subscribed to the Google Groups "RDFUnit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rdfunit+u...@googlegroups.com.
To post to this group, send email to rdf...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Kontokostas Dimitris

Andrea Agazzone

unread,
Mar 25, 2015, 5:55:17 AM3/25/15
to rdf...@googlegroups.com, a.aga...@gmail.com
Hi Dimitris,
Ok now it "works". LOV works and some tests are generated, but another error is here:

[WARN  DatasetStatistics] Undefined namespace in LOV or schemaDecl.csv: 
[WARN  DatasetStatistics] Undefined namespace in LOV or schemaDecl.csv: http://comsode.disco.unimib.it/resource/dataset/scuole-infanzia-2010-2011/
[INFO  TestGeneratorExecutor] Generating tests for: http://schema.org/
[INFO  TestGeneratorExecutor] http://schema.org/ contains 1380 automatically created tests
[INFO  TestGeneratorExecutor] Generating tests for: http://xmlns.com/foaf/0.1/

...
Caused by: java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonFactory.requiresPropertyOrdering()Z
at com.fasterxml.jackson.databind.ObjectMapper.<init>(ObjectMapper.java:445)
at com.fasterxml.jackson.databind.ObjectMapper.<init>(ObjectMapper.java:366)
at com.github.jsonldjava.utils.JsonUtils.<clinit>(JsonUtils.java:37)
at org.apache.jena.riot.lang.JsonLDReader.read(JsonLDReader.java:76)
at org.apache.jena.riot.RDFDataMgr.process(RDFDataMgr.java:906)
at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:257)
at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:243)
at org.apache.jena.riot.adapters.RDFReaderRIOT_Web.read(RDFReaderRIOT_Web.java:96)
at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:235)
at com.hp.hpl.jena.ontology.impl.OntModelImpl.readDelegate(OntModelImpl.java:3107)
at com.hp.hpl.jena.ontology.impl.OntModelImpl.read(OntModelImpl.java:2198)
at com.hp.hpl.jena.ontology.impl.OntModelImpl.read(OntModelImpl.java:2122)
at org.aksw.rdfunit.io.reader.RDFDereferenceReader.read(RDFDereferenceReader.java:33)
at org.aksw.rdfunit.io.reader.RDFFirstSuccessReader.read(RDFFirstSuccessReader.java:36)
at org.aksw.rdfunit.sources.SchemaSource.initQueryFactory(SchemaSource.java:72)
at org.aksw.rdfunit.sources.Source.getExecutionFactory(Source.java:113)
at org.aksw.rdfunit.tests.TestAutoGenerator.generate(TestAutoGenerator.java:94)
at org.aksw.rdfunit.Utils.TestGeneratorUtils.instantiateTestsFromAG(TestGeneratorUtils.java:93)
at org.aksw.rdfunit.tests.generators.TestGeneratorExecutor.generateAutoTestsForSchemaSource(TestGeneratorExecutor.java:146)
at org.aksw.rdfunit.tests.generators.TestGeneratorExecutor.generateTestSuite(TestGeneratorExecutor.java:105)
at eu.unifiedviews.plugins.quality.rdfunit.RDFUnitValidation.<init>(RDFUnitValidation.java:57)
at eu.unifiedviews.plugins.quality.rdfunit.RDFUnit.innerExecute(RDFUnit.java:70)
at eu.unifiedviews.helpers.dpu.exec.AbstractDpu.execute(AbstractDpu.java:117)
... 26 more
...

Message has been deleted

Andrea Agazzone

unread,
Mar 25, 2015, 6:19:53 AM3/25/15
to rdf...@googlegroups.com, a.aga...@gmail.com
With another dataset I got:

[INFO  TestGeneratorExecutor] Generating tests for: http://purl.org/dc/terms/
[INFO  TestGeneratorExecutor] http://purl.org/dc/terms/ contains 73 automatically created tests
[INFO  TestGeneratorExecutor] Generating tests for: http://purl.org/dc/elements/1.1/
[INFO  TestGeneratorExecutor] http://purl.org/dc/elements/1.1/ contains 0 automatically created tests
[INFO  TestGeneratorExecutor] Generating tests for: http://www.w3.org/2004/02/skos/core#
[INFO  TestGeneratorExecutor] http://www.w3.org/2004/02/skos/core# contains 43 automatically created tests
[INFO  TestGeneratorExecutor] http://www.w3.org/2004/02/skos/core# contains 16 manually created tests
[INFO  TestGeneratorExecutor] Generating tests for: http://creativecommons.org/ns#
[INFO  TestGeneratorExecutor] http://creativecommons.org/ns# contains 33 automatically created tests
[INFO  TestGeneratorExecutor] Generating tests for: http://rdfs.org/ns/void#
[INFO  TestGeneratorExecutor] http://rdfs.org/ns/void# contains 89 automatically created tests
[INFO  TestGeneratorExecutor] Generating tests for: http://rdf.myexperiment.org/ontologies/base/
[INFO  TestGeneratorExecutor] http://rdf.myexperiment.org/ontologies/base/ contains 466 automatically created tests
[INFO  TestGeneratorExecutor] Generating tests for: http://zbw.eu/namespaces/zbw-extensions/
[INFO  TestGeneratorExecutor] http://zbw.eu/namespaces/zbw-extensions/ contains 2 automatically created tests

So I think that the problem is only (maybe?) with http://xmlns.com/foaf/0.1/.

Regards,
Andrea Agazzone.

Dimitris Kontokostas

unread,
Mar 25, 2015, 7:01:50 AM3/25/15
to Andrea Agazzone, rdfunit
new errors mean progress ;)

I've seen this before, there is a transitive dependency to an older version of com.fasterxml.jackson that does not declare the correct interface jena uses
Caused by: java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonFactory.requiresPropertyOrdering()Z

In my case I manually declared 'com.fasterxml.jackson' in my pom.xml and worked

<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-core</artifactId>
    <version>2.3.3</version>
</dependency>

--
You received this message because you are subscribed to the Google Groups "RDFUnit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rdfunit+u...@googlegroups.com.
To post to this group, send email to rdf...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Kontokostas Dimitris

Andrea Agazzone

unread,
Mar 25, 2015, 7:54:41 AM3/25/15
to rdf...@googlegroups.com, a.aga...@gmail.com
Oh great, thanks a lot Dimitris. Now all works correctly. That's all (for now :)).

Best,
Andrea Agazzone.


Reply all
Reply to author
Forward
0 new messages