1
0
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:
Matthias Kretschmann 2019-04-29 14:35:42 +02:00 committed by Pedro Gutiérrez
parent 85df6a27b9
commit 6dd1fa5d36
5 changed files with 64 additions and 41 deletions

View File

@ -5,28 +5,43 @@ const metadata: Partial<MetaData> = {
name: undefined, name: undefined,
type: "dataset", type: "dataset",
description: "Weather information of UK including temperature and humidity", 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", author: "Met Office",
license: "CC-BY", license: "CC-BY",
copyrightHolder: "Met Office", copyrightHolder: "Met Office",
// tslint:disable-next-line workExample: "423432fsd,51.509865,-0.118092,2011-01-01T10:55:11+00:00,7.2,68",
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",
},
],
links: [ 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/"}, sample1: "http://data.ceda.ac.uk/badc/ukcp09/data/gridded-land-obs/gridded-land-obs-daily/",
{fieldsDescription: "http://data.ceda.ac.uk/badc/ukcp09/"}, },
{
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", inLanguage: "en",
tags: "weather, uk, 2011, temperature, humidity", categories: ["Economy", "Data Science"],
tags: ["weather", "uk", "2011", "temperature", "humidity"],
price: 10, 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",
},
],
}, },
} }

View File

@ -87,14 +87,17 @@ export interface MetaDataBase {
description?: string 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} * @type {string}
* @example "2019-01-31T08:38:32Z" * @example "2019-01-31T08:38:32Z"
*/ */
dateCreated: string 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} * @type {string}
* @example "2019-01-31T08:38:32Z" * @example "2019-01-31T08:38:32Z"
*/ */

View File

