Here is a list of step-by-step tutorials covering several features of SPARQL Anything:
- A Gentle introduction to SPARQL Anything: this tutorial presents the Facade-X model and shows basic transformations of JSON, CSV and XML. Video
- The PySPARQL-Anything Showacase: this tutorial shows how to install and execute SPARQL Anything from Python, getting both a readily available CLI as well as leveraging SPARQL Anything output as Pandas or RDFLib objects in your scripts.
- SPARQL Anything showcase: open data from the Tate Gallery: this tutorial covers formats such as CSV and JSON and features such as the function
fx:anySlot
and the chaining of multipleSERVICE
clauses. It is based on the SPARQL Anything CLI. - Construct a KG of artists and artworks of the IMMA museum website: This showcase demonstrates the use of SPARQL Anything for constructing a Knowledge Graph from data encoded in HTML pages. Apart from examples with the HTML input format, it covers features such as parametrised queries and the use of SPARQL result set files as parameters. It is based on the SPARQL Anything CLI.
- Construct a KG from the Propbank dataset: An advanced example of transformation of XML data, including querying a Zip archive.
- Construct a KG from YAML annotations in Markdown file headers: A short but complex case demonstrating how to chain multiple transformations starting from a set of Markdown files, queried to extract the YAML header, which is in turn queried to derive the annotations, that are in turn projected into a KG!
- Populate a Music Ontology from MusicXML files: An advanced application of SPARQL Anything to query MusicXML files and derive note sequences, computing n-grams, and populating a Music Notation ontology.
- Querying a Relational Database: this tutorials shows you how to query a relational database by using SPARQL Anything (even if the tool does not support yet this feature natively).
- How cool would it be to have a single query to get an overview of the content of any input sources?: This is a Colab notebook describing how to build a SPARQL Anything query to get an overview of the schema of any source. The query is plain SPARQL 1.1 but thanks to Facade-X model and SPARQL Anything it also works with any format. Related Discussion: #508