Hi Sebastian,

It could be written in following way : 

if (exists (sparql define input:storage "" ask where { ?:g 
<http://www.strigi.org/fields#indexGraphFor> ?r . }))
  {
     ..
  }
else
  {
     ..
  }


Best Regards,
Mitko


On Dec 14, 2009, at 3:05 PM, Sebastian Trueg wrote:

>      -- THIS IS THE PART I ADDED --
>      select (sparql define input:storage "" ask where { "g"
> <http://www.strigi.org/fields#indexGraphFor> ?r . } ) into is_strigi_graph;
>      -----------------------------------------------
> 
>      if( is_strigi_graph > 0 ) {
>          dump_one_graph ("g", sprintf ('%s/strigigraph%06d_', dir,
> inx), file_length_limit);
>      }
>      else {
>          dump_one_graph ("g", sprintf ('%s/graph%06d_', dir, inx),
> file_length_limit);
>      }


--
Mitko Iliev
Developer Virtuoso Team
OpenLink Software
http://www.openlinksw.com/virtuoso
Cross Platform Web Services Middleware

Reply via email to