Appendix B. SPARQL results formats

This appendix covers

  • SPARQL XML results format
  • SPARQL JSON results format
  • SPARQL CSV and TSV results format

This appendix explores the different output formats available for SPARQL queries. These formats allow for a high level of flexibility when using SPARQL in your applications. We cover the general structure of each format and where to find more detailed information about each.

All of the example results in this appendix are based on the first SPARQL query example shown in chapter 5 (listing 5.1). Keep in mind that this is a very simple query, and as queries become more complex, so do their results. For your convenience, the following listing is a copy of the SPARQL query from listing 5.1.

Listing B.1. ...

Get Linked Data now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.