DOME-Marketplace / dome-odrl-profile

DOME Profile for Open Digital Rights Language (ODRL)
1 stars 0 forks source link

role on relatedParty (under a given individual) #3

Closed jlangkau closed 3 months ago

jlangkau commented 9 months ago

https://github.com/DOME-Marketplace/dome-odrl-profile/blob/2e2d4fc99494bb65a4ebb06c85e46ff01073077c/data/dev/current/party_indi_Provider_Seller.json#L25

seeing:

´´´ "role": "seller,customer,admin" ´´´

(

spetrac commented 3 months ago

The TMForum API Schema for RelatedParty is the following:

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "RelatedParty.schema.json",
  "title": "RelatedParty",
  "definitions": {
    "RelatedParty": {
      "$id": "#RelatedParty",
      "description": "Related Entity reference. A related party defines party or party role linked to a specific entity.",
      "type": "object",
      "required": [
        "id",
        "@referredType"
      ],
      "properties": {
        "role": {
          "type": "string",
          "description": "Role played by the related party"
        },
        "@referredType": {
          "type": "string",
          "description": "The actual type of the target instance when needed for disambiguation."
        }
      },
      "allOf": [
        {
          "$ref": "../Common/EntityRef.schema.json#EntityRef"
        }
      ]
    }
  }
}

Because this is not Linked Data, the RelatedParty can have the role property, while the related Entity does not have this property. The RelatedParty object is just a reference (as of its own description), so the role would state the role of the related entity regarding the source individual. This means for urn:ngsi-ld:individual:942d27e2-1bee-4436-a5fd-2505961f643f, the urn:ngsi-ld:organization:ca5393ab-1322-48cc-90aa-5af33e619331 is the seller, customer and admin (which is a really weird combination and should maybe be re-evaluated).