netwerk-digitaal-erfgoed / adlibLOD

1 stars 1 forks source link

adlibLOD

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.

Testdata

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.

XSLT conversion

We want to test our stylesheets with various XSLT-conversion tools.

Xmllint

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

Saxon

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

MSXML 4.0

Usage example:

msxsl.exe test\input\testdata.adlib.xml stylesheets\schema\schema.xslt -o test\output\testdata.rdf.xml

Various schemas

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.

Dublin Core Metadata Initiative (DC)

Conversion (selection of objects) to Dublin Core can be done with the stylesheet stylesheets/dc/dc.xslt.

Schema.org

Conversion (selection of objects) to Schema.org can be done with the stylesheet stylesheets/schema/schema.xslt.

EDM

Conversion (selection of objects) to Europeana Data Model can be done with the stylesheet stylesheets/edm/edm-dc.xslt.

Linked Art

Conversion (selection of objects) to Linked Art can be done with the stylesheet stylesheets/linked-art/linked-art.xslt.

Test RDF-syntax

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