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

Andy Seaborne edited comment on JENA-1188 at 6/6/16 1:55 PM:
-------------------------------------------------------------

The test is necessary in some form - writing a dataset to Turtle (triples only) 
only dumps the default graph.  That is the situation I ran into and added the 
test to stop that error.  TriG nowadays prints the default graph Turtle style 
(JENA-1179).

I prefer Osma's (1).  Just move the test inside the "whole dataset" branch of 
the {{if}}.

I agree that (2) is a but strange.  It is at odds with the "dump" in "sdbdump". 
If the user wants that, they can post-process the dump easily enough (N-quads, 
strip the fourth field; TriG, Remove all "GRAPH ..."). Transformations, even 
simple ones, are not the objective of the command.



was (Author: andy.seaborne):
The test is necessary in some form - writing a dataset to Turtle (triples only) 
only dumps the default graph.  That is the situation I ran into and added the 
test to stop that error.  TriG nowadays prints the default graph Turtle style 
(JENA-1179).

I prefer Osma's (1).  Just move the test inside the "whole dataset" branch of 
the {{if}}.

I agree that (2) is a buit strange.  It is at odds with the "dump" in 
"sdbdump". If the user wants that, they can post-process the dump easily 
enough, but transformations, even simple ones, are not the objective of the 
command.


> sdbdump refuses to output a graph as Turtle
> -------------------------------------------
>
>                 Key: JENA-1188
>                 URL: https://issues.apache.org/jira/browse/JENA-1188
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: SDB
>    Affects Versions: Jena 3.1.0
>            Reporter: Osma Suominen
>
> I upgraded SDB to the 3.1.0 release version after running a snapshot build 
> from early February. This broke a script that I use to periodically back up a 
> SDB database:
> {noformat}
> sdbdump --sdb=$SDBROOT/sdb-yso.ttl \
>   --graph=http://www.yso.fi/onto/yso/ \
>   --out=TTL >$TTLFILE
> {noformat}
> This now gives the error
> {noformat}
> Not a 'quads' language (try 'N-Quads' or 'TriG')
> {noformat}
> The culprit seems to be this commit made on 8 Feb:
> https://github.com/apache/jena/commit/cb449523c83832ceb9cf525b4b1e1f382c49c16f
> I can see the point of requiring a quad-capable output format when dumping 
> all graphs (though I'm not sure it should be a fatal error even in that 
> case), but in my case, I asked for a single graph only. I think the check is 
> overly strict.



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

Reply via email to