Hello,
I'm having trouble getting the data out of Virtuoso on a unix console.
I can not use "cut" because isql pretty prints out whitespace in between
result columns instead of tabs.
An example:
FILE test.isql :
###################
sparql SELECT ?s ?o
FROM <http://dbpedia.org>
{ ?s a ?o .}
LIMIT 10;
#################
then:
isql 1111 dba dba 'test.isql'
gives (with whitespaces, always a different number 42, 35, 38)
http://dbpedia.org/resource/Alfonso_Arau
http://dbpedia.org/ontology/Actor
http://dbpedia.org/resource/Alfonso_Cuar%C3%B3n
http://dbpedia.org/ontology/Actor
http://dbpedia.org/resource/Amitabh_Bachchan
http://dbpedia.org/ontology/Actor
instead of
http://dbpedia.org/resource/Alfonso_Arau \t
http://dbpedia.org/ontology/Actor
http://dbpedia.org/resource/Alfonso_Cuar%C3%B3n \t
http://dbpedia.org/ontology/Actor
http://dbpedia.org/resource/Amitabh_Bachchan \t
http://dbpedia.org/ontology/Actor
Is this on purpose? Are there different output formats for the ISQL console?
I know I can replace the whitespaces with sed, e.g. sed "s/ \{1,\}/\t/g"
but it might cause problems, when retrieving literals with a sparql
variable.
Thanks,
Sebastian