buda-base / xmltoldmigration

App to migrate from TBRC XML files to BDRC RDF LD
Apache License 2.0
0 stars 2 forks source link

Migrate from TBRC XML files to BDRC RDF LD

This repository contains code that will be used to migrate from TBRC XML files to the new Linked Data.

Compiling and running

Simple run:

mvn compile exec:java

Compiling and generating jar file:

mvn clean package

If the above fails try:

git submodule update --init

When there is a change in the owl-schema repo, after the initial config above, the following may be used to sync to the head of the owl-schema repo:

git submodule update --recursive --remote

Running the jar file:

java -jar target/xmltoldmigration-0.2.0.jar

Arguments

-outdir OUTDIR              (defaults to ./tbrc-jsonld/, must end with /)
-datadir DATADIR            (defaults to ./tbrc/, must end with /)
-onlyOneSymetricDirection=X (where X is 0 or 1, defaults to 0, use one direction in symetric statements)
-preferManyOverOne=X        (where X is 0 or 1, defaults to 0, when only one symetric direction is taken, prefer things like workHasPart instead of workPartOf)

TODO

License

The code is Copyright 2017 Buddhist Digital Resource Center, and is provided under Apache License 2.0.