More or less, except that CSV output doesn't include language tags and doesn't
provide facilities for anything other than numeric and string literal values.
TSV format, on the other hand, does include language tags (shown explicitly in
an example) and datatypes (implied by wording in several places, particularly
"The SPARQL Results TSV Results Format does encode the details of RDF terms in
the results table by using the syntax that SPARQL [SPARQL11-QUERY] and Turtle
[TURTLE] use. An application receiving a TSV-encoded results set can split
each line into elements of the result row, and extract all the details it
wishes to process of the RDF terms by simple string processing, without a
complete XML or JSON parser required by the more complex SPARQL result 

So it's not a problem with the CSV output but instead with the TSV output.

(I would be happy to have a variant of CSV that included language tags and
datatypes, but conforming to the requirements of TSV output would be better.)


On 08/22/2018 08:51 AM, Kingsley Idehen wrote:
> On 8/22/18 11:43 AM, Peter F. Patel-Schneider wrote:
>> Try
>> curl --get   --header "Accept:
>> text/tab-separated-values"  --data-urlencode query@- <<EOF
>> select * where { <> ?p ?o }
>> EOF
>> Note that Work/runtime doesn't have a datatype and the labels don't have a
>> language tag even though
>> requires them.  As well, IRIs are enclosed in "" instead of <>.
>> Then try the same query on the web interface at
>> There the datatypes and languages tags do show up.  However, there are some
>> langStrings without language tags there.
>> I'm also running into the same problem with a locally installed Virtuoso open
>> source 7.2.5.
>> peter
> HTML-based SPARQL Results doc:
> CSV-based SPARQL Results doc:
> I believe that demonstrates the problem re missing lang tags in the CSV
> output, right?
> -- 
> Regards,
> Kingsley Idehen             
> Founder & CEO 
> OpenLink Software   (Home Page:
> Weblogs (Blogs):
> Legacy Blog:
> Blogspot Blog:
> Medium Blog:
> Profile Pages:
> Pinterest:
> Quora:
> Twitter:
> Google+:
> LinkedIn:
> Web Identities (WebID):
> Personal:
>         : 

Check out the vibrant tech community on one of the world's most
engaging tech sites,!
Virtuoso-users mailing list

Reply via email to