@ -93,19 +93,12 @@ describe("DDO", () => {
name: "UK Weather information 2011", name: "UK Weather information 2011",
type: "dataset", type: "dataset",
description: "Weather information of UK including temperature and humidity", description: "Weather information of UK including temperature and humidity",
size: "3.1gb",
dateCreated: "2012-10-10T17:00:000Z", dateCreated: "2012-10-10T17:00:000Z",
datePublished: "2012-10-10T17:00:000Z",
author: "Met Office", author: "Met Office",
license: "CC-BY", license: "CC-BY",
copyrightHolder: "Met Office", 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", 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: [ links: [
{ {
// tslint:disable-next-line // tslint:disable-next-line
@ -120,19 +113,20 @@ describe("DDO", () => {
}, },
], ],
inLanguage: "en", inLanguage: "en",
tags: "weather, uk, 2011, temperature, humidity", categories: ["Economy", "Data Science"],
tags: ["weather", "uk", "2011", "temperature", "humidity"],
price: 10, price: 10,
files: [ files: [
{ {
url: "234ab87234acbd09543085340abffh21983ddhiiee982143827423421", url: "234ab87234acbd09543085340abffh21983ddhiiee982143827423421",
checksum: "efb2c764274b745f5fc37f97c6b0e761", checksum: "efb2c764274b745f5fc37f97c6b0e761",
contentLength: "4535431", contentLength: 4535431,
resourceId: "access-log2018-02-13-15-17-29-18386C502CAEA932", resourceId: "access-log2018-02-13-15-17-29-18386C502CAEA932",
}, },
{ {
url: "234ab87234acbd6894237582309543085340abffh21983ddhiiee982143827423421", url: "234ab87234acbd6894237582309543085340abffh21983ddhiiee982143827423421",
checksum: "085340abffh21495345af97c6b0e761", checksum: "085340abffh21495345af97c6b0e761",
contentLength: "12324", contentLength: 12324,
}, },
{ {
url: "80684089027358963495379879a543085340abffh21983ddhiiee982143827abcc2", url: "80684089027358963495379879a543085340abffh21983ddhiiee982143827abcc2",
@ -143,7 +137,7 @@ describe("DDO", () => {
curation: { curation: {
rating: 0.93, rating: 0.93,
numVotes: 123, numVotes: 123,
schema: "Binary Votting", schema: "Binary Voting",
}, },
additionalInformation: { additionalInformation: {
updateFrecuency: "yearly", updateFrecuency: "yearly",

View File

@ -6,15 +6,17 @@ export const metadataMock: MetaData = {
type: "dataset", type: "dataset",
description: "Weather information of UK including temperature and humidity", description: "Weather information of UK including temperature and humidity",
dateCreated: "2012-10-10T17:00:000Z", dateCreated: "2012-10-10T17:00:000Z",
datePublished: "2012-10-10T17:00:000Z",
author: "Met Office", author: "Met Office",
license: "CC-BY", license: "CC-BY",
copyrightHolder: "Met Office", copyrightHolder: "Met Office",
workExample: "423432fsd,51.509865,-0.118092,2011-01-01T10:55:11+00:00,7.2,68", workExample: "423432fsd,51.509865,-0.118092,2011-01-01T10:55:11+00:00,7.2,68",
files: [ files: [
{ {
index: 0,
url: "https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip", url: "https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip",
checksum: "085340abffh21495345af97c6b0e761", checksum: "085340abffh21495345af97c6b0e761",
contentLength: "12324", contentLength: 12324,
}, },
{ {
url: "https://testocnfiles.blob.core.windows.net/testfiles/testzkp2.zip", url: "https://testocnfiles.blob.core.windows.net/testfiles/testzkp2.zip",
@ -34,17 +36,18 @@ export const metadataMock: MetaData = {
}, },
], ],
inLanguage: "en", inLanguage: "en",
tags: "weather, uk, 2011, temperature, humidity", categories: ["Economy", "Data Science"],
tags: ["weather", "uk", "2011", "temperature", "humidity"],
price: 10, price: 10,
checksum: "", checksum: "",
}, },
curation: { curation: {
rating: 0.93, rating: 0.93,
numVotes: 123, numVotes: 123,
schema: "Binary Votting", schema: "Binary Voting",
}, },
additionalInformation: { additionalInformation: {
updateFrecuency: "yearly", updateFrequency: "yearly",
structuredMarkup: [ structuredMarkup: [
{ {
uri: "http://skos.um.es/unescothes/C01194/jsonld", uri: "http://skos.um.es/unescothes/C01194/jsonld",

View File

@ -166,17 +166,24 @@
"name": "UK Weather information 2011", "name": "UK Weather information 2011",
"type": "dataset", "type": "dataset",
"description": "Weather information of UK including temperature and humidity", "description": "Weather information of UK including temperature and humidity",
"size": "3.1gb",
"dateCreated": "2012-10-10T17:00:000Z", "dateCreated": "2012-10-10T17:00:000Z",
"author": "Met Office", "author": "Met Office",
"license": "CC-BY", "license": "CC-BY",
"copyrightHolder": "Met Office", "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", "workExample": "423432fsd,51.509865,-0.118092,2011-01-01T10:55:11+00:00,7.2,68",
"contentUrls": [ "contentUrls": [
"https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip" "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": [ "links": [
{ {
@ -191,16 +198,17 @@
} }
], ],
"inLanguage": "en", "inLanguage": "en",
"tags": "weather, uk, 2011, temperature, humidity", "categories": ["Economy", "Data Science"],
"tags": ["weather", "uk", "2011", "temperature", "humidity"],
"price": 10 "price": 10
}, },
"curation": { "curation": {
"rating": 0.93, "rating": 0.93,
"numVotes": 123, "numVotes": 123,
"schema": "Binary Votting" "schema": "Binary Voting"
}, },
"additionalInformation": { "additionalInformation": {
"updateFrecuency": "yearly", "updateFrequency": "yearly",
"structuredMarkup": [ "structuredMarkup": [
{ {
"uri": "http://skos.um.es/unescothes/C01194/jsonld", "uri": "http://skos.um.es/unescothes/C01194/jsonld",