2019-03-15 15:23:28 +01:00
|
|
|
import { MetaData } from "../../src" // @oceanprotocol/squid
|
|
|
|
|
|
|
|
const metadata: Partial<MetaData> = {
|
|
|
|
base: {
|
|
|
|
name: undefined,
|
|
|
|
type: "dataset",
|
|
|
|
description: "Weather information of UK including temperature and humidity",
|
2019-04-29 14:35:42 +02:00
|
|
|
dateCreated: "2012-10-10T17:00:000Z",
|
|
|
|
datePublished: "2012-10-10T17:00:000Z",
|
2019-03-15 15:23:28 +01:00
|
|
|
author: "Met Office",
|
|
|
|
license: "CC-BY",
|
|
|
|
copyrightHolder: "Met Office",
|
2019-04-29 14:35:42 +02:00
|
|
|
workExample: "423432fsd,51.509865,-0.118092,2011-01-01T10:55:11+00:00,7.2,68",
|
|
|
|
links: [
|
2019-03-15 15:23:28 +01:00
|
|
|
{
|
2019-04-29 14:35:42 +02:00
|
|
|
sample1: "http://data.ceda.ac.uk/badc/ukcp09/data/gridded-land-obs/gridded-land-obs-daily/",
|
2019-03-15 15:23:28 +01:00
|
|
|
},
|
|
|
|
{
|
2019-04-29 14:35:42 +02:00
|
|
|
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/",
|
2019-03-15 15:23:28 +01:00
|
|
|
},
|
|
|
|
],
|
|
|
|
inLanguage: "en",
|
2019-04-29 14:35:42 +02:00
|
|
|
categories: ["Economy", "Data Science"],
|
|
|
|
tags: ["weather", "uk", "2011", "temperature", "humidity"],
|
2019-03-15 15:23:28 +01:00
|
|
|
price: 10,
|
2019-04-29 14:35:42 +02:00
|
|
|
files: [
|
|
|
|
{
|
2019-04-29 15:24:21 +02:00
|
|
|
index: 0,
|
|
|
|
url: 'https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip'
|
2019-04-29 14:35:42 +02:00
|
|
|
},
|
|
|
|
{
|
2019-04-29 15:24:21 +02:00
|
|
|
index: 1,
|
|
|
|
url: 'https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip'
|
|
|
|
}
|
2019-04-29 14:35:42 +02:00
|
|
|
],
|
2019-03-15 15:23:28 +01:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
export const generateMetadata = (name: string): Partial<MetaData> => ({
|
|
|
|
...metadata,
|
|
|
|
base: {
|
|
|
|
...metadata.base,
|
|
|
|
name,
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
export const getMetadata = () => generateMetadata("TestAsset")
|