Replies: 4 comments 10 replies
-
|
I thought it would be nice to keep somewhere in this 'P3-format' information about source file (and line) where certain tags/markers where found during parsing. It will be easier to debug or even use it as source links in the output 'view'. Not sure if that is sth we want right at the beginning or rather it can wait? WDYT? |
Beta Was this translation helpful? Give feedback.
-
|
Here: https://github.com/P3-model/P3-model we have described meta-models, their attributes, etc. in Markdown text description format, so maybe this repository is also the right place to store the schema for standardized output 'P3-format' for parsers as well? |
Beta Was this translation helpful? Give feedback.
-
|
The second thing we should also consider is a notation for the schema of the output 'P3-format'. I would propose using JSONSchema (https://json-schema.org/) to describe the schema, which will be used to validate an output model in JSON. I used this approach in practice in another project and it covered all its needs, maybe it will work here too. |
Beta Was this translation helpful? Give feedback.
-
|
I've prepared first version of standard json output. In P3 we have three main abstractions: elements, relations and traits (see: https://github.com/P3-model/P3-model/blob/main/MetaModel.md). Thus we need three arrays in root json object: Elements, Relations and Traits can be of many different types (e.g. Elements: DomainModule, DeployableUnit; Relations: DomainModule.ContainsBuildingBlock, DomainModule.IsDeployedInDeployableUnit, etc.). Each type can have its own set of properties. Thus we need Each Relation represents single connection between two Elements (source and destination). We do not need to duplicate Elements' data in Relations so only What do you think about that? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi :)
Since we talk about some standardized output from parsers, i thought it would be nice to have some place to talk about it.
Beta Was this translation helpful? Give feedback.
All reactions