You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clone this repository into an adjacent directory to bib2lod.
Run mvn install
Copy the executable jar from target/hfa2lod.jar to your preferred work location.
Copy the example configuration file from src/main/resources/example.config.json to your preferred work location. Rename it appropriately. For example, mi.config.json.
Configure
Edit the configuration file to set appropriate input source and output destination.
Within InputService, change the source attribute to point either to a single file of MARCXML, or to a directory containing MARCXML files.
Each input file must have a filename extension of .xml
Sample minimal record is in sample-data/MinimalFGDC_Title.xml.
Within OutputService, change the destination attribute to point to your desired output directory.
You must create this directory before running the program.
Run
Execute the jar file, referencing the configuration file on the command line:
java -jar hfa2lod.jar -c hfa.config.json
Output will be written in N-TRIPLE format to the directory specified in the configuration file.
One output file will be created for each input file.
The name of the output file will be the same as the corresponding input file, but the extension will be .nt.
A log directory will be created as target/logs in your work location directory.
A log file of the run will be created as target/logs/hfa.log
An existing log file will not be overwritten, but will be renamed with a timestamp, such as hfa2lod-2017-03-31-14-38-47-1.log
About
Converts Harvard Film Archive XML records to Linked Open Data