[ 
https://issues.apache.org/jira/browse/ANY23-219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15333161#comment-15333161
 ] 

Lewis John McGibbney commented on ANY23-219:
--------------------------------------------

I can honestly not reproduce this issue folks. I tried every possible output 
e.g. json, nquads, ntriples, rdfxml, trix, turtle, uri
{code}
lmcgibbn@LMC-032857 
/usr/local/any23/core/target/apache-any23-core-1.2-SNAPSHOT(ANY23-219) $ 
./bin/any23 rover -f nquads 
/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl

------------------------------------------------------------------------
Apache Any23 :: rover
------------------------------------------------------------------------

[2016-06-15 22:53:01,495] INFO     0[main] - 
org.apache.any23.rdf.PopularPrefixes.getPrefixes(PopularPrefixes.java:45) - 
Loading prefixes from /org/apache/any23/prefixes/prefixes.properties
[2016-06-15 22:53:01,521] INFO    26[main] - 
org.apache.any23.extractor.SingleDocumentExtraction.run(SingleDocumentExtraction.java:221)
 - Processing 
file:/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl
[2016-06-15 22:53:01,652] INFO   157[main] - 
org.apache.any23.cli.Rover.run(Rover.java:219) - Extractors used: []
[2016-06-15 22:53:01,652] INFO   157[main] - 
org.apache.any23.cli.Rover.run(Rover.java:220) - 0 triples, 140ms
<http://199.204.218.139/resource/image/MD_2933956> 
<http://xmlns.com/foaf/0.1/depicts> 
<http://199.204.218.139/resource/MD/MD_2933956> 
<file:/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl> .
<http://199.204.218.139/resource/MD/MD_2933956> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://xmlns.com/foaf/0.1/Person> 
<file:/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl> .
<http://199.204.218.139/resource/MD/MD_2933956> 
<http://www.w3.org/2000/01/rdf-schema#label> "LEROY WILKINS" 
<file:/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl> .
<http://199.204.218.139/resource/MD/MD_2933956> 
<http://www.w3.org/2000/01/rdf-schema#comment> "A registered sex offender in 
the state of Maryland." 
<file:/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl> .
<http://199.204.218.139/resource/MD/MD_2933956> 
<http://xmlns.com/foaf/0.1/gender> "Male" 
<file:/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl> .
<http://199.204.218.139/resource/MD/MD_2933956> 
<http://xmlns.com/foaf/0.1/family_name> "WILKINS" 
<file:/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl> .
<http://199.204.218.139/resource/MD/MD_2933956> 
<http://xmlns.com/foaf/0.1/givenname> "LEROY" 
<file:/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl> .

------------------------------------------------------------------------
Apache Any23 SUCCESS
Total time: 0s
Finished at: Wed Jun 15 22:53:01 PDT 2016
Final Memory: 50M/480M
------------------------------------------------------------------------
lmcgibbn@LMC-032857 
/usr/local/any23/core/target/apache-any23-core-1.2-SNAPSHOT(ANY23-219) $ 
./bin/any23 rover -f rdfxml 
/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl

------------------------------------------------------------------------
Apache Any23 :: rover
------------------------------------------------------------------------

[2016-06-15 22:53:27,922] INFO     0[main] - 
org.apache.any23.rdf.PopularPrefixes.getPrefixes(PopularPrefixes.java:45) - 
Loading prefixes from /org/apache/any23/prefixes/prefixes.properties
[2016-06-15 22:53:27,951] INFO    29[main] - 
org.apache.any23.extractor.SingleDocumentExtraction.run(SingleDocumentExtraction.java:221)
 - Processing 
file:/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl
[2016-06-15 22:53:28,073] INFO   151[main] - 
org.apache.any23.cli.Rover.run(Rover.java:219) - Extractors used: []
[2016-06-15 22:53:28,074] INFO   152[main] - 
org.apache.any23.cli.Rover.run(Rover.java:220) - 0 triples, 133ms
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
        xmlns:foaf="http://xmlns.com/foaf/0.1/";
        xmlns:ns1="http://199.204.218.139/resource/image/";
        xmlns:ns2="http://199.204.218.139/resource/MD/";
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>

<rdf:Description rdf:about="http://199.204.218.139/resource/image/MD_2933956";>
        <foaf:depicts 
rdf:resource="http://199.204.218.139/resource/MD/MD_2933956"/>
</rdf:Description>

<rdf:Description rdf:about="http://199.204.218.139/resource/MD/MD_2933956";>
        <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Person"/>
        <label xmlns="http://www.w3.org/2000/01/rdf-schema#";>LEROY 
WILKINS</label>
        <comment xmlns="http://www.w3.org/2000/01/rdf-schema#";>A registered sex 
