Tarql is a command-line tool for converting CSV files to RDF using SPARQL 1.1 syntax. In short, a CSV file’s contents are input into a SPARQL query as a table of bindings. This allows manipulation of CSV data using the full power of SPARQL 1.1 syntax, and in particular the generation of RDF using CONSTRUCT queries. Includes design patterns and examples. Discusses how to deal with variations in header rows, delimiters, quotes and character encoding encountered in CSV/TSV files.
Keywords: CSV (Comma Separated Values), SPARQL CONSTRUCT, SPARQL OFFSET, Apache Jena, Java (programming language)
Author: Cyganiak, Richard
Date created: 2017-06-22 04:00:00.000
Time required: P45M
- Knows methods for generating RDF data from tabular data in formats such as Comma-Separated Values (CSV).
- Uses a CONSTRUCT query to preview changes before executing an INSERT/DELETE operation.
- Uses CONSTRUCT to extract and transform results into a single RDF graph specified by a graph template.
- Uses OFFSET to control where the solutions processed start in the overall sequence of solutions.