This is probably what you want: https://www.w3.org/TR/sparql11-results-csv-tsv/
Try curl -H "Accept: text/csv" with SELECT results. On Thu, Apr 22, 2021 at 11:30 AM Mikael Pesonen <mikael.peso...@lingsoft.fi> wrote: > > > Hi, > > not exactly Jena related, but does anyone know if there is a tool or > sparql query that would read (almost) any kind of RDF data and make a > csv sheet where each column has predicates as headers and values as > cells. It would also be nice to get linked resources into the table the > same way. Even a hint how to make each predicate a new column in sparql > would be helpful. > > So for example > > :s :p1 "label1" . > :s :p2 "label2" . > :s :p3 :s2 . :s2 p1 "label3" > > -> > :p1 :p2 :p3/:p1 > :s label2 label2 label3 > > Br, > Mikael >