Initially, I did this the wrong way:
- I used MySQL to copy the tables.
This was bad because ARC2 uses a platform-dependent hashing function for one of it’s table columns.
So, I think the solution is simple:
// To export
$store->createBackup('backup_file.spog');
// To import
$store->query('LOAD <file://FULL_PATH_TO_FILE/backup_file.spog>');
I wanted to post this question, in case anyone has more suggestions. I am still new to RDF and ARC2.
More information on the ARC2 issue:
- For looking up a subject URI in the MySQL database, ARC2 uses the http://php.net/crc32 hashing function. The resulting integer is not 32 bits. Even though crc32() prepares a checksum using the “input string in 32-bit lengths at a time”, the resulting integer value is platform-dependent, which can be seen in the PHP_INT_SIZE and PHP_INT_MAX constants
No answers have been posted to this question (except the answer I proposed in my question), so I’m just going to answer my own question. The only option must be the one that I had found so far… apparently there are no other ways to do full import/export dumps in ARC2, except…