Skip to content

Commit

Permalink
upload new wf
Browse files Browse the repository at this point in the history
  • Loading branch information
linxOD committed Mar 12, 2024
1 parent 05b7b2c commit af60953
Show file tree
Hide file tree
Showing 96 changed files with 8,150 additions and 12,953 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/check_and_upload_arche.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: ARCHE-Ingest

on:
workflow_dispatch

jobs:
build_pages:
name: Ingest Data into ARCHE
runs-on: ubuntu-latest
env:
ANT_OPTS: -Xmx5g
REDMINE_ID: 20352
ARCHE_INSTANCE: arche-curation.acdh-dev
ARCHE_INSTANCE_NAME: Curation
PROJECT_NAME : auden-musulin-papers
OUTPUT_DIR: rdf
DATA_DIR: data/editions
META_DIR: data/metadata
INDICES_DIR: data/indexes
steps:
- name: Perform Checkout
uses: actions/checkout@v3
- name: ingestion dependencies
run: |
composer require "acdh-oeaw/arche-ingest:^1"
- name: Fetch WF-URL
run: |
echo "RUN_URL=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" >> $GITHUB_ENV
- name: ingest arche metadata topcol, col, res
run: |
echo 'STEP=Upload AIP to ${ARCHE_INSTANCE_NAME} Instance' >> $GITHUB_ENV
vendor/bin/arche-import-metadata ${OUTPUT_DIR}/arche.ttl https://${ARCHE_INSTANCE}.oeaw.ac.at/api ${{secrets.ARCHE_LOGIN}} ${{secrets.ARCHE_PASSWORD}} --retriesOnConflict 25
# vendor/bin/arche-update-redmine --token ${{ secrets.REDMINE_TOKEN }} --append "$RUN_URL" $REDMINE_ID 'Upload AIP to ${ARCHE_INSTANCE_NAME} Instance'
- name: Copy XML Files to to_ingest
run: |
mkdir $PWD/to_ingest
find -path "./${DATA_DIR}/*.xml" -exec cp -prv '{}' './to_ingest' ';'
find -path "./${INDICES_DIR}/*.xml" -exec cp -prv '{}' './to_ingest' ';'
find -path "./${META_DIR}/*.odd" -exec cp -prv '{}' './to_ingest' ';'
find -path "./${META_DIR}/*.rng" -exec cp -prv '{}' './to_ingest' ';'
- name: cache AV database
id: avdb
uses: actions/cache@v3
with:
path: ~/.cvdupdate
key: constant
- name: refresh AV database
run: |
python3 -m pip install --user cvdupdate && cvd update
- name: run repo-file-checker
run: |
echo 'STEP=Run repo-file-checker' >> $GITHUB_ENV
docker run --rm -d --name filechecker -v `pwd`/filechecker/reports:/reports -v `pwd`/to_ingest:/data -v ~/.cvdupdate/database/:/var/lib/clamav -e DAEMONIZE=1 acdhch/arche-filechecker
# vendor/bin/arche-update-redmine --token ${{ secrets.REDMINE_TOKEN }} --append "$RUN_URL" $REDMINE_ID 'Virus scan'
# vendor/bin/arche-update-redmine --token ${{ secrets.REDMINE_TOKEN }} --append "$RUN_URL" $REDMINE_ID 'Run repo-file-checker'
- name: ingest binaries
run: |
echo 'STEP=Upload Binaries' >> $GITHUB_ENV
vendor/bin/arche-import-binary to_ingest https://id.acdh.oeaw.ac.at/${PROJECT_NAME} https://${ARCHE_INSTANCE}.oeaw.ac.at/api ${{secrets.ARCHE_LOGIN}} ${{secrets.ARCHE_PASSWORD}} --skip not_exist
# vendor/bin/arche-update-redmine --token ${{ secrets.REDMINE_TOKEN }} --append "$RUN_URL" $REDMINE_ID 'Upload AIP to ${ARCHE_INSTANCE_NAME} Instance'
- name: on failure
if: ${{ failure() }}
run: |
vendor/bin/arche-update-redmine --token ${{ secrets.REDMINE_TOKEN }} --append "$RUN_URL" --statusCode 1 $REDMINE_ID "$STEP"
8 changes: 7 additions & 1 deletion .github/workflows/create_arche_ttl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,16 @@ jobs:
- name: Adding attributes to TEI root node
run: |
./shellscripts/add_attributes.sh
- name: Run ant to add xml-model schema
run: |
apt-get update && apt-get install openjdk-11-jre-headless ant -y --no-install-recommend
./shellscripts/dl_saxon.sh
ant
- name: Creating ARCHE constants ttl file
run: |
python scripts/arche_constants.py
- name: Commit data
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Downloaded/Updated Data
commit_message: Downloaded/Updated Data

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,5 @@ requirements_php.txt
composer.*
/filechecker
/to_ingest
/data/images
/data/images
/saxon
30 changes: 30 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." name="tei2html">
<property name="xsl_preprocess" value="${basedir}/preprocess.xsl"/>
<property name="editions" value="${basedir}/data/editions"/>
<property name="indexes" value="${basedir}/data/indexes"/>
<property name="target" value="${basedir}/data/tmp"/>
<property name="target_id" value="${basedir}/data/tmp_id"/>

