Skip to content

Commit

Permalink
First pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
keegansmith21 committed Jul 19, 2023
1 parent 730d6b7 commit 42deebd
Show file tree
Hide file tree
Showing 6 changed files with 442 additions and 382 deletions.
234 changes: 72 additions & 162 deletions oaebu_workflows/database/schema/ucl_discovery.json
Original file line number Diff line number Diff line change
@@ -1,195 +1,105 @@
[
{
"description": "Eprint id.",
"description": "ISBN13 of the book.",
"mode": "REQUIRED",
"name": "eprintid",
"name": "ISBN13",
"type": "STRING"
},
{
"description": "Title of the book.",
"description": "eprint ID of the book.",
"mode": "REQUIRED",
"name": "book_title",
"name": "eprint_id",
"type": "STRING"
},
{
"description": "Family name of the creators",
"mode": "REPEATED",
"name": "creators_name_family",
"type": "STRING"
},
{
"description": "Given name of the creators",
"mode": "REPEATED",
"name": "creators_name_given",
"type": "STRING"
},
{
"description": "Info on whether the book is published",
"mode": "NULLABLE",
"name": "ispublished",
"type": "STRING"
},
{
"description": "Subjects",
"mode": "REPEATED",
"name": "subjects",
"type": "STRING"
},
{
"description": "Divisions",
"mode": "REPEATED",
"name": "divisions",
"type": "STRING"
},
{
"description": "Keywords",
"mode": "REPEATED",
"name": "keywords",
"type": "STRING"
},
{
"description": "Abstract",
"mode": "NULLABLE",
"name": "abstract",
"type": "STRING"
},
{
"description": "Date",
"mode": "NULLABLE",
"name": "date",
"type": "STRING"
},
{
"description": "Publisher",
"mode": "NULLABLE",
"name": "publisher",
"type": "STRING"
},
{
"description": "Official URL",
"description": "Timescale of the statistics as reported by the origin.",
"mode": "NULLABLE",
"name": "official_url",
"type": "STRING"
},
{
"description": "OA status",
"mode": "NULLABLE",
"name": "oa_status",
"type": "STRING"
},
{
"description": "Language",
"mode": "NULLABLE",
"name": "language",
"type": "STRING"
},
{
"description": "DOI",
"mode": "NULLABLE",
"name": "doi",
"type": "STRING"
},
{
"description": "ISBN",
"mode": "NULLABLE",
"name": "isbn",
"type": "STRING"
},
{
"description": "ISBN10",
"mode": "NULLABLE",
"name": "isbn10",
"type": "STRING"
},
{
"description": "Language elements",
"mode": "NULLABLE",
"name": "language_elements",
"type": "STRING"
"name": "timescale",
"type": "RECORD",
"fields": [
{
"description": "Format of the 'to' and 'from' fields",
"mode": "NULLABLE",
"name": "format",
"type": "STRING"
},
{
"description": "Beginning of date range for the statistics",
"mode": "NULLABLE",
"name": "from",
"type": "STRING"
},
{
"description": "End of date range for the statistics",
"mode": "NULLABLE",
"name": "to",
"type": "STRING"
}
]
},
{
"description": "Series",
"description": "Origin of the statistics",
"mode": "NULLABLE",
"name": "series",
"type": "STRING"
},
{
"description": "Page range",
"mode": "NULLABLE",
"name": "pagerange",
"type": "STRING"
"name": "origin",
"type": "RECORD",
"fields": [
{
"description": "The URL of the origin",
"mode": "NULLABLE",
"name": "url",
"type": "STRING"
},
{
"description": "The name of the origin",
"mode": "NULLABLE",
"name": "name",
"type": "STRING"
}
]
},
{
"description": "Pages",
"description": "The aggregated statistics for the reported period",
"mode": "NULLABLE",
"name": "pages",
"type": "INTEGER"
},
{
"description": "Family name of the editors",
"mode": "REPEATED",
"name": "editors_name_family",
"type": "STRING"
},
{
"description": "Given name of the editors",
"mode": "REPEATED",
"name": "editors_name_given",
"type": "STRING"
},
{
"description": "Family name of the lyricists",
"mode": "REPEATED",
"name": "lyricists_name_family",
"type": "STRING"
},
{
"description": "Given name of the lyricists",
"mode": "REPEATED",
"name": "lyricists_name_given",
"type": "STRING"
},
{
"description": "Begin date.",
"mode": "REQUIRED",
"name": "begin_date",
"type": "DATE"
},
{
"description": "End date.",
"mode": "REQUIRED",
"name": "end_date",
"type": "DATE"
},
{
"description": "Number of downloads",
"mode": "REQUIRED",
"name": "total_downloads",
"type": "INTEGER"
},
{
"description": "Number of downloads per country",
"mode": "REPEATED",
"name": "downloads_per_country",
"name": "total",
"type": "RECORD",
"fields": [
{
"description": "Number of downloads for the given country",
"description": "The total number of item downloads for the reported month",
"mode": "NULLABLE",
"name": "download_count",
"name": "count",
"type": "INTEGER"
},
{
"description": "Country name",
"description": "The reported month as a string",
"mode": "NULLABLE",
"name": "country_name",
"name": "description",
"type": "STRING"
},
{
"description": "Country code",
"description": "The reported month stamp",
"mode": "NULLABLE",
"name": "datestamp",
"type": "STRING"
}
]
},
{
"description": "The aggregated statistics for each reported country",
"mode": "REPEATED",
"name": "country",
"type": "RECORD",
"fields": [
{
"description": "The two letter country code.",
"mode": "NULLABLE",
"name": "country_code",
"name": "value",
"type": "STRING"
},
{
"description": "The total number of item downloads for the reported period from this country.",
"mode": "NULLABLE",
"name": "count",
"type": "INTEGER"
}
]
},
Expand Down
3 changes: 0 additions & 3 deletions oaebu_workflows/fixtures/ucl_discovery/country.yaml

This file was deleted.

3 changes: 3 additions & 0 deletions oaebu_workflows/fixtures/ucl_discovery/download_cassette.yaml
Git LFS file not shown
3 changes: 0 additions & 3 deletions oaebu_workflows/fixtures/ucl_discovery/metadata.yaml

This file was deleted.

Loading

0 comments on commit 42deebd

Please sign in to comment.