Hi guys,

Once I installed any23 CLI in my local windows machine. There was a similar
slf4j error that I fixed by adding an extra jar *slf4j-simple-1.7.5.jar* in
the jar folder and adding it to any23.bat > set CLASSPATH. You may want to
do the same ( may be add it to any23.sh if you're linux/mac) to get it
fixed.

On Thursday 9 June 2016, William L. Anderson <[email protected]> wrote:

> Wouter, I am a new user of any23 and I have run into some of these same
> errors. Here are my own observations inline with yours.
>
> Bill Anderson
>
> > On Jun 9, 2016, at 6:16 AM, Wouter Beek <[email protected]> wrote:
> >
> > Hi Any23 maintainers,
> >
> > I'm trying to install from Git master.  I've come across the following
> > issues:
> >
> > 1. I had to add `<skipTests>true</skipTests>` to the Surefire plugin
> > configuration in `pom.xml` in order to suppress the test-related errors
> in
> > `mvn clean install`.  Maybe these tests could be put behind `mvn test` so
> > that the casual user who compiles from sources does not have to bother
> with
> > them?  (The tests also print a _lot_ of stuff to user output.  Not all of
> > it seems useful under the default verbosity level.)
>
> I did NOT install from Git master, so have no experience here.
>
> >
> > 2. Since my distro comes with JDK 1.8 (and switching JDK versions has
> > always been somewhat of a Black Art for me) I had to remove
> > `-XX:PermSize=128m` from the `<extraJvmArguments>` setting in `pom.xml`.
> > This JVM feature is no longer supported in Java 8, aparently.
>
> I am on OSX 'El Capitan' and I am using jdk1.8. I have the
> EXTRA_JVM_ARGUMENTS in my shell environment. This does not seem to affect
> operation in any way. (Hmmm ... I'll take it out and see.)
> >
> > 3. When I run `bin/any23` from the core package I always see the
> following
> > at the top of user output:
> >
> >     SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> >     SLF4J: Defaulting to no-operation (NOP) logger implementation
> >     SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
> > further details.
> >
> > To me this seems as if a default setup for the logging infrastructure is
> > currently missing?
>
> I see this error also. I just ignore it.
> >
> > 4. The help flag does not seem to work for me in the CLI:
> >
> >     $ any23 rover -h
> >     SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> >     SLF4J: Defaulting to no-operation (NOP) logger implementation
> >     SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
> > further details.
> >     Exception in thread "main" com.beust.jcommander.ParameterException:
> > Unknown option: -h
> >         at
> com.beust.jcommander.JCommander.parseValues(JCommander.java:735)
> >         at com.beust.jcommander.JCommander.parse(JCommander.java:279)
> >         at com.beust.jcommander.JCommander.parse(JCommander.java:262)
> >         at
> com.beust.jcommander.JCommander.parseValues(JCommander.java:780)
> >         at com.beust.jcommander.JCommander.parse(JCommander.java:279)
> >         at com.beust.jcommander.JCommander.parse(JCommander.java:262)
> >         at org.apache.any23.cli.ToolRunner.execute(ToolRunner.java:96)
> >         at org.apache.any23.cli.ToolRunner.main(ToolRunner.java:69)
> >
> > Has something gone wrong during Maven install / can others reproduce this
> > error?
>
> I also get this error.
> But   $ any23 -h
> does produce help output.
> >
> > 5. I am not able to parse an RDF document using the CLI Rover.  Example:
> >
> >     $ any23 rover -e rdf-jsonld example1.json
> >     SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> >     SLF4J: Defaulting to no-operation (NOP) logger implementation
> >     SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
> > further details.
> >
>  ------------------------------------------------------------------------
> >     Apache Any23 :: rover
> >
>  ------------------------------------------------------------------------
> >     { "quads" : []}
> >
>  ------------------------------------------------------------------------
> >     Apache Any23 FAILURE
> >     Execution terminated with errors: No suitable extractors found for
> > source org.apache.any23.source.FileDocumentSource@6b4a4e18
> >
> > Can this be reproduced by someone else or did I make a mistake along the
> > Maven route?
>
> I can reproduce this error. However I can successfully execute the
> following using as input a simple foaf file in rdf format:
>
>
>  any23
>  any23 rover ../semanticLab/wla.rdf
>  any23 rover -f ntriples ../semanticLab/wla.rdf
>
>  any23 rover -f json ../semanticLab/wla.rdf
>
>  any23 rover -f ntriples ../semanticLab/wla.rdf
>
>  any23 rover -f rdfxml ../semanticLab/wla.rdf
>
>  any23 rover -f trix ../semanticLab/wla.rdf
>
>  any23 rover -f turtle ../semanticLab/wla.rdf
>
>  any23 rover -f uri ../semanticLab/wla.rdf
>
> What does NOT work is requesting "rover -f nquads".
> As far as I can tell the nquads part of any23 does not work at all. There
> is an outstanding Jira issue on failure to output nquads even though the
> error statement claims "nquads" is a legal output type:
>   https://issues.apache.org/jira/browse/ANY23-219 [ you need an Apache
> Jira login to see this ]
>
> There are some other issues I intend to file.
>
> >
> > Thanks for into to my issues!
> >
> > ---
> > Cheers,
> > Wouter Beek.
>
>

Reply via email to