Open sebplorenz opened 2 years ago
This is the update resource message, that is sent from the DSC to the Broker:
--93720013-b1f9-4cac-b255-298fc073192e\r\n
Content-Disposition: form-data; name="header"\r\n
Content-Length: 1091\r\n
\r\n
{
"@context" : {
"ids" : "https://w3id.org/idsa/core/",
"idsc" : "https://w3id.org/idsa/code/"
},
"@type" : "ids:ResourceUpdateMessage",
"@id" : "https://w3id.org/idsa/autogen/resourceUpdateMessage/7babfb10-c0a6-4d0e-8782-7e4e6ace1959",
"ids:modelVersion" : "4.2.7",
"ids:issued" : {
"@value" : "2022-03-30T12:34:02.562Z",
"@type" : "http://www.w3.org/2001/XMLSchema#dateTimeStamp"
},
"ids:issuerConnector" : {
"@id" : "https://w3id.org/idsa/autogen/baseConnector/provider"
},
"ids:recipientConnector" : [ ],
"ids:senderAgent" : {
"@id" : "https://w3id.org/idsa/autogen/baseConnector/provider"
},
"ids:recipientAgent" : [ ],
"ids:securityToken" : {
"@type" : "ids:DynamicAttributeToken",
"@id" : "https://w3id.org/idsa/autogen/dynamicAttributeToken/9f43f17d-18db-4208-95b0-1af14ecd7cc1",
"ids:tokenValue" : "INVALID_TOKEN",
"ids:tokenFormat" : {
"@id" : "https://w3id.org/idsa/code/JWT"
}
},
"ids:affectedResource" : {
"@id" : "http://localhost:49190/api/offers/e0ec42c0-5367-4522-ab02-1fb25dbabc96"
}
}\r\n
--93720013-b1f9-4cac-b255-298fc073192e\r\n
Content-Disposition: form-data; name="payload"\r\n
Content-Length: 4719\r\n
\r\n
{
"@context" : {
"ids" : "https://w3id.org/idsa/core/",
"idsc" : "https://w3id.org/idsa/code/"
},
"@type" : "ids:Resource",
"@id" : "http://localhost:49190/api/offers/e0ec42c0-5367-4522-ab02-1fb25dbabc96",
"ids:description" : [ {
"@value" : "Standard-Auswertung (1 km Auflösung) der Radarreflektivitätsverteilung (WX-Produkt) erzeugt durch Überlagerung der Reflektivitäten aller Radarstandorte in Deutschland.",
"@language" : "EN"
} ],
"ids:version" : "1",
"ids:language" : [ {
"@id" : "https://w3id.org/idsa/code/EN"
} ],
"ids:standardLicense" : {
"@id" : ""
},
"ids:title" : [ {
"@value" : "Niederschlagsradar",
"@language" : "EN"
} ],
"ids:resourceEndpoint" : [ {
"@type" : "ids:ConnectorEndpoint",
"@id" : "https://w3id.org/idsa/autogen/connectorEndpoint/1070f560-3f82-4b30-b09b-c7442f36b215",
"ids:accessURL" : {
"@id" : "http://localhost:49190/api/offers/e0ec42c0-5367-4522-ab02-1fb25dbabc96"
},
"ids:endpointDocumentation" : [ {
"@id" : ""
} ],
"ids:endpointInformation" : [ ]
} ],
"ids:contractOffer" : [ {
"@type" : "ids:ContractOffer",
"@id" : "http://localhost:49190/api/contracts/41cc98dc-fc04-43c6-8a7e-62498ea63702",
"ids:provider" : {
"@id" : ""
},
"ids:permission" : [ {
"@type" : "ids:Permission",
"@id" : "http://localhost:49190/api/rules/199345ca-aed6-40ee-b995-ac69fb3d458a",
"ids:description" : [ {
"@value" : "provide-access",
"@type" : "http://www.w3.org/2001/XMLSchema#string"
} ],
"ids:postDuty" : [ ],
"ids:title" : [ {
"@value" : "Provide Access Usage Policy",
"@type" : "http://www.w3.org/2001/XMLSchema#string"
} ],
"ids:assignee" : [ ],
"ids:assigner" : [ ],
"ids:constraint" : [ ],
"ids:action" : [ {
"@id" : "https://w3id.org/idsa/code/USE"
} ],
"ids:preDuty" : [ ]
} ],
"ids:contractEnd" : {
"@value" : "2022-03-30T12:33:46.139Z",
"@type" : "http://www.w3.org/2001/XMLSchema#dateTimeStamp"
},
"ids:contractStart" : {
"@value" : "2022-03-30T12:33:46.139Z",
"@type" : "http://www.w3.org/2001/XMLSchema#dateTimeStamp"
},
"ids:contractDate" : {
"@value" : "2022-03-30T12:34:02.519Z",
"@type" : "http://www.w3.org/2001/XMLSchema#dateTimeStamp"
},
"ids:prohibition" : [ ],
"ids:obligation" : [ ],
"ids:consumer" : {
"@id" : ""
}
} ],
"ids:sample" : [ ],
"ids:representation" : [ {
"@type" : "ids:Representation",
"@id" : "http://localhost:49190/api/representations/7d632923-cdd1-43b6-9e16-3a10ff3cfff3",
"ids:description" : [ ],
"ids:mediaType" : {
"@type" : "ids:IANAMediaType",
"@id" : "https://w3id.org/idsa/autogen/iANAMediaType/5d8d2428-94ff-4048-844c-70e317369a67",
"ids:filenameExtension" : "json"
},
"ids:language" : {
"@id" : "https://w3id.org/idsa/code/EN"
},
"ids:title" : [ ],
"ids:created" : {
"@value" : "2022-03-30T12:33:46.073Z",
"@type" : "http://www.w3.org/2001/XMLSchema#dateTimeStamp"
},
"ids:modified" : {
"@value" : "2022-03-30T12:33:46.073Z",
"@type" : "http://www.w3.org/2001/XMLSchema#dateTimeStamp"
},
"ids:representationStandard" : {
"@id" : ""
},
"ids:instance" : [ {
"@type" : "ids:Artifact",
"@id" : "http://localhost:49190/api/artifacts/78f6e546-a68e-4f93-a8e2-7b8c04890bff",
"ids:byteSize" : 0,
"ids:checkSum" : "0",
"ids:creationDate" : {
"@value" : "2022-03-30T12:33:46.067Z",
"@type" : "http://www.w3.org/2001/XMLSchema#dateTimeStamp"
},
"ids:fileName" : "",
"ids:creationDate" : "2021-08-10T13:00:00.000Z"
} ],
"ids:created" : "2021-08-10T13:00:00.000Z",
"ids:modified" : "2021-08-10T13:00:00.000Z"
} ],
"ids:defaultRepresentation" : [ ],
"ids:theme" : [ ],
"ids:keyword" : [ {
"@value" : "Open Data",
"@language" : "EN"
}, {
"@value" : "DWD",
"@language" : "EN"
} ],
"ids:temporalCoverage" : [ ],
"ids:contentPart" : [ ],
"ids:spatialCoverage" : [ ],
"ids:created" : {
"@value" : "2022-03-30T12:33:46.151Z",
"@type" : "http://www.w3.org/2001/XMLSchema#dateTimeStamp"
},
"ids:modified" : {
"@value" : "2022-03-30T12:33:46.151Z",
"@type" : "http://www.w3.org/2001/XMLSchema#dateTimeStamp"
},
"ids:resourcePart" : [ ],
"ids:sovereign" : {
"@id" : "https://dwd.com"
},
"ids:publisher" : {
"@id" : "https://dwd.com"
},
"ids:version" : "3",
"https://w3id.org/mobids/DataCategory" : "\"Klima_und_Wetter\"^^http://www.w3.org/2001/XMLSchema#string"
}\r\n
--93720013-b1f9-4cac-b255-298fc073192e--\r\n
This is the update resource message, that is sent from the DSC 7.0.0 to the Broker:
--9db9bc09-30de-48cf-bd44-b9d52ddac397\r\n
Content-Disposition: form-data; name="header"\r\n
Content-Length: 1027\r\n
\r\n
{
"@context" : {
"ids" : "https://w3id.org/idsa/core/",
"idsc" : "https://w3id.org/idsa/code/"
},
"@type" : "ids:ResourceUpdateMessage",
"@id" : "https://w3id.org/idsa/autogen/resourceUpdateMessage/a62c1c4a-a954-4d94-8e86-06799e934a5b",
"ids:affectedResource" : {
"@id" : "http://localhost:49197/api/offers/2f0d2ad1-0c4b-4482-a1b6-ce23e7572aef"
},
"ids:modelVersion" : "4.2.7",
"ids:issued" : {
"@value" : "2022-03-30T13:23:14.216Z",
"@type" : "http://www.w3.org/2001/XMLSchema#dateTimeStamp"
},
"ids:issuerConnector" : {
"@id" : "https://w3id.org/idsa/autogen/baseConnector/provider"
},
"ids:senderAgent" : {
"@id" : "https://w3id.org/idsa/autogen/baseConnector/provider"
},
"ids:securityToken" : {
"@type" : "ids:DynamicAttributeToken",
"@id" : "https://w3id.org/idsa/autogen/dynamicAttributeToken/ecb0de63-71a5-4feb-ae89-ae4e21fd4707",
"ids:tokenValue" : "INVALID_TOKEN",
"ids:tokenFormat" : {
"@id" : "https://w3id.org/idsa/code/JWT"
}
}
}\r\n
--9db9bc09-30de-48cf-bd44-b9d52ddac397\r\n
Content-Disposition: form-data; name="payload"\r\n
Content-Length: 4207\r\n
\r\n
{
"@context" : {
"ids" : "https://w3id.org/idsa/core/",
"idsc" : "https://w3id.org/idsa/code/"
},
"@type" : "ids:Resource",
"@id" : "http://localhost:49197/api/offers/2f0d2ad1-0c4b-4482-a1b6-ce23e7572aef",
"ids:language" : [ {
"@id" : "https://w3id.org/idsa/code/EN"
} ],
"ids:version" : "1",
"ids:description" : [ {
"@value" : "Standard-Auswertung (1 km Auflösung) der Radarreflektivitätsverteilung (WX-Produkt) erzeugt durch Überlagerung der Reflektivitäten aller Radarstandorte in Deutschland.",
"@language" : "EN"
} ],
"ids:title" : [ {
"@value" : "Niederschlagsradar",
"@language" : "EN"
} ],
"ids:representation" : [ {
"@type" : "ids:Representation",
"@id" : "http://localhost:49197/api/representations/62f0cfba-c0e3-4153-a340-621388230157",
"ids:mediaType" : {
"@type" : "ids:IANAMediaType",
"@id" : "https://w3id.org/idsa/autogen/iANAMediaType/6c1ffb44-fc2b-45b1-b414-eecace8cb73c",
"ids:filenameExtension" : "json"
},
"ids:language" : {
"@id" : "https://w3id.org/idsa/code/EN"
},
"ids:created" : {
"@value" : "2022-03-30T13:22:57.591Z",
"@type" : "http://www.w3.org/2001/XMLSchema#dateTimeStamp"
},
"ids:modified" : {
"@value" : "2022-03-30T13:22:57.591Z",
"@type" : "http://www.w3.org/2001/XMLSchema#dateTimeStamp"
},
"ids:instance" : [ {
"@type" : "ids:Artifact",
"@id" : "http://localhost:49197/api/artifacts/fad9ec62-fc4c-4645-8dfb-c9e767e56d32",
"ids:creationDate" : {
"@value" : "2022-03-30T13:22:57.584Z",
"@type" : "http://www.w3.org/2001/XMLSchema#dateTimeStamp"
},
"ids:byteSize" : 0,
"ids:checkSum" : "0",
"ids:creationDate" : "2021-08-10T13:00:00.000Z"
} ],
"ids:representationStandard" : {
"@id" : ""
},
"ids:created" : "2021-08-10T13:00:00.000Z",
"ids:modified" : "2021-08-10T13:00:00.000Z"
} ],
"ids:publisher" : {
"@id" : "https://dwd.com"
},
"ids:sovereign" : {
"@id" : "https://dwd.com"
},
"ids:created" : {
"@value" : "2022-03-30T13:22:58.217Z",
"@type" : "http://www.w3.org/2001/XMLSchema#dateTimeStamp"
},
"ids:standardLicense" : {
"@id" : ""
},
"ids:resourceEndpoint" : [ {
"@type" : "ids:ConnectorEndpoint",
"@id" : "https://w3id.org/idsa/autogen/connectorEndpoint/1b65ddf3-38bc-44b9-b203-9a4b7471450c",
"ids:endpointDocumentation" : [ {
"@id" : ""
} ],
"ids:accessURL" : {
"@id" : "http://localhost:49197/api/offers/2f0d2ad1-0c4b-4482-a1b6-ce23e7572aef"
}
} ],
"ids:contractOffer" : [ {
"@type" : "ids:ContractOffer",
"@id" : "http://localhost:49197/api/contracts/53cd4c66-34e9-4825-bca4-83d6dc232e93",
"ids:provider" : {
"@id" : ""
},
"ids:permission" : [ {
"@type" : "ids:Permission",
"@id" : "http://localhost:49197/api/rules/c5dd35d1-f4c6-4996-9df5-06ba9b96041f",
"ids:description" : [ {
"@value" : "provide-access",
"@type" : "http://www.w3.org/2001/XMLSchema#string"
} ],
"ids:title" : [ {
"@value" : "Provide Access Usage Policy",
"@type" : "http://www.w3.org/2001/XMLSchema#string"
} ],
"ids:action" : [ {
"@id" : "https://w3id.org/idsa/code/USE"
} ]
} ],
"ids:consumer" : {
"@id" : ""
},
"ids:contractEnd" : {
"@value" : "2022-03-30T13:22:58.209Z",
"@type" : "http://www.w3.org/2001/XMLSchema#dateTimeStamp"
},
"ids:contractStart" : {
"@value" : "2022-03-30T13:22:58.209Z",
"@type" : "http://www.w3.org/2001/XMLSchema#dateTimeStamp"
},
"ids:contractDate" : {
"@value" : "2022-03-30T13:23:14.185Z",
"@type" : "http://www.w3.org/2001/XMLSchema#dateTimeStamp"
}
} ],
"ids:keyword" : [ {
"@value" : "Open Data",
"@language" : "EN"
}, {
"@value" : "DWD",
"@language" : "EN"
} ],
"ids:modified" : {
"@value" : "2022-03-30T13:22:58.217Z",
"@type" : "http://www.w3.org/2001/XMLSchema#dateTimeStamp"
},
"ids:version" : "3",
"https://w3id.org/mobids/DataCategory" : "\"Klima_und_Wetter\"^^http://www.w3.org/2001/XMLSchema#string"
}\r\n
--9db9bc09-30de-48cf-bd44-b9d52ddac397--\r\n
To reconstruct the error, feel free to check out https://github.com/Fraunhofer-IVI/drm-integration and run
mvn -Dtest=DSC_7_0_3_Test test
When registering a resource at the Broker via DSC, I'm getting an error. Since the resource is registered at the DSC 7.0 I assume that the resource is valid. These are the logs:
(Logs with [DSC] are coming from DSC and logs with [broker] are Broker logs)