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 { <http://dbpedia.org/resource/31_June> ?p ?o }’ where output is presented in CSV format ? Best Regards Hugh Williams Professional Services OpenLink Software, Inc. // http://www.openlinksw.com/ Weblog -- http://www.openlinksw.com/blogs/ LinkedIn -- http://www.linkedin.com/company/openlink-software/ Twitter -- http://twitter.com/OpenLink Google+ -- http://plus.google.com/100570109519069333827/ Facebook -- http://www.facebook.com/OpenLinkSoftware Universal Data Access, Integration, and Management Technology Providers > On 22 Aug 2018, at 16:43, Peter F. Patel-Schneider <pfpschnei...@gmail.com> > wrote: > > Try > > curl http://dbpedia.org/sparql --get --header "Accept: > text/tab-separated-values" --data-urlencode query@- <<EOF > select * where { <http://dbpedia.org/resource/31_June> ?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-results-csv-tsv/#tsv > requires them. As well, IRIs are enclosed in "" instead of <>. > > Then try the same query on the web interface at https://dbpedia.org/sparql. > 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 > > > > > > > On 08/22/2018 08:15 AM, Kingsley Idehen wrote: >> 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, >> >> Please share a SPARQL Query Results doc URI that illustrates your >> problem. Then, if fixable, we can reply in kind with a URI that >> demonstrates the fix. >> >> >> >> >> ------------------------------------------------------------------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> >> >> >> _______________________________________________ >> Virtuoso-users mailing list >> Virtuoso-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/virtuoso-users >> > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Virtuoso-users mailing list > Virtuoso-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/virtuoso-users ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Virtuoso-users mailing list Virtuoso-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/virtuoso-users