Skip to content

API JSON: a flow's payload and a dependency's prefix metadata differ from the metamodel #652

Description

@someshSandbox

Both are documented choices in rdf-mapping.md, so this is a request, not a bug report. For the API's JSON form, could they follow the metamodel?

Source Exported (documented at) Grammar (SysML-textual-bnf)
flow of Fuel from a.p.fuel to b.p.fuel; (the flow example in #651) sysx:payload → a FeatureReferenceExpression under an OwningMembership (rdf-mapping.md:532) FeatureMembership owning a PayloadFeature (:845-852)
#Tag dependency x to y; MetadataUsage under an OwningMembership of the dependency (rdf-mapping.md:458-466) an Annotation whose annotatingElement is the MetadataUsage (:51-53, :1660-1662)
package A {
    metadata def Tag;
    part x;
    part y;
    #Tag dependency x to y;
}

A reader of standard API JSON finds no payload feature on the flow, and no annotation on the dependency.

:532 gives the reason for the payload: the 202407 ontology table has no payloadFeature property. The API form reads metaclasses rather than that table, so it could carry the PayloadFeature even if Turtle keeps the expression.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions