Skip to content

Commit

Permalink
Fix schema ld generation unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
somathias committed Jan 17, 2024
1 parent bd19324 commit 393ef24
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions test/unit/bio_schema/schema_ld_generation_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def setup
'@type' => 'DataCatalog',
'@id' => 'http://fairyhub.org',
'dct:conformsTo' => 'https://bioschemas.org/profiles/DataCatalog/0.3-RELEASE-2019_07_01/',
'name' => 'Sysmo SEEK',
'name' => 'SciLifeLab Digital Research Hub',
'url' => 'http://fairyhub.org',
'dataset' => [
{ '@type' => 'Dataset', '@id' => 'http://fairyhub.org/collections', 'name' => 'Collections' },
Expand All @@ -40,9 +40,9 @@ def setup
'keywords' => 'a, b, c, d',
'provider' => {
'@type' => 'Organization',
'name' => 'SysMO-DB',
'url' => 'http://www.sysmo-db.org',
'@id' => 'http://www.sysmo-db.org'
'name' => 'SciLifeLab Data Centre',
'url' => 'https://www.scilifelab.se/data/',
'@id' => 'https://www.scilifelab.se/data/'
},
'dateCreated' => @current_time.iso8601,
'dateModified' => @current_time.iso8601
Expand All @@ -69,7 +69,7 @@ def setup
'@type' => 'DataCatalog',
'@id' => 'http://fairyhub.org',
'dct:conformsTo' => 'https://bioschemas.org/profiles/DataCatalog/0.3-RELEASE-2019_07_01/',
'name' => 'Sysmo SEEK',
'name' => 'SciLifeLab Digital Research Hub',
'url' => 'http://fairyhub.org',
'dataset' => [
{ '@type' => 'Dataset', '@id' => 'http://fairyhub.org/institutions', 'name' => 'Institutions' },
Expand All @@ -81,9 +81,9 @@ def setup
'keywords' => 'a, b, c, d',
'provider' => {
'@type' => 'Organization',
'name' => 'SysMO-DB',
'url' => 'http://www.sysmo-db.org',
'@id' => 'http://www.sysmo-db.org'
'name' => 'SciLifeLab Data Centre',
'url' => 'https://www.scilifelab.se/data/',
'@id' => 'https://www.scilifelab.se/data/'
},
'dateCreated' => @current_time.iso8601,
'dateModified' => @current_time.iso8601
Expand Down Expand Up @@ -854,15 +854,15 @@ def setup
'@type' => 'Dataset',
'dct:conformsTo' => 'https://bioschemas.org/profiles/Dataset/0.3-RELEASE-2019_06_14/',
'@id' => 'http://localhost:3000/workflows',
'description' => 'Workflows in Sysmo SEEK.',
'description' => 'Workflows in SciLifeLab Digital Research Hub.',
'name' => 'Workflows',
'url' => 'http://localhost:3000/workflows',
'keywords' => [],
'license' => 'https://spdx.org/licenses/CC0-1.0',
'creator' => [{'@type' => 'Organization',
'@id' => 'http://www.sysmo-db.org',
'name' => 'SysMO-DB',
'url' => 'http://www.sysmo-db.org'}],
'@id' => 'https://www.scilifelab.se/data/',
'name' => 'SciLifeLab Data Centre',
'url' => 'https://www.scilifelab.se/data/'}],
'includedInDataCatalog' => {'@id' => 'http://localhost:3000'}
}

Expand All @@ -888,21 +888,21 @@ def setup
'@type' => 'Dataset',
'dct:conformsTo' => 'https://bioschemas.org/profiles/Dataset/0.3-RELEASE-2019_06_14/',
'@id' => 'http://localhost:3000/workflows',
'description' => 'Workflows in Sysmo SEEK.',
'description' => 'Workflows in SciLifeLab Digital Research Hub.',
'name' => 'Workflows',
'url' => 'http://localhost:3000/workflows',
'keywords' => [],
'license' => 'https://spdx.org/licenses/CC-BY-4.0',
'creator' => [{ '@type' => 'Organization',
'@id' => 'http://www.sysmo-db.org',
'name' => 'SysMO-DB',
'url' => 'http://www.sysmo-db.org' }],
'@id' => 'https://www.scilifelab.se/data/',
'name' => 'SciLifeLab Data Centre',
'url' => 'https://www.scilifelab.se/data/' }],
'distribution' => { '@type' => 'DataDownload',
'contentSize' => size,
'contentUrl' => 'http://localhost:3000/workflows.jsonld?dump=true',
'encodingFormat' => 'application/ld+json',
'name' => 'workflows-bioschemas-dump.jsonld',
'description' => 'A collection of public Workflows in Sysmo SEEK, serialized as an array of JSON-LD objects conforming to Bioschemas profiles.',
'description' => 'A collection of public Workflows in SciLifeLab Digital Research Hub, serialized as an array of JSON-LD objects conforming to Bioschemas profiles.',
'dateModified' => @current_time.iso8601 },
'includedInDataCatalog' => { '@id' => 'http://localhost:3000' }
}
Expand Down

0 comments on commit 393ef24

Please sign in to comment.