offender in the state of Maryland.</comment>
        <foaf:gender>Male</foaf:gender>
        <foaf:family_name>WILKINS</foaf:family_name>
        <foaf:givenname>LEROY</foaf:givenname>
</rdf:Description>

</rdf:RDF>
------------------------------------------------------------------------
Apache Any23 SUCCESS
Total time: 0s
Finished at: Wed Jun 15 22:53:28 PDT 2016
Final Memory: 50M/480M
------------------------------------------------------------------------
lmcgibbn@LMC-032857 
/usr/local/any23/core/target/apache-any23-core-1.2-SNAPSHOT(ANY23-219) $ 
./bin/any23 rover -f trix 
/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl

------------------------------------------------------------------------
Apache Any23 :: rover
------------------------------------------------------------------------

[2016-06-15 22:54:10,683] INFO     0[main] - 
org.apache.any23.rdf.PopularPrefixes.getPrefixes(PopularPrefixes.java:45) - 
Loading prefixes from /org/apache/any23/prefixes/prefixes.properties
[2016-06-15 22:54:10,714] INFO    31[main] - 
org.apache.any23.extractor.SingleDocumentExtraction.run(SingleDocumentExtraction.java:221)
 - Processing 
file:/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl
[2016-06-15 22:54:10,839] INFO   156[main] - 
org.apache.any23.cli.Rover.run(Rover.java:219) - Extractors used: []
[2016-06-15 22:54:10,839] INFO   156[main] - 
org.apache.any23.cli.Rover.run(Rover.java:220) - 0 triples, 138ms
<?xml version='1.0' encoding='UTF-8'?>
<TriX xmlns='http://www.w3.org/2004/03/trix/trix-1/'>
        <graph>
                
<uri>file:/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl</uri>
                <triple>
                        
<uri>http://199.204.218.139/resource/image/MD_2933956</uri>
                        <uri>http://xmlns.com/foaf/0.1/depicts</uri>
                        <uri>http://199.204.218.139/resource/MD/MD_2933956</uri>
                </triple>
                <triple>
                        <uri>http://199.204.218.139/resource/MD/MD_2933956</uri>
                        
<uri>http://www.w3.org/1999/02/22-rdf-syntax-ns#type</uri>
                        <uri>http://xmlns.com/foaf/0.1/Person</uri>
                </triple>
                <triple>
                        <uri>http://199.204.218.139/resource/MD/MD_2933956</uri>
                        <uri>http://www.w3.org/2000/01/rdf-schema#label</uri>
                        <plainLiteral>LEROY WILKINS</plainLiteral>
                </triple>
                <triple>
                        <uri>http://199.204.218.139/resource/MD/MD_2933956</uri>
                        <uri>http://www.w3.org/2000/01/rdf-schema#comment</uri>
                        <plainLiteral>A registered sex offender in the state of 
Maryland.</plainLiteral>
                </triple>
                <triple>
                        <uri>http://199.204.218.139/resource/MD/MD_2933956</uri>
                        <uri>http://xmlns.com/foaf/0.1/gender</uri>
                        <plainLiteral>Male</plainLiteral>
                </triple>
                <triple>
                        <uri>http://199.204.218.139/resource/MD/MD_2933956</uri>
                        <uri>http://xmlns.com/foaf/0.1/family_name</uri>
                        <plainLiteral>WILKINS</plainLiteral>
                </triple>
                <triple>
                        <uri>http://199.204.218.139/resource/MD/MD_2933956</uri>
                        <uri>http://xmlns.com/foaf/0.1/givenname</uri>
                        <plainLiteral>LEROY</plainLiteral>
                </triple>
        </graph>
</TriX>

------------------------------------------------------------------------
Apache Any23 SUCCESS
Total time: 0s
Finished at: Wed Jun 15 22:54:10 PDT 2016
Final Memory: 50M/480M
------------------------------------------------------------------------
lmcgibbn@LMC-032857 
/usr/local/any23/core/target/apache-any23-core-1.2-SNAPSHOT(ANY23-219) $ 
./bin/any23 rover -f nquads 
/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl

------------------------------------------------------------------------
Apache Any23 :: rover
------------------------------------------------------------------------

[2016-06-15 22:54:24,513] INFO     0[main] - 
org.apache.any23.rdf.PopularPrefixes.getPrefixes(PopularPrefixes.java:45) - 
Loading prefixes from /org/apache/any23/prefixes/prefixes.properties
[2016-06-15 22:54:24,540] INFO    27[main] - 
org.apache.any23.extractor.SingleDocumentExtraction.run(SingleDocumentExtraction.java:221)
 - Processing 
file:/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl
[2016-06-15 22:54:24,674] INFO   161[main] - 
org.apache.any23.cli.Rover.run(Rover.java:219) - Extractors used: []
[2016-06-15 22:54:24,674] INFO   161[main] - 
org.apache.any23.cli.Rover.run(Rover.java:220) - 0 triples, 144ms
<http://199.204.218.139/resource/image/MD_2933956> 
<http://xmlns.com/foaf/0.1/depicts> 
<http://199.204.218.139/resource/MD/MD_2933956> 
<file:/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl> .
<http://199.204.218.139/resource/MD/MD_2933956> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://xmlns.com/foaf/0.1/Person> 
<file:/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl> .
<http://199.204.218.139/resource/MD/MD_2933956> 
<http://www.w3.org/2000/01/rdf-schema#label> "LEROY WILKINS" 
<file:/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl> .
<http://199.204.218.139/resource/MD/MD_2933956> 
<http://www.w3.org/2000/01/rdf-schema#comment> "A registered sex offender in 
the state of Maryland." 
<file:/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl> .
<http://199.204.218.139/resource/MD/MD_2933956> 
<http://xmlns.com/foaf/0.1/gender> "Male" 
<file:/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl> .
<http://199.204.218.139/resource/MD/MD_2933956> 
<http://xmlns.com/foaf/0.1/family_name> "WILKINS" 
<file:/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl> .
<http://199.204.218.139/resource/MD/MD_2933956> 
<http://xmlns.com/foaf/0.1/givenname> "LEROY" 
<file:/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl> .

------------------------------------------------------------------------
Apache Any23 SUCCESS
Total time: 0s
Finished at: Wed Jun 15 22:54:24 PDT 2016
Final Memory: 50M/480M
------------------------------------------------------------------------
lmcgibbn@LMC-032857 
/usr/local/any23/core/target/apache-any23-core-1.2-SNAPSHOT(ANY23-219) $ 
./bin/any23 rover -f json 
/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl

------------------------------------------------------------------------
Apache Any23 :: rover
------------------------------------------------------------------------

[2016-06-15 22:54:40,747] INFO     0[main] - 
org.apache.any23.rdf.PopularPrefixes.getPrefixes(PopularPrefixes.java:45) - 
Loading prefixes from /org/apache/any23/prefixes/prefixes.properties
[2016-06-15 22:54:40,775] INFO    28[main] - 
org.apache.any23.extractor.SingleDocumentExtraction.run(SingleDocumentExtraction.java:221)
 - Processing 
file:/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl
[2016-06-15 22:54:40,904] INFO   157[main] - 
org.apache.any23.cli.Rover.run(Rover.java:219) - Extractors used: []
[2016-06-15 22:54:40,904] INFO   157[main] - 
org.apache.any23.cli.Rover.run(Rover.java:220) - 0 triples, 140ms
{ "quads" : [[{ "type" : "uri", "value" : 
"http://199.204.218.139/resource/image/MD_2933956"}, 
"http://xmlns.com/foaf/0.1/depicts";, { "type" : "uri", "value" : 
"http://199.204.218.139/resource/MD/MD_2933956"}, null], [{ "type" : "uri", 
"value" : "http://199.204.218.139/resource/MD/MD_2933956"}, 
"http://www.w3.org/1999/02/22-rdf-syntax-ns#type";, { "type" : "uri", "value" : 
"http://xmlns.com/foaf/0.1/Person"}, null], [{ "type" : "uri", "value" : 
"http://199.204.218.139/resource/MD/MD_2933956"}, 
"http://www.w3.org/2000/01/rdf-schema#label";, {"type" : "literal", "value" : 
"LEROY WILKINS", "lang" : null, "datatype" : null}, null], [{ "type" : "uri", 
"value" : "http://199.204.218.139/resource/MD/MD_2933956"}, 
"http://www.w3.org/2000/01/rdf-schema#comment";, {"type" : "literal", "value" : 
"A registered sex offender in the state of Maryland.", "lang" : null, 
"datatype" : null}, null], [{ "type" : "uri", "value" : 
"http://199.204.218.139/resource/MD/MD_2933956"}, 
"http://xmlns.com/foaf/0.1/gender";, {"type" : "literal", "value" : "Male", 
"lang" : null, "datatype" : null}, null], [{ "type" : "uri", "value" : 
"http://199.204.218.139/resource/MD/MD_2933956"}, 
"http://xmlns.com/foaf/0.1/family_name";, {"type" : "literal", "value" : 
"WILKINS", "lang" : null, "datatype" : null}, null], [{ "type" : "uri", "value" 
: "http://199.204.218.139/resource/MD/MD_2933956"}, 
"http://xmlns.com/foaf/0.1/givenname";, {"type" : "literal", "value" : "LEROY", 
"lang" : null, "datatype" : null}, null]]}
------------------------------------------------------------------------
Apache Any23 SUCCESS
Total time: 0s
Finished at: Wed Jun 15 22:54:40 PDT 2016
Final Memory: 50M/480M
------------------------------------------------------------------------
lmcgibbn@LMC-032857 
/usr/local/any23/core/target/apache-any23-core-1.2-SNAPSHOT(ANY23-219) $ 
./bin/any23 rover -f ntriples 
/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl

