NLP2RDF / software

Other
22 stars 12 forks source link

Documentation to use validator directly with Maven not correct #1

Open der-bruemmer opened 10 years ago

der-bruemmer commented 10 years ago

In this paragraph: https://github.com/NLP2RDF/software#use-directly-with-maven, the command to start the validation is

mvn compile exec:java -e  -Dexec.mainClass="org.nlp2rdf.cli.Validate" -Dexec.args="-i src/test/resources/nif-erroneous-model.ttl -o turtle"

However, running it this way throws an exception:

Caused by: org.apache.jena.riot.RiotException: [line: 1, col: 4 ] Unknown char: /(47)
    at org.apache.jena.riot.system.ErrorHandlerFactory$ErrorHandlerStd.fatal(ErrorHandlerFactory.java:132)
    at org.apache.jena.riot.lang.LangEngine.raiseException(LangEngine.java:169)
    at org.apache.jena.riot.lang.LangEngine.nextToken(LangEngine.java:116)
    at org.apache.jena.riot.lang.LangTurtleBase.toplevelkeyword(LangTurtleBase.java:126)
    at org.apache.jena.riot.lang.LangTurtleBase.runParser(LangTurtleBase.java:105)
    at org.apache.jena.riot.lang.LangBase.parse(LangBase.java:42)
    at org.apache.jena.riot.RDFParserRegistry$ReaderRIOTFactoryImpl$1.read(RDFParserRegistry.java:148)
    at org.apache.jena.riot.RDFDataMgr.process(RDFDataMgr.java:751)
    at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:258)
    at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:244)
    at org.apache.jena.riot.adapters.RDFReaderRIOT.read(RDFReaderRIOT.java:65)
    at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:276)
    at com.hp.hpl.jena.ontology.impl.OntModelImpl.read(OntModelImpl.java:2243)
    at org.nlp2rdf.cli.ParameterParser.parseOptions(ParameterParser.java:177)
    at org.nlp2rdf.cli.Validate.main(Validate.java:47)

The error can be resolved by adding the parameter "-t file".

kurzum commented 10 years ago

I improved this a bit. I hope it will be better in a few days. RDFUnit is integrated now.