Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation to use validator directly with Maven not correct #1

Open
der-bruemmer opened this issue Feb 14, 2014 · 1 comment
Open
Assignees

Comments

@der-bruemmer
Copy link
Contributor

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
Copy link
Member

kurzum commented May 8, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants