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

Andy Seaborne commented on JENA-594:
------------------------------------

rdfcat is retired and replaced by "riot".  

rdfcat now says

{noformat}
------------------------------------------------------------------
   DEPRECATED: Please use 'riot' instead.
     http://jena.apache.org/documentation/io/#command-line-tools
------------------------------------------------------------------
{noformat}

so closing this but please do reopen with new information.

> rdfcat silently ignores - as stdin if input type isn't specified
> ----------------------------------------------------------------
>
>                 Key: JENA-594
>                 URL: https://issues.apache.org/jira/browse/JENA-594
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Cmd line tools
>    Affects Versions: Jena 2.11.0
>            Reporter: Joshua Taylor
>            Assignee: Andy Seaborne
>            Priority: Minor
>              Labels: rdfcat, riot
>             Fix For: Jena 2.13.0
>
>
> Treatment of content from standard in by - and /dev/stdin differs when format 
> is not specified.
> Using -, non RDF/XML content is silently ignored.  Specifying -n gets it 
> treated correctly.
> {noformat}
> $ echo '<s> <p> <o>' | rdfcat -
> <rdf:RDF
>     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>
> </rdf:RDF>
> $ echo '<s> <p> <o>' | rdfcat -n -
> <rdf:RDF
>     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
>     xmlns:j.0="file:///home/taylorj/tmp/">
>   <rdf:Description rdf:about="file:///home/taylorj/tmp/s">
>     <j.0:p rdf:resource="file:///home/taylorj/tmp/o"/>
>   </rdf:Description>
> </rdf:RDF>
> {noformat}
> -n with /dev/stdin works, too.  Using /dev/stdin with no format option blows 
> up, though.  (It's not silently ignored like - was)
> {noformat}
> $ echo '<s> <p> <o>' | rdfcat -n /dev/stdin 
> <rdf:RDF
>     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
>     xmlns:j.0="file:///dev/">
>   <rdf:Description rdf:about="file:///dev/s">
>     <j.0:p rdf:resource="file:///dev/o"/>
>   </rdf:Description>
> </rdf:RDF>
> $ echo '<s> <p> <o>' | rdfcat /dev/stdin 
> 11:46:21 WARN  riot                 :: {W104} Unqualified typed nodes are not 
> allowed. Type treated as a relative URI.
> 11:46:21 WARN  riot                 :: {W136} Relative URIs are not permitted 
> in RDF: specifically <s>
> 11:46:21 WARN  riot                 :: {W104} Unqualified property elements 
> are not allowed. Treated as a relative URI.
> 11:46:21 WARN  riot                 :: {W136} Relative URIs are not permitted 
> in RDF: specifically <p>
> 11:46:21 WARN  riot                 :: {W104} Unqualified typed nodes are not 
> allowed. Type treated as a relative URI.
> 11:46:21 WARN  riot                 :: {W136} Relative URIs are not permitted 
> in RDF: specifically <o>
> 11:46:21 ERROR riot                 :: XML document structures must start and 
> end within the same entity.
> Exception in thread "main" org.apache.jena.riot.RiotException: XML document 
> structures must start and end within the same entity.
>         at 
> org.apache.jena.riot.system.ErrorHandlerFactory$ErrorHandlerStd.fatal(ErrorHandlerFactory.java:136)
> …
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to