Page History
...
>= approval accepts the QAEvent automatically, so nobody will see it from the Quality Assurance Page because it’s created and right after approved.
Test calls
Let's trigger an Announce Relationship (see COAR official pattern documentation here).
Firstly configure a Notify Service such as:
By clicking the + New green button fill the form as:
Pick the following POST call from the Postman project (see below to download it and import it to your installed PostMan instance):
Let's evaluate the request' json body (some field is commented) according to the COAR official documentation of this pattern:
{
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://purl.org/coar/notify"
],
"actor": {
"id": "https://research-organisation.org",
"name": "Research Organisation",
"type": "Organization"
},
"context": {
"id": "http://localhost:4000/handle/123456789/1119", //IMPORTANT!! this is the handle link to the item from the referred local repository
"ietf:cite-as": "https://doi.org/10.5555/12345680",
"type": "sorg:AboutPage",
"url": {
"id": "https://another-research-organisation.org/repository/datasets/item/201203421/data_archive.zip",
"mediaType": "application/zip",
"type": [
"Article",
"sorg:Dataset"
]
}
},
"id": "urn:uuid:2f4ec582-109e-4952-a94a-b7d7615a8c69", // IMPORTANT!! this must be a unique value because it's going to be stored as uuid into the ldn_message table.
"object": {
"as:object": "newValue",
"as:relationship": "somethingElse", // as "http://purl.org/vocab/frbr/core#supplement" or something else
"as:subject": "https://research-organisation.org/repository/item/201203/421/",
"id": "http://localhost:4000/handle:123456789/1119",
"type": "Relationship"
},
"origin": {
"id": "https://research-organisation.org/repository",
"inbox": "2f4ec582-109e-4952-a94a-b7d7615a8c69", // through this field we reach the configured Notify Service entity by matching this field to the one named LDN Inbox URL
"type": "Service"
},
"target": { // MUST be valid but it is not rilevant
"id": "https://another-research-organisation.org/repository",
"inbox": "https://another-research-organisation.org/inbox/",
"type": "Service"
},
"type": [
"Announce",
"coar-notify:RelationshipAction"
]
}
Here’s the Postman collection for all test purposes:
View file | ||||
---|---|---|---|---|
|
...