问题
I want to use tdbloader2 to load multiple files into a TDB datastore.
The first one goes fine, but any subsequent loads seem to delete the data that was loaded from previous files.
How do I avoid this?
回答1:
tdbloader (not tdbloader2) will incrementally load data. tdbloader2 only works for an empty store.
Both accept multiple files as well.
Or you can use the SPARQL Update to add data.
Or you can use the SPARQL Graph Store Protocol with Fuseki to add data.
回答2:
It turns out that tdbloader2 takes standard unix wildcard patterns so I can do:
tdbloader2 --loc <db location> */*
Still not sure how to do a subsequent load of further data though.
来源:https://stackoverflow.com/questions/20736795/incremental-dataload-into-jena-from-multiple-files