------------------------------------------------------------------------
Apache Any23 :: rover
------------------------------------------------------------------------

[2016-06-15 22:54:56,397] INFO     0[main] - 
org.apache.any23.rdf.PopularPrefixes.getPrefixes(PopularPrefixes.java:45) - 
Loading prefixes from /org/apache/any23/prefixes/prefixes.properties
[2016-06-15 22:54:56,427] INFO    30[main] - 
org.apache.any23.extractor.SingleDocumentExtraction.run(SingleDocumentExtraction.java:221)
 - Processing 
file:/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl
[2016-06-15 22:54:56,560] INFO   163[main] - 
org.apache.any23.cli.Rover.run(Rover.java:219) - Extractors used: []
[2016-06-15 22:54:56,561] INFO   164[main] - 
org.apache.any23.cli.Rover.run(Rover.java:220) - 0 triples, 146ms
<http://199.204.218.139/resource/image/MD_2933956> 
<http://xmlns.com/foaf/0.1/depicts> 
<http://199.204.218.139/resource/MD/MD_2933956> .
<http://199.204.218.139/resource/MD/MD_2933956> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://xmlns.com/foaf/0.1/Person> .
<http://199.204.218.139/resource/MD/MD_2933956> 
<http://www.w3.org/2000/01/rdf-schema#label> "LEROY WILKINS" .
<http://199.204.218.139/resource/MD/MD_2933956> 
<http://www.w3.org/2000/01/rdf-schema#comment> "A registered sex offender in 
the state of Maryland." .
<http://199.204.218.139/resource/MD/MD_2933956> 
<http://xmlns.com/foaf/0.1/gender> "Male" .
<http://199.204.218.139/resource/MD/MD_2933956> 
<http://xmlns.com/foaf/0.1/family_name> "WILKINS" .
<http://199.204.218.139/resource/MD/MD_2933956> 
<http://xmlns.com/foaf/0.1/givenname> "LEROY" .

------------------------------------------------------------------------
Apache Any23 SUCCESS
Total time: 0s
Finished at: Wed Jun 15 22:54:56 PDT 2016
Final Memory: 50M/480M
------------------------------------------------------------------------
lmcgibbn@LMC-032857 
/usr/local/any23/core/target/apache-any23-core-1.2-SNAPSHOT(ANY23-219) $ 
./bin/any23 rover -f uri 
/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl

------------------------------------------------------------------------
Apache Any23 :: rover
------------------------------------------------------------------------

[2016-06-15 22:55:07,930] INFO     0[main] - 
org.apache.any23.rdf.PopularPrefixes.getPrefixes(PopularPrefixes.java:45) - 
Loading prefixes from /org/apache/any23/prefixes/prefixes.properties
[2016-06-15 22:55:07,959] INFO    29[main] - 
org.apache.any23.extractor.SingleDocumentExtraction.run(SingleDocumentExtraction.java:221)
 - Processing 
file:/usr/local/any23/test-resources/src/test/resources/rdf/rdf-issue183.ttl
http://199.204.218.139/resource/image/MD_2933956
http://199.204.218.139/resource/MD/MD_2933956
http://xmlns.com/foaf/0.1/Person
[2016-06-15 22:55:08,098] INFO   168[main] - 
org.apache.any23.cli.Rover.run(Rover.java:219) - Extractors used: []
[2016-06-15 22:55:08,098] INFO   168[main] - 
org.apache.any23.cli.Rover.run(Rover.java:220) - 0 triples, 151ms

------------------------------------------------------------------------
Apache Any23 SUCCESS
Total time: 0s
Finished at: Wed Jun 15 22:55:08 PDT 2016
Final Memory: 50M/480M
------------------------------------------------------------------------
{code}

> rover is does not work with -f nquads option
> --------------------------------------------
>
>                 Key: ANY23-219
>                 URL: https://issues.apache.org/jira/browse/ANY23-219
>             Project: Apache Any23
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.0
>         Environment: linux
>            Reporter: Szymon Danielczyk
>            Assignee: Peter Ansell
>             Fix For: 1.3
>
>
> Download the apache-any23-core-1.0.zip  
> unzip apache-any23-core-1.0.zip
> cd apache-any23-core-1.0
> ./bin/any23  rover -f nquads ~/crunchbase-35-selected-companies.nt > out.nq
> The following error is printed:
> Apache Any23 FAILURE
> Execution terminated with errors: Invalid output format 'nquads', admitted 
> values: [json, nquads, ntriples, rdfxml, trix, turtle, uri]
> Something is wrong as the error itself is printing that -f nquads is supported



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to