MARC2RDF is based on the DOREMUS model that allows a detailed description of a musical work and the events associated with it (creation, execution, etc.). It takes as input INTERMARC-XML and UNIMARC-XML files and generates as output RDF triples. A display in MARC (MAchine Readable Cataloging) format is an option of our prototype to view an INTERMARC-XML or an UNIMARC-XML file in MARC format.
The MARCXML format, developed by the Library of Congress in 2001, consists to structure data to MARC in an XML environment. It was founded initially on the MARC21 format, and then it was extended by applying ISO 25577 (MarcXchange), other variants of the MARC (whose INTERMARCXML format used by BNF).
The figure, below, illustrates an example an INTERMARC-XML file:
Its display in INTERMARC format:
And its conversion in RDF triples:
This tool consists of 4 components:
- BNFConverter: converts INTERMARC-XML records from BNF (Bibliothèque Nationale de France) in RDF triples.
- PPConverter: converts INTERMARC-XML and UNIMARC-XML records from Philharmonie de Paris in RDF triples.
- MarcParser: a parser of INTERMARC-XML and UNIMARC-XML records from BNF and Philarmonie.
The class Converter is the "main" class to start converting MARCXML records in RDF triples.
- Setup the
config.properties
file as you need. - Run
gradle run
in the project folder. - Display of RDF triples (TBD):
- Go to Virtuoso (http: // localhost: 8890)
- Click on "Conductor"
- Login (“dba”, “dba”)
- Click on "Linked Data"
- Click on "Graphs"
- Click on "DOREMUS" ------> Display of all RDF triples generated from “XMLFile.xml”
The application logs by default in a log.txt
file in the root of the project. If required, change the file
src/main/resources/tinylog.properties
, according to this documentation.
gradle run ## start conversion of files
gradle run -Pmarc ## start conversion of files, with marc as output
gradle schemagen ## align ontology package to ontologies in `doremus-ontology` github project
Virtuoso 7.2.1 (http://www.openlinksw.com)