NLP2RDF / software

Other
22 stars 12 forks source link

remove log output for CLI #3

Open kurzum opened 10 years ago

kurzum commented 10 years ago

the old component didn't have log messages if -o turtle was set: https://github.com/NLP2RDF/software/blob/master/java-maven/implementation/validator/src/main/java/org/nlp2rdf/implementation/validator/ValidateCLI.java#L45

This is so you can do ./validate.jar > result.ttl Maybe you can copy some stuff from here: https://github.com/NLP2RDF/software/blob/master/java-maven/core/jena/src/main/java/org/nlp2rdf/core/SPARQLValidator.java#L43

kurzum commented 10 years ago

One small hint, I just put the log messages on stderr so you can do:

production

java -jar validator-2.0.1-SNAPSHOT-jar-with-dependencies.jar -i ../../../core/jena/src/test/resources/nif-correct-model.ttl > results.ttl

debugging

java -jar validator-2.0.1-SNAPSHOT-jar-with-dependencies.jar -i ../../../core/jena/src/test/resources/nif-correct-model.ttl 2>log.txt