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

ASF GitHub Bot commented on JENA-1197:
--------------------------------------

Github user kinow commented on the issue:

    https://github.com/apache/jena/pull/188
  
    >Suggestion: we merge this as is, write a proposal on JENA-1197 that each 
call of a single file parse returns an object describing the outcome and 
exec$() aggregates the results into a final outcome, including setting the exit 
code.
    
    Yup, agree. Here's the output when running a command with one valid file, 
followed by invalid files.
    
    ```
    $ riot --validate /tmp/valid.ttl /tmp/invalid1.ttl /tmp/invalid2.ttl
    
    INFO  File: /tmp/valid.ttl
    INFO  File: /tmp/invalid1.ttl
    ERROR [line: 1, col: 4 ] Unrecognized: FDS
    ```
    
    The valid file is a cheeses ttl file found in Jena sources. The invalid 
file has some random data.
    
    ```
    cat /tmp/invalid.ttl 
    fdsfd
    ```
    
    Maybe we could merge and fix JENA-1197, then file a new issue to 
accommodate the more complete changes suggested in this pull request.


> riot command : provide exit codes when validating.
> --------------------------------------------------
>
>                 Key: JENA-1197
>                 URL: https://issues.apache.org/jira/browse/JENA-1197
>             Project: Apache Jena
>          Issue Type: Improvement
>            Reporter: Andy Seaborne
>            Assignee: Bruno P. Kinoshita
>
> See discussion on user@
> https://lists.apache.org/thread.html/f2ec45ff2ddf91b39270b2c23062b92af1817c8d0ac42af928cbdb5b@%3Cusers.jena.apache.org%3E



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

Reply via email to