Re: [Virtuoso-users] Virtuoso SPARQL tab separated results with language tags and dataypes

2018-08-22 Thread Peter F. Patel-Schneider
Yes, that has the language tag side. There is also the datatype side that would be shown with Work/runtime. peter On 08/22/2018 10:08 AM, Kingsley Idehen wrote: > On 8/22/18 12:01 PM, Peter F. Patel-Schneider wrote: >> More or less, except that CSV output doesn't include language tags and >> d

Re: [Virtuoso-users] Virtuoso SPARQL tab separated results with language tags and dataypes

2018-08-22 Thread Peter F. Patel-Schneider
That kind of solution is probably going to work for me for the short term, but I don't know whether it will work in general. peter On 08/22/2018 08:58 AM, Hugh Williams wrote: > Hi Peter, > > How about something like: > > curl http://dbpedia.org/sparql --get --data-urlencode "format=csv

Re: [Virtuoso-users] Virtuoso SPARQL tab separated results with language tags and dataypes

2018-08-22 Thread Kingsley Idehen
On 8/22/18 12:01 PM, Peter F. Patel-Schneider wrote: > 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

Re: [Virtuoso-users] Virtuoso SPARQL tab separated results with language tags and dataypes

2018-08-22 Thread Peter F. Patel-Schneider
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

Re: [Virtuoso-users] Virtuoso SPARQL tab separated results with language tags and dataypes

2018-08-22 Thread Hugh Williams
Hi Peter, How about something like: curl http://dbpedia.org/sparql --get --data-urlencode "format=csv" --data-urlencode 'query=select ?p ?o datatype(?o) as ?datatype lang(?o) as ?lang where { ?p ?o }’ where output is presented in CSV format ? Be

Re: [Virtuoso-users] Virtuoso SPARQL tab separated results with language tags and dataypes

2018-08-22 Thread Kingsley Idehen
On 8/22/18 11:43 AM, Peter F. Patel-Schneider wrote: > Try > > curl http://dbpedia.org/sparql --get --header "Accept: > text/tab-separated-values" --data-urlencode query@- < select * where { ?p ?o } > EOF > > Note that Work/runtime doesn't have a datatype an

Re: [Virtuoso-users] Virtuoso SPARQL tab separated results with language tags and dataypes

2018-08-22 Thread Peter F. Patel-Schneider
Try curl http://dbpedia.org/sparql --get --header "Accept: text/tab-separated-values" --data-urlencode query@- ?p ?o } EOF Note that Work/runtime doesn't have a datatype and the labels don't have a language tag even though https://www.w3.org/TR/sparql11-re

Re: [Virtuoso-users] Virtuoso SPARQL tab separated results with language tags and dataypes

2018-08-22 Thread Kingsley Idehen
On 8/22/18 10:24 AM, Peter F. Patel-Schneider wrote: > I was hoping to be able to get the SPARQL TSV results format in > https://www.w3.org/TR/sparql11-results-csv-tsv/ > > I can probably limp along with explicit language tags and datatypes but that's > a pain to process. > > peter Hi Peter, Plea

Re: [Virtuoso-users] Virtuoso SPARQL tab separated results with language tags and dataypes

2018-08-22 Thread Peter F. Patel-Schneider
I was hoping to be able to get the SPARQL TSV results format in https://www.w3.org/TR/sparql11-results-csv-tsv/ I can probably limp along with explicit language tags and datatypes but that's a pain to process. peter -- C

Re: [Virtuoso-users] Virtuoso SPARQL tab separated results with language tags and dataypes

2018-08-22 Thread Hugh Williams
Hi Peter, Are you seeking for this to be possible when running a query against the Virtuoso /sparql endpoint by default or via a query ? As it is not possible by default to my knowledge, but you can write queries to output the lang and datatypes, like: select distinct ?o datatype(?o)