[redland-dev] [Redland RDF API 0000334]: rdfproc chatters unmercifully; hard to use in scripts

Mantis Bug Tracker mantis-bug-sender at librdf.org
Thu Jan 28 11:49:09 CET 2010


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.librdf.org/mantis/view.php?id=334 
====================================================================== 
Reported By:                normang
Assigned To:                
====================================================================== 
Project:                    Redland RDF API
Issue ID:                   334
Category:                   utilities
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2010-01-28 10:49
Last Modified:              2010-01-28 10:49
====================================================================== 
Summary:                    rdfproc chatters unmercifully; hard to use in
scripts
Description: 
rdfproc prattles continually and unstoppably, and in some cases reports its
results only through text responses.  These make it hard to use within
scripts.

I offer a patch to rdfproc.c (of redland-1.0.10) which does three things:

* sends non-result and non-error chatter to stderr rather than stdout;
* adds --quiet and --verbose flags to suppress this (this may make the
previous change redundant, depending on taste);
* reports the results of (eg) CMD_CONTAINS and SPARQL ASK queries via the
exit status as well as (suppressible) text.

This patch is intended as a sketch: it Works For Me in the cases that
matter to me, but I haven't tested it exhaustively.  I hope it's useful.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-01-28 10:49 normang        New Issue                                    
2010-01-28 10:49 normang        File Added: rdfproc.c.patch                    
======================================================================



More information about the redland-dev mailing list