2018-11-01 11:04:59 +01:00
|
|
|
{
|
|
|
|
"@context": "https://w3id.org/future-method/v1",
|
2018-11-05 10:01:58 +01:00
|
|
|
"id": "did:op:08a429b8529856d59867503f8056903a680935a76950bb9649785cc97869a43d",
|
2018-11-01 11:04:59 +01:00
|
|
|
"publicKey": [
|
|
|
|
{
|
|
|
|
"id": "did:op:123456789abcdefghi#keys-1",
|
|
|
|
"type": "RsaVerificationKey2018",
|
|
|
|
"owner": "did:op:123456789abcdefghi",
|
|
|
|
"publicKeyPem": "-----BEGIN PUBLIC KEY...END PUBLIC KEY-----\r\n"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "did:op:123456789abcdefghi#keys-2",
|
|
|
|
"type": "Ed25519VerificationKey2018",
|
|
|
|
"owner": "did:op:123456789abcdefghi",
|
|
|
|
"publicKeyBase58": "H3C2AVvLMv6gmMNam3uVAjZpfkcJCwDwnZn6z3wXmqPV"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "did:op:123456789abcdefghi#keys-3",
|
|
|
|
"type": "RsaPublicKeyExchangeKey2018",
|
|
|
|
"owner": "did:op:123456789abcdefghi",
|
|
|
|
"publicKeyPem": "-----BEGIN PUBLIC KEY...END PUBLIC KEY-----\r\n"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"authentication": [
|
|
|
|
{
|
|
|
|
"type": "RsaSignatureAuthentication2018",
|
|
|
|
"publicKey": "did:op:123456789abcdefghi#keys-1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ieee2410Authentication2018",
|
|
|
|
"publicKey": "did:op:123456789abcdefghi#keys-2"
|
|
|
|
}
|
|
|
|
],
|
2018-11-05 10:01:58 +01:00
|
|
|
"proof": {
|
|
|
|
"type": "UUIDSignature",
|
|
|
|
"created": "2016-02-08T16:02:20Z",
|
|
|
|
"creator": "did:example:8uQhQMGzWxR8vw5P3UWH1ja",
|
|
|
|
"signatureValue": "QNB13Y7Q9...1tzjn4w=="
|
|
|
|
},
|
2018-11-01 11:04:59 +01:00
|
|
|
"service": [
|
|
|
|
{
|
2019-08-16 14:12:31 +02:00
|
|
|
"type": "access",
|
2019-08-16 16:12:42 +02:00
|
|
|
"index": 0,
|
2018-11-05 10:01:58 +01:00
|
|
|
"serviceEndpoint": "http://mybrizo.org/api/v1/brizo/services/consume?pubKey=${pubKey}&serviceId={serviceId}&url={url}",
|
|
|
|
"purchaseEndpoint": "http://mybrizo.org/api/v1/brizo/services/access/purchase?",
|
|
|
|
"templateId": "044852b2a670ade5407e78fb2863c51000000000000000000000000000000000",
|
|
|
|
"conditions": [
|
|
|
|
{
|
|
|
|
"name": "lockPayment",
|
|
|
|
"timeout": 0,
|
|
|
|
"conditionKey": {
|
|
|
|
"contractAddress": "0x...",
|
|
|
|
"fingerprint": "0x..."
|
|
|
|
},
|
|
|
|
"parameters": {
|
|
|
|
"assetId": "bytes32",
|
|
|
|
"price": "integer"
|
|
|
|
},
|
|
|
|
"events": {
|
|
|
|
"PaymentLocked": {
|
2019-08-15 13:23:56 +02:00
|
|
|
"actorType": ["publisher"],
|
2018-11-05 10:01:58 +01:00
|
|
|
"handlers": [
|
|
|
|
{
|
|
|
|
"moduleName": "accessControl",
|
|
|
|
"functionName": "grantAccess",
|
|
|
|
"version": "0.1"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "releasePayment",
|
|
|
|
"timeout": 0,
|
|
|
|
"conditionKey": {
|
|
|
|
"contractAddress": "0x...",
|
|
|
|
"fingerprint": "0xXXXXXXXX"
|
|
|
|
},
|
|
|
|
"parameters": {
|
|
|
|
"assetId": "bytes32",
|
|
|
|
"price": "integer"
|
|
|
|
},
|
|
|
|
"events": {
|
|
|
|
"PaymentReleased": {
|
2019-08-15 13:23:56 +02:00
|
|
|
"actorType": ["publisher"],
|
2018-11-05 10:01:58 +01:00
|
|
|
"handlers": [
|
|
|
|
{
|
|
|
|
"moduleName": "serviceAgreement",
|
|
|
|
"functionName": "fulfillAgreement",
|
|
|
|
"version": "0.1"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "grantAccess",
|
|
|
|
"timeout": 0,
|
|
|
|
"conditionKey": {
|
|
|
|
"contractAddress": "0x",
|
|
|
|
"fingerprint": "0xXXXXXXXX"
|
|
|
|
},
|
|
|
|
"parameters": {
|
|
|
|
"assetId": "bytes32",
|
|
|
|
"documentKeyId": "bytes32"
|
|
|
|
},
|
|
|
|
"events": {
|
|
|
|
"AccessGranted": {
|
2019-08-15 13:23:56 +02:00
|
|
|
"actorType": ["consumer"],
|
2018-11-05 10:01:58 +01:00
|
|
|
"handlers": [
|
|
|
|
{
|
|
|
|
"moduleName": "asset",
|
|
|
|
"functionName": "consumeService",
|
|
|
|
"version": "0.1"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "refundPayment",
|
|
|
|
"timeout": 1,
|
|
|
|
"condition_key": {
|
|
|
|
"contractAddress": "0x...",
|
|
|
|
"fingerprint": "0xXXXXXXXX"
|
|
|
|
},
|
|
|
|
"parameters": {
|
|
|
|
"assetId": "bytes32",
|
|
|
|
"price": "int"
|
|
|
|
},
|
|
|
|
"events": {
|
|
|
|
"PaymentRefund": {
|
2019-08-15 13:23:56 +02:00
|
|
|
"actorType": ["consumer"],
|
2018-11-05 10:01:58 +01:00
|
|
|
"handlers": [
|
|
|
|
{
|
|
|
|
"moduleName": "serviceAgreement",
|
|
|
|
"functionName": "fulfillAgreement",
|
|
|
|
"version": "0.1"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2018-11-01 11:04:59 +01:00
|
|
|
},
|
|
|
|
{
|
2019-08-16 14:12:31 +02:00
|
|
|
"type": "compute",
|
2019-08-16 16:12:42 +02:00
|
|
|
"index": 1,
|
2018-11-05 10:01:58 +01:00
|
|
|
"serviceEndpoint": "http://mybrizo.org/api/v1/brizo/services/compute?pubKey=${pubKey}&serviceId={serviceId}&algo={algo}&container={container}",
|
|
|
|
"templateId": "044852b2a670ade5407e78fb2863c51000000000000000000000000000000002"
|
2018-11-01 11:04:59 +01:00
|
|
|
},
|
|
|
|
{
|
2019-08-16 14:12:31 +02:00
|
|
|
"type": "metadata",
|
2019-08-16 16:12:42 +02:00
|
|
|
"index": 2,
|
2018-11-01 11:04:59 +01:00
|
|
|
"serviceEndpoint": "http://myaquarius.org/api/v1/provider/assets/metadata/{did}",
|
2019-08-16 16:12:42 +02:00
|
|
|
"attributes": {
|
|
|
|
"main": {
|
2018-11-01 11:04:59 +01:00
|
|
|
"name": "UK Weather information 2011",
|
|
|
|
"type": "dataset",
|
|
|
|
"dateCreated": "2012-10-10T17:00:000Z",
|
|
|
|
"author": "Met Office",
|
|
|
|
"license": "CC-BY",
|
2019-08-15 13:23:56 +02:00
|
|
|
"price": 10,
|
2019-04-29 14:35:42 +02:00
|
|
|
"files": [
|
|
|
|
{
|
2019-08-15 13:23:56 +02:00
|
|
|
"index": 0,
|
|
|
|
"url": "https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip",
|
|
|
|
"checksum": "085340abffh21495345af97c6b0e761",
|
|
|
|
"contentLength": 12324
|
2019-04-29 14:35:42 +02:00
|
|
|
},
|
|
|
|
{
|
2019-08-15 13:23:56 +02:00
|
|
|
"url": "https://testocnfiles.blob.core.windows.net/testfiles/testzkp2.zip"
|
2019-04-29 14:35:42 +02:00
|
|
|
}
|
2019-08-15 13:23:56 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"curation": {
|
|
|
|
"rating": 0.93,
|
|
|
|
"numVotes": 123,
|
|
|
|
"schema": "Binary Voting"
|
|
|
|
},
|
|
|
|
"additionalInformation": {
|
|
|
|
"description": "Weather information of UK including temperature and humidity",
|
|
|
|
"copyrightHolder": "Met Office",
|
|
|
|
"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"
|
|
|
|
],
|
2018-11-01 11:04:59 +01:00
|
|
|
"links": [
|
|
|
|
{
|
2018-11-05 10:01:58 +01:00
|
|
|
"name": "Sample of Asset Data",
|
|
|
|
"type": "sample",
|
|
|
|
"url": "https://foo.com/sample.csv"
|
2018-11-01 11:04:59 +01:00
|
|
|
},
|
|
|
|
{
|
2018-11-05 10:01:58 +01:00
|
|
|
"name": "Data Format Definition",
|
|
|
|
"type": "format",
|
|
|
|
"AssetID": "4d517500da0acb0d65a716f61330969334630363ce4a6a9d39691026ac7908ea"
|
2018-11-01 11:04:59 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"inLanguage": "en",
|
2019-04-29 14:35:42 +02:00
|
|
|
"categories": ["Economy", "Data Science"],
|
|
|
|
"tags": ["weather", "uk", "2011", "temperature", "humidity"],
|
|
|
|
"updateFrequency": "yearly",
|
2018-11-01 11:04:59 +01:00
|
|
|
"structuredMarkup": [
|
|
|
|
{
|
|
|
|
"uri": "http://skos.um.es/unescothes/C01194/jsonld",
|
|
|
|
"mediaType": "application/ld+json"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"uri": "http://skos.um.es/unescothes/C01194/turtle",
|
|
|
|
"mediaType": "text/turtle"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2019-04-29 14:35:42 +02:00
|
|
|
}
|