<mkdir dir="${target}"/>
<mkdir dir="${target_id}"/>

<xslt style="${xsl_preprocess}" basedir="${editions}" destdir="${target}" includes="*.xml" extension=".xml">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<classpath location="${basedir}/saxon/saxon9he.jar"/>
</xslt>
<xslt style="${xsl_preprocess}" basedir="${indexes}" destdir="${target_id}" includes="*.xml" extension=".xml">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<classpath location="${basedir}/saxon/saxon9he.jar"/>
</xslt>

<copy todir="${editions}">
<fileset dir="${target}" includes="*.xml"/>
</copy>
<copy todir="${indexes}">
<fileset dir="${target_id}" includes="*.xml"/>
</copy>
<delete dir="${target}"/>
<delete dir="${target_id}"/>

</project>
87 changes: 25 additions & 62 deletions data/editions/amp-transcript__0001.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
<?xml version='1.0' encoding='UTF-8'?>
<TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:id="amp-transcript__0001.xml" xml:base="https://id.acdh.oeaw.ac.at" next="https://id.acdh.oeaw.ac.at/amp-transcript__0002.xml">
<?xml version="1.0" encoding="UTF-8"?><?xml-model href="https://id.acdh.oeaw.ac.at/auden-musulin-papers/schema.rng"?><?xml-model href="https://id.acdh.oeaw.ac.at/auden-musulin-papers/schema.odd"?><TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:id="amp-transcript__0001.xml" xml:base="https://id.acdh.oeaw.ac.at" next="https://id.acdh.oeaw.ac.at/amp-transcript__0002.xml">
<teiHeader>
<fileDesc>
<titleStmt>
<title level="s">Auden Musulin Papers: A Digital Edition of W. H. Auden´s Letters to Stella Musulin (FWF P 33754)</title>
<title level="a">Autograph Letter Signed W. H. Auden to Stella Musulin 1963-05-12</title>
<author ref="https://d-nb.info/gnd/118650963">Auden, W. H.</author>
<editor>
<name xml:id="smayer" ref="https://orcid.org/0000-0002-2915-5888">Mayer, Sandra</name>
<name xml:id="tfruewirth" ref="https://orcid.org/0000-0002-3997-5193">Frühwirth, Timo</name>
<name xml:id="dgrigoriou" ref="https://orcid.org/0000-0002-0914-9245">Grigoriou, Dimitra</name>
</editor>
<editor><name xml:id="smayer" ref="https://orcid.org/0000-0002-2915-5888">Mayer, Sandra</name><name xml:id="tfruewirth" ref="https://orcid.org/0000-0002-3997-5193">Frühwirth, Timo</name><name xml:id="dgrigoriou" ref="https://orcid.org/0000-0002-0914-9245">Grigoriou, Dimitra</name></editor>
<funder>
<name>Austrian Science Fund (FWF)</name>
<address>
Expand Down Expand Up @@ -40,18 +35,8 @@
</interp>
</interpGrp>
</edition>
<respStmt>
<resp>Transcription and commentary</resp>
<name sameAs="smayer" ref="https://orcid.org/0000-0002-2915-5888">Mayer, Sandra</name>
<name sameAs="tfruewirth" ref="https://orcid.org/0000-0002-3997-5193">Frühwirth, Timo</name>
<name sameAs="dgrigoriou" ref="https://orcid.org/0000-0002-0914-9245">Grigoriou, Dimitra</name>
</respStmt>
<respStmt>
<resp>TEI Schema, ODD/RNG</resp>
<name ref="https://orcid.org/0000-0002-9575-9372" xml:id="pandorfer">Andorfer, Peter</name>
<name ref="https://orcid.org/0000-0002-0636-4476" xml:id="delsner">Elsner, Daniel</name>
</respStmt>
</editionStmt>
<respStmt><resp>Transcription and commentary</resp><name sameAs="smayer" ref="https://orcid.org/0000-0002-2915-5888">Mayer, Sandra</name><name sameAs="tfruewirth" ref="https://orcid.org/0000-0002-3997-5193">Frühwirth, Timo</name><name sameAs="dgrigoriou" ref="https://orcid.org/0000-0002-0914-9245">Grigoriou, Dimitra</name></respStmt>
<respStmt><resp>TEI Schema, ODD/RNG</resp><name ref="https://orcid.org/0000-0002-9575-9372" xml:id="pandorfer">Andorfer, Peter</name><name ref="https://orcid.org/0000-0002-0636-4476" xml:id="delsner">Elsner, Daniel</name></respStmt></editionStmt>
<publicationStmt>
<publisher>Austrian Centre for Digital Humanities and Cultural Heritage</publisher>
<pubPlace>Vienna</pubPlace>
Expand All @@ -67,8 +52,7 @@ for any purpose, even commercially.</p>
</licence>
<p>Copyright literary texts W. H. Auden Estate of W. H. Auden.</p>
</availability>
<idno type="handle">https://hdl.handle.net/21.11115/0000-000E-C306-F</idno>
</publicationStmt>
<idno type="handle">https://hdl.handle.net/21.11115/0000-000E-C306-F</idno></publicationStmt>
<seriesStmt>
<p>Machine-Readable Transcriptions of the Auden Musulin Papers</p>
</seriesStmt>
Expand Down Expand Up @@ -108,9 +92,7 @@ for any purpose, even commercially.</p>
</langUsage>
<correspDesc>
<correspAction type="sent">
<orgName>
<rs type="org" ref="#amp_organization_70">Postamt Kirchstetten (post office Kirchstetten)</rs>
</orgName>
<orgName><rs type="org" ref="#amp_organization_70">Postamt Kirchstetten (post office Kirchstetten)</rs></orgName>
<placeName ref="#amp_place_id_5">Kirchstetten</placeName>
<date notBefore-iso="1963-05-13T11:00:01+01:00" notAfter-iso="1963-05-13T12:00:00+01:00">1963-05-13T11:00:01+01:00/1963-05-13T12:00:00+01:00</date>
</correspAction>
Expand Down Expand Up @@ -159,22 +141,14 @@ for any purpose, even commercially.</p>
<div type="transcription" xml:id="transcription_amp_0001" xml:lang="en">
<div type="envelope">
<pb facs="https://iiif.acdh.oeaw.ac.at/amp/amp_0001/" type="envelope" ed="1r"/>
<ab>
<rs type="person" ref="#amp_person_4">
<unclear>Ch</unclear>ester</rs> in <rs type="place" ref="#amp_place_id_14">Florence</rs>
<unclear>.</unclear>
</ab>
<ab><rs type="person" ref="#amp_person_4"><unclear>Ch</unclear>ester</rs> in <rs type="place" ref="#amp_place_id_14">Florence</rs><unclear>.</unclear></ab>
<ab xml:lang="de">
<rs type="person" ref="#amp_person_2">Die Ba<unclear>ron</unclear>in<lb/>
Stella M<unclear>eu</unclear>ss<unclear>u</unclear>lin</rs>
<lb/>
Stella M<unclear>eu</unclear>ss<unclear>u</unclear>lin</rs><lb/>
<address>
<rs type="place" ref="#amp_place_id_11">
<del>Wien III</del>
<lb/>
<del>Neulinggasse 26</del>
</rs>
</address>
<rs type="place" ref="#amp_place_id_11"><del>Wien III</del><lb/>
<del>Neulinggasse 26</del></rs>
</address>
</ab>
<ab xml:lang="de">
<address>
Expand All @@ -185,18 +159,16 @@ for any purpose, even commercially.</p>
</address>
</ab>
<pb facs="https://iiif.acdh.oeaw.ac.at/amp/amp_0002/" type="envelope" ed="1v"/>
<ab>
<rs type="person" ref="#amp_person_1">W.H.Auden</rs>
<unclear>,</unclear>
<lb/>
<seg hand="#printed">
<address>
<rs type="place" ref="#amp_place_id_2">KIRCHSTETTEN (<foreign xml:lang="de">WESTBAHN</foreign>)<lb/>
<ab>
<rs type="person" ref="#amp_person_1">W.H.Auden</rs><unclear>,</unclear><lb/>
<seg hand="#printed">
<address>
<rs type="place" ref="#amp_place_id_2">KIRCHSTETTEN (<foreign xml:lang="de">WESTBAHN</foreign>)<lb/>
HINTERHOLZ 6<lb/>
<foreign xml:lang="de">N.-Ö.</foreign>, AUSTRIA</rs>
</address>
</seg>
</ab>
</address>
</seg>
</ab>
</div>
<div type="letter">
<pb facs="https://iiif.acdh.oeaw.ac.at/amp/amp_0003/" type="letter" ed="2r"/>
Expand All @@ -209,26 +181,19 @@ for any purpose, even commercially.</p>
<address>
<rs type="place" ref="#amp_place_id_2">KIRCHSTETTEN (<foreign xml:lang="de">WESTBAHN</foreign>)<lb/>
HINTERHOLZ 6<lb/>
<foreign xml:lang="de">N.-Ö.</foreign>, AUSTRIA</rs>
<foreign xml:lang="de">N.-Ö.</foreign>, AUSTRIA</rs>
</address>
</seg>
</placeName>
</dateline>
<salute>Dear <rs type="person" ref="#amp_person_2">Stella</rs>:</salute>
</opener>
<p>
Delighted to hear you are <rs type="place" ref="#amp_place_id_11">
<foreign xml:lang="de">zu Haus</foreign>
</rs>.<lb/>
Delighted to hear you are <rs type="place" ref="#amp_place_id_11"><foreign xml:lang="de">zu Haus</foreign></rs>.<lb/>
No, I d<unclear>i</unclear>dnt get any letter from you. <unclear>Pe</unclear>rhaps<lb/>
it is in the <unclear>.</unclear>
<rs type="place" ref="#amp_place_id_15">U.S.</rs>
<unclear>,</unclear>
<rs type="event" ref="#amp_event_id_69" ana="#ana_006">I shall be in <rs type="place" ref="#amp_place_id_1">Vienna</rs> this<lb/>
coming week on Monday, <del>T<unclear>hur</unclear>
</del> Wednesday and Friday</rs>.<lb/>
<rs type="event" ref="#amp_event_id_71">Wi<unclear>ll</unclear> try to call you to-mo<unclear>rrow</unclear>
</rs> to arrange<lb/>
it is in the <unclear>.</unclear><rs type="place" ref="#amp_place_id_15">U.S.</rs><unclear>,</unclear> <rs type="event" ref="#amp_event_id_69" ana="#ana_006">I shall be in <rs type="place" ref="#amp_place_id_1">Vienna</rs> this<lb/>
coming week on Monday, <del>T<unclear>hur</unclear></del> Wednesday and Friday</rs>.<lb/>
<rs type="event" ref="#amp_event_id_71">Wi<unclear>ll</unclear> try to call you to-mo<unclear>rrow</unclear></rs> to arrange<lb/>
a meeting.
</p>
<p>
Expand All @@ -237,9 +202,7 @@ for any purpose, even commercially.</p>
</p>
<closer>
<salute>love</salute>
<signed>
<rs type="person" ref="#amp_person_1">Wystan</rs>
</signed>
<signed><rs type="person" ref="#amp_person_1">Wystan</rs></signed>
</closer>
</div>
<pb facs="https://iiif.acdh.oeaw.ac.at/amp/amp_0004/" type="letter" ed="2v"/>
Expand Down
Loading

0 comments on commit af60953

Please sign in to comment.