Mapping for CSV data from USASpending to RDF via tarql.
Download a release of tarql, extract and use the script bin/tarql
to execute the transformation. Invoke the transformation using the mapping (mapping.sparql
) from command line:
bin/tarql mapping.sparql USASpending.csv
- Since tarql doesn't support streaming processing, you may encounter Java's
OutOfMemoryError
when working with bigger data on a smaller machine. When you're dealing with larger CSV's, consider increasing Java heap space (e.g.,set JAVA_OPTS="-Xms128m -Xmx1024m"
) or splitting the source data into multiple files to be processed separately.