GithubHelp home page GithubHelp logo

nationalmuseumaustralia / collection-api-etl Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 0.0 45.54 MB

The Extract/Transform/Load pipeline underlying the public web API of the National Museum of Australia

License: Other

XSLT 64.34% Shell 10.95% XProc 22.28% Batchfile 0.53% Java 1.89%
lodlam etl solr sparql museum-collections

collection-api-etl's People

Contributors

conal-tuohy avatar staplegun avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

collection-api-etl's Issues

sysctl command not found

etl-run-all.log file shows:

/usr/local/NMA-API-ETL/etl-to-fuseki-full.sh: line 23: sysctl: command not found

This is required to regularize Java memory management by eliminating memory over-commit by the kernel.

EMu image returns 404

EMu object 200017 includes an image whose name includes square brackets. The name is converted to an HTTP URL which then returns 404.

Non-unique 'Multimedia Id' field in Piction data

I found the Piction data file contains two records with the same Multimedia ID field.

xmllint --format /mnt/dams_data/solr_prod1.xml | grep MA23001503

    <field name="Multimedia ID">MA23001503</field>
    <field name="Multimedia ID">MA23001503</field>

Split source XML files to reduce XML-to-SPARQL ETL memory consumption

  • Split each source file into a folder of individual record files, using streaming file splitter.
  • Refactor XML-to-SPARQL pipeline to individually load record files from these folders, and pass to the RDF conversion XSLT.
  • Pass the record's type to the conversion XSLT as a parameter (replacing the file type recognition code in the XSLT)
  • Replace the stylesheet which marks some Piction images as preferred with equivalent SPARQL update query.

Piction IRN field contains some bogus values

<doc>
	<field name="EMu IRN for Related Objects">.</field>
	<field name="Multimedia ID">MA62599101</field>
	<field name="Other Numbers Kind">Internal Record Number</field>
	<field name="Other Numbers Value">251805</field>
	<field name="Title">Right panel of 'Distant glimpses of the great floodplain seen through a veil of trees and hanging vines,' by John Wolseley</field>
	<dataSource type="URLDataSource" baseUrl="\\nma-isilon1\dams_data\Collectionsearch\prodderivT\DAMS_INGEST\JOBS\WM_61058358\nma-61058358-142-wm-vs1.jpg" name="thumbnail"/>
	<dataSource type="URLDataSource" baseUrl="\\nma-isilon1\dams_data\Collectionsearch\prodderivW\DAMS_INGEST\JOBS\WM_61058358\nma-61058358-142-wm-vs1.jpg" name="web"/>
	<dataSource type="URLDataSource" baseUrl="\\nma-isilon1\dams_data\Collectionsearch\prodderiv2\WM_61058358\nma-61058358-142-wm-vs1_o2.jpg" name="original_2"/>
	<dataSource type="URLDataSource" baseUrl="\\nma-isilon1\dams_data\Collectionsearch\prodderiv3\WM_61058358\nma-61058358-142-wm-vs1_o3.jpg" name="original_3"/>
	<dataSource type="URLDataSource" baseUrl="\\nma-isilon1\dams_data\Collectionsearch\prodderiv4\WM_61058358\nma-61058358-142-wm-vs1_o4.jpg" name="original_4"/>
	<dataSource type="URLDataSource" baseUrl="\\nma-isilon1\dams_data\Collectionsearch\prodderiv5\WM_61058358\nma-61058358-142-wm-vs1_o5.jpg" name="original_5"/>
</doc>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.