Skip to content

Commit

Permalink
Add template READMEs to the repo, and actually add them to builds in …
Browse files Browse the repository at this point in the history
…Jenkinsfile
  • Loading branch information
justaddcoffee committed Sep 29, 2020
1 parent ac8eaef commit 3361fa2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,11 @@ pipeline {
// stats dir
sh 'mkdir $BUILDSTARTDATE/stats/'
sh 'cp -p *_stats.yaml $BUILDSTARTDATE/stats/'
sh 'cp templates/README.build $BUILDSTARTDATE/README'

// make local $S3PROJECTDIR
sh 'mkdir $S3PROJECTDIR'
sh 'cp templates/README.toplevel $S3PROJECTDIR/README'
// add dir for existing builds so they are indexed
// do an s3cmd ls for our project subdir, for each existing build make a local dir in $S3PROJECTDIR
sh "for dir in `s3cmd ls s3://kg-hub-public-data/kg-covid-19/ | grep '\\/\$' | awk '{print \$NF}' | grep -w -v -E 'raw|current' | xargs -n1 basename`; do mkdir -p $S3PROJECTDIR/\$dir; done"
Expand Down
13 changes: 13 additions & 0 deletions templates/README.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
The files in this directory represent a build of the KG-COVID-19 knowledge graph.

These file include:
• Jenkinsfile - the exact command run to produce this build of the KG
• kg-covid-19.jnl.gz - a blazegraph journal that can be loaded to produce a Blazegraph endpoint
• kg-covid-19.nt.gz - an ntriples/RDF version of the KG
• kg-covid-19.tar.gz - a tar.gz file containing the KG in KGX TSV format

The subdirectories in this directory are:

• raw - the raw data that was downloaded and transformed to produce this KG
• stats - statistics about this build of the KG in yaml format
• transformed - the transformed subgraphs for each source we ingest
6 changes: 6 additions & 0 deletions templates/README.toplevel
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
The subdirectories here each contain a build of the KG-COVID-19 knowledge graph.
The directories are named with a timestamp (YYYYMMDD) according to when the build
was produced. The current/ directory is the most recent build.

See the README in the build directory for a detailed explanation of each file
contained in that directory.

0 comments on commit 3361fa2

Please sign in to comment.