tw4l / metsflask Goto Github PK
View Code? Open in Web Editor NEWA web application for human-friendly exploration of Archivematica METS files
License: MIT License
A web application for human-friendly exploration of Archivematica METS files
License: MIT License
Hi Tessa,
Getting a lot of importing errors when trying to create db or run.py - possibly due to Python 3.10 dist-packages being different than 3.6? Or at mine are in a different location since I upgraded from 3.6. I tried moving some of the flask and migrate packages over to the new location (/usr/local/lib/python3.10/dist-packages), but seem to still be having issues so I'm not certain.
Running BitCurator 4.4
Thanks!
Jarad
Currently, METSFlask returns a 500 Internal Server Error if a user (1) tries to upload a file that is not a valid Archivematica METS file, or (2) the application runs into some other error during upload.
Add a user-friendly page at minimum for case 1, so that users know the issue is with the file they are uploading.
See Archivematica script parse_mets_to_db.py
After launch I am getting:
OperationalError
sqlalchemy.exc.OperationalError no such table METS.
I think I have followed the Readme carefully, is there something I have missed?
Sample PREMIS output:
<mets:digiprovMD ID="digiprovMD_85">
<mets:mdWrap MDTYPE="PREMIS:EVENT">
<mets:xmlData>
<premis:event xmlns:premis="info:lc/xmlns/premis-v2" xsi:schemaLocation="info:lc/xmlns/premis-v2 http://www.loc.gov/standards/premis/v2/premis-v2-2.xsd" version="2.2">
<premis:eventIdentifier>
<premis:eventIdentifierType>UUID</premis:eventIdentifierType>
<premis:eventIdentifierValue>4f6c2b6d-4d25-4552-b42c-b44c3e2e3714</premis:eventIdentifierValue>
</premis:eventIdentifier>
<premis:eventType>ingestion</premis:eventType>
<premis:eventDateTime>2017-01-13T04:00:41+00:00</premis:eventDateTime>
<premis:eventDetail></premis:eventDetail>
<premis:eventOutcomeInformation>
<premis:eventOutcome></premis:eventOutcome>
<premis:eventOutcomeDetail>
<premis:eventOutcomeDetailNote></premis:eventOutcomeDetailNote>
</premis:eventOutcomeDetail>
</premis:eventOutcomeInformation>
<premis:linkingAgentIdentifier>
<premis:linkingAgentIdentifierType>Archivematica user pk</premis:linkingAgentIdentifierType>
<premis:linkingAgentIdentifierValue>6</premis:linkingAgentIdentifierValue>
</premis:linkingAgentIdentifier>
<premis:linkingAgentIdentifier>
<premis:linkingAgentIdentifierType>preservation system</premis:linkingAgentIdentifierType>
<premis:linkingAgentIdentifierValue>Archivematica-1.5</premis:linkingAgentIdentifierValue>
</premis:linkingAgentIdentifier>
<premis:linkingAgentIdentifier>
<premis:linkingAgentIdentifierType>repository code</premis:linkingAgentIdentifierType>
<premis:linkingAgentIdentifierValue>canadian-centre-architecture</premis:linkingAgentIdentifierValue>
</premis:linkingAgentIdentifier>
</premis:event>
</mets:xmlData>
</mets:mdWrap>
</mets:digiprovMD>
Replace custom code in METSFlask/parsemets.py with Artefactual's mets-reader-writer where possible.
mets-reader-writer API documented here: https://mets-reader-writer.readthedocs.io/en/latest/
Move from one single model containing pickled metslist
to multi-table schema with appropriate foreign key contstraints (likely models: METSFile
, DCMetadata
, FSEntry
, PREMISEvent
).
Moving to a better-designed and normalized multi-table structure will enable exposing a useful REST API and, ultimately, better possibilities for visualization and reporting.
Flask, SQLAlchemy, sqlalchemy-migrate
Regexp to create PRONOM links doesn't work with results of Fido identifications
e.g. pie charts using D3.js
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.