Open jmvanel opened 3 years ago
Currently we have an HTML table view from SPARQL CONSTRUCT, e.g. http://semantic-forms.cc:9112/table?query=CONSTRUCT+%7B+%3FS+%3FP+%3FO+.+%7D+WHERE+%7B+GRAPH+%3FG+%7B+%3FS+%3FP+%3FO+.%0D%0A%3FS+a+%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2FOrganization%3E+.%0D%0A+%7D+%7D+LIMIT+100%0D%0A&layout=on&orderby=&details=&label=
If we add HTTP GET parameter format=csv or format=text/csv , the output will be CSV, similar to what can be imported by /display ( cf commit https://github.com/jmvanel/semantic_forms/commit/c53c89bfbcf7c4f2d778b7a0e46b2d4f22a32bc6 )
format=csv
format=text/csv
/display
Cherry on the cake : the service /table could also do content negotiation for MIME type text/csv .
/table
text/csv
Currently we have an HTML table view from SPARQL CONSTRUCT, e.g. http://semantic-forms.cc:9112/table?query=CONSTRUCT+%7B+%3FS+%3FP+%3FO+.+%7D+WHERE+%7B+GRAPH+%3FG+%7B+%3FS+%3FP+%3FO+.%0D%0A%3FS+a+%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2FOrganization%3E+.%0D%0A+%7D+%7D+LIMIT+100%0D%0A&layout=on&orderby=&details=&label=
If we add HTTP GET parameter
format=csv
orformat=text/csv
, the output will be CSV, similar to what can be imported by/display
( cf commit https://github.com/jmvanel/semantic_forms/commit/c53c89bfbcf7c4f2d778b7a0e46b2d4f22a32bc6 )Cherry on the cake : the service
/table
could also do content negotiation for MIME typetext/csv
.