Closed kurzum closed 10 years ago
yes this is a (minor) bug, you should clear your data/tests/Schema folder before you rerun or use the following CLI option: -ntc,--no-test-cache Do not load cached automatically generated test cases, regenerate them (Cached test cases are loaded by default)
Ah, yes sorry, I didn't read the options, I once did: time bin/rdfunit -h real 0m4.151s user 0m8.494s sys 0m0.300s
But I didn't wait the full 8 seconds before the help was displayed, because I assumed the tool was broken. This is related to #10
the delay is because of mvn install step. We discussed this some time ago but didn't get to fix it :)
fix here is to 1) skip caching if no tests are created 2) check file modification date
bin/rdfunit -d ../NLP2RDF/ontologies/nif-core/example.ttl -s ../NLP2RDF/ontologies/nif-core/nif-core.ttl
https://github.com/AKSW/RDFUnit/blob/master/rdfunit-core/src/main/java/org/aksw/rdfunit/sources/SchemaSource.java#L49
-> load ontology fails first, but results/tests is written with 0 tests -> on second run on CLI tests are loaded from cache