Turns out it's not straightforward and very much depends on how your bag is configured.
Highlights
- Metadata not part of the bag, dropped inside the top-level.
- Path needs to start
data/...
.
[ | |
{ | |
"fields": { | |
"description": "Audio Interchange File Format", | |
"group": "c94ce0e6-c275-4c09-b802-695a18b7bf2a", | |
"slug": "audio-interchange-file-format", | |
"uuid": "22147b00-0fdc-4653-aa7b-618d1f4b6ffb" | |
}, | |
"model": "fpr.format", | |
"pk": 1 |
<?xml version='1.0' encoding='UTF-8'?> | |
<mets:mets xmlns:mets="http://www.loc.gov/METS/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/METS/ http://www.loc.gov/standards/mets/version111/mets.xsd"> | |
<mets:metsHdr CREATEDATE="2019-09-25T08:55:30" LASTMODDATE="2019-09-25T09:37:22"/> | |
<mets:dmdSec ID="dmdSec_1"> | |
<mets:mdWrap MDTYPE="PREMIS:OBJECT"> | |
<mets:xmlData> | |
<premis:object xmlns:premis="http://www.loc.gov/premis/v3" xsi:type="premis:intellectualEntity" xsi:schemaLocation="http://www.loc.gov/premis/v3 http://www.loc.gov/standards/premis/v3/premis.xsd" version="3.0"> | |
<premis:objectIdentifier> | |
<premis:objectIdentifierType>UUID</premis:objectIdentifierType> | |
<premis:objectIdentifierValue>2586f749-e675-4d43-b48b-7cc8fd20fa92</premis:objectIdentifierValue> |
#!/bin/bash | |
set -u | |
# Archivematica compresses uses three tools, at five compression levels. It | |
# does not use LZMA2 but including it here to understand how much faster it is | |
# than LZMA. | |
# | |
# * 7z bzip2 | |
# * 7z lzma |
#!/bin/bash | |
# Bash script for a rudimentary TODO list. | |
# | |
# For best results, save in /usr/local/bin and create a symlink to todo: | |
# | |
# $ sudo mv todo.sh /usr/local/bin/ | |
# $ sudo ln -s /usr/local/bin/todo.sh /usr/local/bin/todo | |
# | |
# Inspired by the very cool: http://todotxt.org/ specification. |
#!/bin/bash | |
# Simple bash script to make many copies of one file. | |
# | |
# ARG $1: Filename | |
# ARG $2: Number of copies | |
# | |
set -eux |
# Demo Commands for UDenver | |
---------------------------------------------------------- | |
Version 1.0: 2018-09-21 Initial commands for UDenver Demo | |
Version 2.0: 2018-11-07 Added Unapproved Transfers Example | |
---------------------------------------------------------- | |
# 1. Start Transfer | |
------------------- | |
http --pretty=format \ |
/* | |
* Post timesheet from Google Docs to Redmine | |
* | |
* Copyright (c) 2014 David Juhasz | |
* | |
* This program is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU General Public License | |
* as published by the Free Software Foundation; either version 2 | |
* of the License, or (at your option) any later version. | |
* |
<?xml version='1.0' encoding='UTF-8'?> | |
<mets:mets xmlns:mets="http://www.loc.gov/METS/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/METS/ http://www.loc.gov/standards/mets/version111/mets.xsd"> | |
<mets:metsHdr CREATEDATE="2019-02-23T18:01:33"/> | |
<mets:dmdSec ID="dmdSec_455536" CREATED="2019-02-23T18:00:05" STATUS="original"> | |
<mets:mdWrap MDTYPE="DDI"> | |
<mets:xmlData> | |
<ddi:codebook xmlns:ddi="http://www.icpsr.umich.edu/DDI" version="2.5" xsi:schemaLocation="http://www.ddi:codebook:2_5 http://www.ddialliance.org/Specification/DDI-Codebook/2.5/XMLSchema/codebook.xsd"> | |
<ddi:stdyDscr> | |
<ddi:citation> | |
<ddi:titlStmt> |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
import argparse | |
import lxml | |
import logging | |
import metsrw | |
import sys | |