Skip to content

Commit 0affca1

Browse files
authored
Merge pull request #28 from pmai/feature/meta-data
Initial draft of meta data element from SSP Traceability
2 parents 1707986 + 2238236 commit 0affca1

20 files changed

+392
-40
lines changed

docs/4___common_content.adoc

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,3 +460,112 @@ This attribute gives the size of this dimension of the array as a fixed, unchang
460460
|sizeConnector a|
461461
This attribute references another connector by name, that gives the size of this dimension of the array connector, e.g. a structural parameter or a constant of the underlying component that gives the dimension size.
462462
|===
463+
464+
[#ssc_metadata]
465+
==== MetaData Sequence
466+
467+
image:images/SystemStructureCommon_GMetaData.png[image,width=597,height=196]
468+
469+
The MetaData element allows the specification of additional meta data for a given model element.
470+
Multiple (or no) MetaData elements may be present in a given model element.
471+
472+
[width="100%",cols="33%,67%",options="header",]
473+
|===
474+
|Element |Description
475+
|MetaData |One or more instances of this element *CAN* be present to specify meta data related to the containing model element.
476+
See below for details.
477+
|===
478+
479+
===== MetaData
480+
481+
image:images/SystemStructureCommon_MetaData.png[image,width=369,height=543]
482+
483+
This element specifies a source of meta data related to the containing model element.
484+
485+
The MetaData element is structured by the following subordinated elements.
486+
487+
[width="100%",cols="33%,67%",options="header",]
488+
|===
489+
|Element |Description
490+
|Content |An instance of this element *CAN* be present to contain inlined content of the model element meta data.
491+
If it is present, then the attribute `source` of the MetaData element *MUST NOT* be present.
492+
See below for details.
493+
|Signature|One or more instances of this element *CAN* be present to specify digital signature information on the meta data referenced by the enclosing MetaData element.
494+
It is left unspecified what types of signatures are used and/or available for now.
495+
See below for details.
496+
|===
497+
498+
The following XML attributes are specified for the MetaData element:
499+
500+
[width="100%",cols="28%,72%",options="header",]
501+
|===
502+
|Attribute |Description
503+
|kind a|
504+
This attribute indicates the kind of model element meta data that is referenced, i.e. what role it plays in relation to the model element being described.
505+
The kind can be `general` or `quality`, indicating general meta data or quality related meta data, respectively.
506+
|type a|
507+
This mandatory attribute specifies the MIME type of the meta data, which does not have a default value.
508+
If no specific MIME type can be indicated, then the type `application/octet-stream` is to be used.
509+
|source a|
510+
Optional attribute indicating the source of the meta data as a URI (cf. RFC 3986).
511+
For purposes of the resolution of relative URIs the base URI is the URI of the SSD, if the sourceBase attribute is not specified or is specified as `SSD`, and the URI of the containing model element (e.g. component) if the base attribute is specified as `component`.
512+
513+
This allows the specification of meta data sources that reside inside the component (for example an FMU) through relative URIs.
514+
515+
If the source attribute is missing, the meta data *MUST* be provided inline as contents of a Content element, which *MUST NOT* be present otherwise.
516+
|sourceBase a|
517+
Defines the base the source URI is resolved against:
518+
If the attribute is missing or is specified as `SSD`, the source is resolved against the URI of the SSD, if the attribute is specified as `component` the URI is resolved against the (resolved) URI of the model element (e.g. component) source.
519+
|===
520+
521+
===== Content
522+
523+
image:images/SystemStructureCommon_Content.png[image,width=377,height=306]
524+
525+
This element specifies the inlined content of the model element meta data.
526+
527+
When this element is present, its contents *MUST* be an `srmd:SimulationResourceMetaData` element as specified by the SRMD schema of the SSP Traceability Specification, if the type attribute of the enclosing MetaData element is `application/x-srmd-meta-data`, or any other valid XML content if the type attribute references another MIME type.
528+
In that case there *SHOULD* be a layered specification that defines how embedding the content works for that MIME type.
529+
530+
===== Signature
531+
532+
image:images/SystemStructureCommon_Signature.png[image,width=423,height=534]
533+
534+
This element specifies digital signature information on the data or meta data referenced by the enclosing element:
535+
If the Signature element is contained within a MetaData element, it refers to the meta data referenced by the MetaData element.
536+
If the Signature element is contained within any other element, it refers to the content of that element.
537+
538+
The Signature element is structured by the following subordinated elements.
539+
540+
[width="100%",cols="33%,67%",options="header",]
541+
|===
542+
|Element |Description
543+
|Content |An instance of this element *CAN* be present to contain inlined content of the signature.
544+
If it is present, then the attribute `source` of the Signature element *MUST NOT* be present.
545+
See below for details.
546+
|===
547+
548+
The following XML attributes are specified for the Signature element:
549+
550+
[width="100%",cols="28%,72%",options="header",]
551+
|===
552+
|Attribute |Description
553+
|role a|
554+
This mandatory attribute specifies the role this signature has in the overall process.
555+
It indicates whether the digital signature is intended to just convey the authenticity of the information (value `authenticity`), or whether a claim for suitability of the information for certain purposes is made (value `suitability`).
556+
In the latter case, the digital signature format should include detailed information about what suitability claims are being made.
557+
|type a|
558+
This mandatory attribute specifies the MIME type of the signature, which does not have a default value.
559+
If no specific MIME type can be indicated, then the type `application/octet-stream` is to be used.
560+
|source a|
561+
Optional attribute indicating the source of the signature as a URI (cf. RFC 3986).
562+
For purposes of the resolution of relative URIs the base URI is the URI of the SSD, if the sourceBase attribute is not specified or is specified as `SSD`, the URI of the containing model element (e.g. component) if the base attribute is specified as `component`, or the URI of the meta data source if the sourceBase attribute is specified as `metaData`.
563+
564+
This allows the specification of signature sources that reside inside the component (for example an FMU), or the meta data through relative URIs.
565+
566+
If the source attribute is missing, the signature *MUST* be provided inline as contents of a Content element, which *MUST NOT* be present otherwise.
567+
|sourceBase a|
568+
Defines the base the source URI is resolved against:
569+
If the attribute is missing or is specified as `SSD`, the source is resolved against the URI of the SSD, if the attribute is specified as `component` the URI is resolved against the (resolved) URI of the model element (e.g. component) source, or if the attribute is specified as `metaData` the URI is resolved against the (resolved) URI of the meta data source.
570+
The value `metaData` is only valid if the Signature element is contained within a MetaData element.
571+
|===

docs/6___ssv.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Except for this file extension recommendation the filename is arbitrary and is i
1414

1515
=== ParameterSet
1616

17-
image:images/image47.png[image,width=394,height=453]
17+
image:images/SystemStructureParameterValues_ParameterSet.png[image,width=405,height=574]
1818

1919
The ParameterSet element contains parameter and meta data information.
2020
If the SSV is provided as a separate file, the root element *MUST* be a ParameterSet element.

docs/7___ssm.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The root element of an SSM file *MUST* be a ParameterMapping element, which cont
1717

1818
=== ParameterMapping
1919

20-
image:images/image56.png[image,width=418,height=291]
20+
image:images/SystemStructureParameterMapping_ParameterMapping.png[image,width=450,height=412]
2121

2222
This element describes a parameter mapping, which consists of multiple mapping entries, each describing one parameter mapping (see next section).
2323
The parameter mapping *MUST* contain entries for all parameters that are going to be mapped.

docs/8___ssb.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Any enumerations or units used in the DictionaryEntry elements *MUST* be declare
1616

1717
=== SignalDictionary
1818

19-
image:images/image58.png[image,width=408,height=399]
19+
image:images/SystemStructureSignalDictionary_SignalDictionary.png[image,width=438,height=520]
2020

2121
This element describes a signal dictionary, which consists of one or more dictionary entries, each describing one signal in the signal dictionary (see next section).
2222

12.4 KB
Loading
10.1 KB
Loading
19 KB
Loading
22.4 KB
Loading
16.4 KB
Loading
20.8 KB
Loading

0 commit comments

Comments
 (0)