In this repository we develop XSLT stylesheets for converting basic AdlibXML into Linked Open Data. For your own use it might be necessary to adjust the stylesheet to your own specific usages of Adlib fields and XML-elements.
We used testdata.adlib.xml, downloaded from a clean Axiell Collections installation. Furthermore we used adlibHarvester to download examples from other endpoints, to get an impression of the working of the stylesheets.
We want to test our stylesheets with various XSLT-conversion tools.
Usage examples:
xsltproc stylesheets/dc/dc.xslt test/input/testdata.adlib.xml > test/output/dc/testdata.rdf.xml
If you want to put the baseUri in the Command Line:
xsltproc --stringparam baseUri https://lodp-web.adlibhosting.com/priref/ stylesheets/dc/dc.xslt test/input/testdata.adlib.xml > test/output/dc/testdata.rdf.xml
Usage example (Windows?):
saxon -s:test/input/testdata.adlib.xml -xsl:stylesheets/dc/dc.xslt -o:test/output/dc/testdata.rdf.xml
Usage example (Linux):
saxon-xslt test/input/testdata.adlib.xml stylesheets/edm/edm-dc.xslt -o test/output/edm/testdata.rdf.xml
Usage example:
msxsl.exe test\input\testdata.adlib.xml stylesheets\schema\schema.xslt -o test\output\testdata.rdf.xml
We developed the stylesheets top-to-bottom implementing all basicfields of a description into the schema at hand, and bottom-up by searching for all available data in the fields from the schema.
Conversion (selection of objects) to Dublin Core can be done with the stylesheet stylesheets/dc/dc.xslt.
Conversion (selection of objects) to Schema.org can be done with the stylesheet stylesheets/schema/schema.xslt.
Conversion (selection of objects) to Europeana Data Model can be done with the stylesheet stylesheets/edm/edm-dc.xslt.
Conversion (selection of objects) to Linked Art can be done with the stylesheet stylesheets/linked-art/linked-art.xslt.
We test the resulting XML/RDF by parsing it with raptor.
Usage example
rapper -o turtle test/output/dc/testdata.rdf.xml > test/output/dc/testdata.ttl