Sveino / Inst4CIM-KG

Instance of CIM Knowledge Graph
Apache License 2.0
5 stars 1 forks source link

cims:stereotype: string vs URL #104

Open VladimirAlexiev opened 1 month ago

VladimirAlexiev commented 1 month ago

Some cims:stereotype values are strings (eg enum, others are URLs (eg uml:atribute).

Note: I defined this prefix to shorten URLs that appear in cims:stereotype: "uml": "http://iec.ch/TC57/NonStandard/UML#"

This is not wrong per se, but is slightly bad style. It makes for this ugly piece in the JSONLD ontology (eu:OperationalLimitType.kind):

      "cims:stereotype": [
        "European",
        {
          "@id": "uml:attribute"
        }
      ],

Compare to this other piece of metadata that is rendered nicely:

      "cims:multiplicity": "cims:M:1..1",

It's because I declare in the context:

  "cims:multiplicity"      : {"@type": "@id"},

But I can't do that for cims:stereotype because it has mixed values

griddigit-ci commented 3 weeks ago

I think we need to improve here. This is a discussion item. Ideally