diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d62241d --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +filenames = british-isles british-islands +labels = "British Isles" "British Islands" + +british-isles.ttl: + docker run -w /workspace -v $(CURDIR):/workspace cloudfluff/table2qb table2qb exec codelist-pipeline --codelist-csv codelists/british-isles.csv --codelist-name 'British Isles' --codelist-slug british-isles --base-uri http://gss-data.org.uk/ --output-file british-isles-tmp.ttl + riot --output=ntriples british-isles-tmp.ttl > british-isles.nt + sed -i 's|http://gss-data.org.uk/def/concept/british-isles/|http://www.wikidata.org/entity/|g; /core#member/d' british-isles.nt + riot --formatted=turtle prefixes.ttl british-isles.nt > british-isles.ttl + +british-islands.ttl: + docker run -w /workspace -v $(CURDIR):/workspace cloudfluff/table2qb table2qb exec codelist-pipeline --codelist-csv codelists/british-islands.csv --codelist-name 'British Islands' --codelist-slug british-islands --base-uri http://gss-data.org.uk/ --output-file british-islands-tmp.ttl + riot --output=ntriples british-islands-tmp.ttl > british-islands.nt + sed -i 's|http://gss-data.org.uk/def/concept/british-islands/|http://www.wikidata.org/entity/|g; /core#member/d' british-islands.nt + riot --formatted=turtle prefixes.ttl british-islands.nt > british-islands.ttl + +population-british-isles.ttl: + docker run -v $(CURDIR):/workspace -w /workspace cloudfluff/csv2rdf csv2rdf -t population-british-isles.csv -u population-british-isles.csv-metadata.json -m annotated -o population-british-isles-tmp.ttl + riot --formatted=turtle prefixes.ttl population-british-isles-tmp.ttl > population-british-isles.ttl + +population-british-islands.ttl: + docker run -v $(CURDIR):/workspace -w /workspace cloudfluff/csv2rdf csv2rdf -t population-british-islands.csv -u population-british-islands.csv-metadata.json -m annotated -o population-british-islands-tmp.ttl + riot --formatted=turtle prefixes.ttl population-british-islands-tmp.ttl > population-british-islands.ttl + +test: + docker run -v $(CURDIR):/workspace -w /workspace cloudfluff/gdp-sparql-tests sparql-test-runner -t /usr/local/tests -r reports/TESTS-population-british-isles.xml population-british-isles.ttl + docker run -v $(CURDIR):/workspace -w /workspace cloudfluff/gdp-sparql-tests sparql-test-runner -t /usr/local/tests -r reports/TESTS-population-british-islands.xml population-british-islands.ttl