mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
update test data
This commit is contained in:
parent
85df6a27b9
commit
6dd1fa5d36
@ -5,28 +5,43 @@ const metadata: Partial<MetaData> = {
|
||||
name: undefined,
|
||||
type: "dataset",
|
||||
description: "Weather information of UK including temperature and humidity",
|
||||
dateCreated: "2012-02-01T10:55:11+00:00",
|
||||
dateCreated: "2012-10-10T17:00:000Z",
|
||||
datePublished: "2012-10-10T17:00:000Z",
|
||||
author: "Met Office",
|
||||
license: "CC-BY",
|
||||
copyrightHolder: "Met Office",
|
||||
// tslint:disable-next-line
|
||||
workExample: "stationId,latitude,longitude,datetime,temperature,humidity423432fsd,51.509865,-0.118092,2011-01-01T10:55:11+00:00,7.2,68",
|
||||
files: [
|
||||
{
|
||||
url: "https://raw.githubusercontent.com/oceanprotocol/squid-js/develop/package.json",
|
||||
},
|
||||
{
|
||||
url: "https://raw.githubusercontent.com/oceanprotocol/squid-js/develop/README.md",
|
||||
},
|
||||
],
|
||||
workExample: "423432fsd,51.509865,-0.118092,2011-01-01T10:55:11+00:00,7.2,68",
|
||||
links: [
|
||||
{sample1: "http://data.ceda.ac.uk/badc/ukcp09/data/gridded-land-obs/gridded-land-obs-daily/"},
|
||||
{sample2: "http://data.ceda.ac.uk/badc/ukcp09/data/gridded-land-obs/gridded-land-obs-averages-25km/"},
|
||||
{fieldsDescription: "http://data.ceda.ac.uk/badc/ukcp09/"},
|
||||
{
|
||||
sample1: "http://data.ceda.ac.uk/badc/ukcp09/data/gridded-land-obs/gridded-land-obs-daily/",
|
||||
},
|
||||
{
|
||||
sample2: "http://data.ceda.ac.uk/badc/ukcp09/data/gridded-land-obs/gridded-land-obs-averages-25km/",
|
||||
},
|
||||
{
|
||||
fieldsDescription: "http://data.ceda.ac.uk/badc/ukcp09/",
|
||||
},
|
||||
],
|
||||
inLanguage: "en",
|
||||
tags: "weather, uk, 2011, temperature, humidity",
|
||||
categories: ["Economy", "Data Science"],
|
||||
tags: ["weather", "uk", "2011", "temperature", "humidity"],
|
||||
price: 10,
|
||||
files: [
|
||||
{
|
||||
url: "234ab87234acbd09543085340abffh21983ddhiiee982143827423421",
|
||||
checksum: "efb2c764274b745f5fc37f97c6b0e761",
|
||||
contentLength: 4535431,
|
||||
resourceId: "access-log2018-02-13-15-17-29-18386C502CAEA932",
|
||||
},
|
||||
{
|
||||
url: "234ab87234acbd6894237582309543085340abffh21983ddhiiee982143827423421",
|
||||
checksum: "085340abffh21495345af97c6b0e761",
|
||||
contentLength: 12324,
|
||||
},
|
||||
{
|
||||
url: "80684089027358963495379879a543085340abffh21983ddhiiee982143827abcc2",
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -87,14 +87,17 @@ export interface MetaDataBase {
|
||||
description?: string
|
||||
|
||||
/**
|
||||
* The date on which the asset was created by the originator in ISO 8601 format, Coordinated Universal Time.
|
||||
* The date on which the asset was created by the originator in
|
||||
* ISO 8601 format, Coordinated Universal Time.
|
||||
* @type {string}
|
||||
* @example "2019-01-31T08:38:32Z"
|
||||
*/
|
||||
dateCreated: string
|
||||
|
||||
/**
|
||||
* The date on which the asset DDO was registered into the metadata store. This value is created automatically by Aquarius upon registering, so this value can't be set.
|
||||
* The date on which the asset DDO was registered into the metadata store.
|
||||
* This value is created automatically by Aquarius upon registering,
|
||||
* so this value can't be set.
|
||||
* @type {string}
|
||||
* @example "2019-01-31T08:38:32Z"
|
||||
*/
|
||||
|
@ -93,19 +93,12 @@ describe("DDO", () => {
|
||||
name: "UK Weather information 2011",
|
||||
type: "dataset",
|
||||
description: "Weather information of UK including temperature and humidity",
|
||||
size: "3.1gb",
|
||||
dateCreated: "2012-10-10T17:00:000Z",
|
||||
datePublished: "2012-10-10T17:00:000Z",
|
||||
author: "Met Office",
|
||||
license: "CC-BY",
|
||||
copyrightHolder: "Met Office",
|
||||
encoding: "UTF-8",
|
||||
compression: "zip",
|
||||
contentType: "text/csv",
|
||||
workExample: "423432fsd,51.509865,-0.118092,2011-01-01T10:55:11+00:00,7.2,68",
|
||||
contentUrls: [
|
||||
"https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip",
|
||||
"https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip",
|
||||
],
|
||||
links: [
|
||||
{
|
||||
// tslint:disable-next-line
|
||||
@ -120,19 +113,20 @@ describe("DDO", () => {
|
||||
},
|
||||
],
|
||||
inLanguage: "en",
|
||||
tags: "weather, uk, 2011, temperature, humidity",
|
||||
categories: ["Economy", "Data Science"],
|
||||
tags: ["weather", "uk", "2011", "temperature", "humidity"],
|
||||
price: 10,
|
||||
files: [
|
||||
{
|
||||
url: "234ab87234acbd09543085340abffh21983ddhiiee982143827423421",
|
||||
checksum: "efb2c764274b745f5fc37f97c6b0e761",
|
||||
contentLength: "4535431",
|
||||
contentLength: 4535431,
|
||||
resourceId: "access-log2018-02-13-15-17-29-18386C502CAEA932",
|
||||
},
|
||||
{
|
||||
url: "234ab87234acbd6894237582309543085340abffh21983ddhiiee982143827423421",
|
||||
checksum: "085340abffh21495345af97c6b0e761",
|
||||
contentLength: "12324",
|
||||
contentLength: 12324,
|
||||
},
|
||||
{
|
||||
url: "80684089027358963495379879a543085340abffh21983ddhiiee982143827abcc2",
|
||||
@ -143,7 +137,7 @@ describe("DDO", () => {
|
||||
curation: {
|
||||
rating: 0.93,
|
||||
numVotes: 123,
|
||||
schema: "Binary Votting",
|
||||
schema: "Binary Voting",
|
||||
},
|
||||
additionalInformation: {
|
||||
updateFrecuency: "yearly",
|
||||
|
11
test/testdata/MetaData.ts
vendored
11
test/testdata/MetaData.ts
vendored
@ -6,15 +6,17 @@ export const metadataMock: MetaData = {
|
||||
type: "dataset",
|
||||
description: "Weather information of UK including temperature and humidity",
|
||||
dateCreated: "2012-10-10T17:00:000Z",
|
||||
datePublished: "2012-10-10T17:00:000Z",
|
||||
author: "Met Office",
|
||||
license: "CC-BY",
|
||||
copyrightHolder: "Met Office",
|
||||
workExample: "423432fsd,51.509865,-0.118092,2011-01-01T10:55:11+00:00,7.2,68",
|
||||
files: [
|
||||
{
|
||||
index: 0,
|
||||
url: "https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip",
|
||||
checksum: "085340abffh21495345af97c6b0e761",
|
||||
contentLength: "12324",
|
||||
contentLength: 12324,
|
||||
},
|
||||
{
|
||||
url: "https://testocnfiles.blob.core.windows.net/testfiles/testzkp2.zip",
|
||||
@ -34,17 +36,18 @@ export const metadataMock: MetaData = {
|
||||
},
|
||||
],
|
||||
inLanguage: "en",
|
||||
tags: "weather, uk, 2011, temperature, humidity",
|
||||
categories: ["Economy", "Data Science"],
|
||||
tags: ["weather", "uk", "2011", "temperature", "humidity"],
|
||||
price: 10,
|
||||
checksum: "",
|
||||
},
|
||||
curation: {
|
||||
rating: 0.93,
|
||||
numVotes: 123,
|
||||
schema: "Binary Votting",
|
||||
schema: "Binary Voting",
|
||||
},
|
||||
additionalInformation: {
|
||||
updateFrecuency: "yearly",
|
||||
updateFrequency: "yearly",
|
||||
structuredMarkup: [
|
||||
{
|
||||
uri: "http://skos.um.es/unescothes/C01194/jsonld",
|
||||
|
24
test/testdata/ddo.json
vendored
24
test/testdata/ddo.json
vendored
@ -166,18 +166,25 @@
|
||||
"name": "UK Weather information 2011",
|
||||
"type": "dataset",
|
||||
"description": "Weather information of UK including temperature and humidity",
|
||||
"size": "3.1gb",
|
||||
"dateCreated": "2012-10-10T17:00:000Z",
|
||||
"author": "Met Office",
|
||||
"license": "CC-BY",
|
||||
"copyrightHolder": "Met Office",
|
||||
"encoding": "UTF-8",
|
||||
"compression": "zip",
|
||||
"contentType": "text/csv",
|
||||
"workExample": "423432fsd,51.509865,-0.118092,2011-01-01T10:55:11+00:00,7.2,68",
|
||||
"contentUrls": [
|
||||
"https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"index": 0,
|
||||
"url": "https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip",
|
||||
"checksum": "085340abffh21495345af97c6b0e761",
|
||||
"contentLength": 12324
|
||||
},
|
||||
{
|
||||
"url": "https://testocnfiles.blob.core.windows.net/testfiles/testzkp2.zip"
|
||||
}
|
||||
],
|
||||
"links": [
|
||||
{
|
||||
"name": "Sample of Asset Data",
|
||||
@ -191,16 +198,17 @@
|
||||
}
|
||||
],
|
||||
"inLanguage": "en",
|
||||
"tags": "weather, uk, 2011, temperature, humidity",
|
||||
"categories": ["Economy", "Data Science"],
|
||||
"tags": ["weather", "uk", "2011", "temperature", "humidity"],
|
||||
"price": 10
|
||||
},
|
||||
"curation": {
|
||||
"rating": 0.93,
|
||||
"numVotes": 123,
|
||||
"schema": "Binary Votting"
|
||||
"schema": "Binary Voting"
|
||||
},
|
||||
"additionalInformation": {
|
||||
"updateFrecuency": "yearly",
|
||||
"updateFrequency": "yearly",
|
||||
"structuredMarkup": [
|
||||
{
|
||||
"uri": "http://skos.um.es/unescothes/C01194/jsonld",
|
||||
@ -215,4 +223,4 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user