Skip to content

Commit e0ba694

Browse files
committed
Merge branch 'main' into bugfix/ESMF-316-json-generator-fails-index-out-of-bounds
# Conflicts: # core/esmf-aspect-meta-model-java/src/main/java/org/eclipse/esmf/metamodel/impl/DefaultComplexType.java
2 parents 703ed54 + 233ce30 commit e0ba694

File tree

78 files changed

+2631
-349
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+2631
-349
lines changed

AUTHORS.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# Authors
1+
# Authors
22

33
The following people have contributed to this repository:
44

55
* Birgit Boss, Robert Bosch GmbH
66
* Daniel Ewert, Robert Bosch GmbH, [email protected]
7-
* Dennis Melzer, Robert Bosch GmbH, georg.schmidt-dumont@de.bosch.com
7+
* Dennis Melzer, Robert Bosch GmbH, Dennis.Melzer@de.bosch.com
88
* Misecka Rastislav, Systecs Informationssysteme GmbH
99
* Fethuallah Misir, Robert Bosch GmbH, [email protected]
1010
* Michele Santoro
1111
* Andreas Schilling, [email protected]
12-
* Georg Schmidt-Dumont, Robert Bosch GmbH, [email protected]
13-
* David Schmitt, Systecs Informationssysteme GmbH
12+
* Georg Schmidt-Dumont, Robert Bosch GmbH, [email protected]
13+
* David Schmitt, Robert Bosch GmbH, [email protected]
1414
* Andreas Textor, [email protected]
1515
* Peter Triebe, [email protected]
16-
* Julian Walbrecht, ulian[email protected]
16+
* Julian Walbrecht, Julian[email protected]
1717
* Sven Walter, [email protected]
1818
* Sven Erik Jeroschewski, Bosch.IO GmbH
1919
* Lukas Römer, Bosch.IO GmbH, [email protected]

README.md

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
- [esmf-aspect-static-meta-model](#esmf-aspect-static-meta-model)
1212
- [esmf-aspect-model-validator](#esmf-aspect-model-validator)
1313
- [Version Handling](#version-handling)
14-
- [SAMM Versioning](#samm-versioning)
14+
- [esmf-sdk Versioning](#esmf-sdk-versioning)
1515
- [SAMM Java Implementation Packaging](#samm-java-implementation-packaging)
1616
- [SAMM CLI](#samm-cli)
1717
- [Artifact Generation facilities](#artifact-generation-facilities)
@@ -37,17 +37,18 @@ code generators, validators etc.
3737
This document provides an overall overview of the SDK, and the concepts applied throughout it.
3838
Detailed documentation and concepts for each component can be found in the respective subfolders.
3939

40-
This repository contains a detailed developer documentation written in AsciiDoc. The source files
41-
(AsciiDoc) are located [here](documentation/developer-guide) and are built using
42-
[Antora](https://antora.org/) which generates the documentation as HTML files.
40+
This repository contains a detailed developer documentation written in AsciiDoc.
41+
The source files (AsciiDoc) are located [here](documentation/developer-guide) and are built using
42+
[Antora](https://antora.org/) which generates the documentation as HTML files. A site generated using Antora is self-contained and can be viewed entirely offline via a web browser without setting up a web server.
43+
To build the documentation locally, please check out and follow the instructions in [ESMF documentation repository](https://github.com/eclipse-esmf/eclipse-esmf.github.io).
4344

4445
## Getting help
4546

4647
Are you having trouble with ESMF SDK? We want to help!
4748

48-
* Check the [ESMF SDK developer documentation](https://openmanufacturingplatform.github.io/sds-documentation/sds-developer-guide/index.html)
49+
* Check the [ESMF SDK developer documentation](https://eclipse-esmf.github.io/esmf-developer-guide/index.html)
4950
* Ask a question the [community forum](https://www.eclipse.org/forums/index.php/f/617/).
50-
* Check the SAMM [specification](https://openmanufacturingplatform.github.io/sds-documentation/bamm-specification/snapshot/index.html)
51+
* Check the SAMM [specification](https://eclipse-esmf.github.io/samm-specification/snapshot/index.html)
5152
* Having issues with the ESMF SDK? Open a [GitHub issue](https://github.com/eclipse-esmf/esmf-sdk/issues).
5253

5354
## Build and contribute
@@ -124,30 +125,27 @@ The model validator is also available through the [SAMM CLI](#samm-cli).
124125

125126
## Version Handling
126127

127-
SAMM does evolve over time. While measures are made to do this in a non-breaking manner, some
128-
changes cannot be carried out without the need to define a new, breaking version. Due to this fact
129-
it is important to understand the versioning concept that is applied to the SAMM, APIs and SDK
128+
SAMM and its SDKs evolve over time. While measures are taken to do this in a non-breaking manner,
129+
some changes cannot be carried out without the need to define a new, breaking version. Due to this
130+
fact it is important to understand the versioning concept that is applied to the SAMM, APIs and SDK
130131
components that are derived from them.
131132

132-
In case of a prerelease there will be a postfix added and it will be released on Github. The way to
133-
access the artifact is described in [Github-Installing a
134-
package](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry#installing-a-package)
133+
In case of a prerelease a postfix will be added to the version, such as `-M1`, and it will be
134+
released on Github. The way to access the artifact is described in the [Java Aspect Tooling
135+
Guide](https://eclipse-esmf.github.io/esmf-developer-guide/tooling-guide/java-aspect-tooling.html#versioning).
135136

136-
### SAMM Versioning
137+
### esmf-sdk Versioning
137138

138-
For SAMM, semantic versioning (`major.minor.micro`) is applied with the following rules:
139+
For the esmf-sdk, semantic versioning (`major.minor.micro`) is applied with the following rules:
139140

140-
* A breaking change increases the `major` part
141-
* Backwards compatible new features increase the `minor` part
142-
* Changes to existing features or bug fixes increase the `micro` part
141+
* The `major` part designates the supported SAMM major version
142+
* A breaking change increases the `minor` part
143+
* Backwards compatible new features, changes to existing features or bugfixes increase the `minor` part
143144

144-
A new SAMM version always comprises new releases of the SDK components that depend on SAMM, however
145-
not the other way round. New releases of SDK components may be crafted that are built on the
145+
A new SAMM version implies new releases of the SDK components that depend on this SAMM version,
146+
however not the other way round. New releases of SDK components may be released that are built on an
146147
existing SAMM version.
147148

148-
The SDK component versions are otherwise not tied to the SAMM version, i.e., they may differ in any
149-
part of the version.
150-
151149
### SAMM Java Implementation Packaging
152150

153151
Complex applications might have the need to be implemented against different versions of the SAMM,
@@ -238,7 +236,7 @@ GitHub](https://github.com/eclipse-esmf/esmf-sdk/releases).
238236

239237
For information regarding running the command line tool, the available commands and their
240238
description, please have a look at the
241-
[documentation](https://openmanufacturingplatform.github.io/sds-documentation/sds-developer-guide/tooling-guide/bamm-cli.html).
239+
[documentation](https://eclipse-esmf.github.io/esmf-developer-guide/tooling-guide/samm-cli.html).
242240

243241
## License
244242

core/esmf-aspect-meta-model-java/src/main/java/org/eclipse/esmf/metamodel/Property.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ default boolean isOptional() {
5353
* By default Properties are included in the runtime data.
5454
*
5555
* @see
56-
* <a href="https://openmanufacturingplatform.github.io/sds-bamm-aspect-meta-model/bamm-specification/snapshot/modeling-guidelines.html#declaring-enumerations">BAMM Aspect Meta Model
56+
* <a href="https://eclipse-esmf.github.io/samm-specification/2.0.0/modeling-guidelines.html#declaring-enumerations">Semantic Aspect Meta Model
5757
* Specification - Declaring Enumerations</a>
5858
* @since SAMM 1.0.0
5959
*/

core/esmf-aspect-meta-model-java/src/main/java/org/eclipse/esmf/metamodel/loader/instantiator/ComplexTypeInstantiator.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ public T apply( final Resource resource ) {
7878

7979
extending.addAll( modelElementFactory.getExtendingElements( getExtending( resource ) ) );
8080

81-
creatingElements.remove( resource );
82-
8381
return entity;
8482
}
8583

core/esmf-aspect-meta-model-resolver/pom.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
<packaging>jar</packaging>
3030

3131
<properties>
32-
<samm-revision>https://raw.githubusercontent.com/eclipse-esmf/esmf-semantic-aspect-meta-model/5c097dd7357b129ba1771985a9ab1d29fcc32bcd</samm-revision>
32+
<samm-revision>
33+
https://raw.githubusercontent.com/eclipse-esmf/esmf-semantic-aspect-meta-model/bf9196547384bf072095cc8300d45ca7117a3211/esmf-semantic-aspect-meta-model
34+
</samm-revision>
3335
</properties>
3436

3537
<dependencies>
@@ -144,8 +146,6 @@
144146

145147
<!-- Download updated meta model shape files -->
146148
<!-- This refers to the state of the shape files after merging of https://github.com/eclipse-esmf/esmf-semantic-aspect-meta-model/pull/176 -->
147-
<!-- TODO: Enable this section once https://github.com/eclipse-esmf/esmf-semantic-aspect-meta-model/pull/186 has been merged -->
148-
<!--
149149
<plugin>
150150
<groupId>com.googlecode.maven-download-plugin</groupId>
151151
<artifactId>download-maven-plugin</artifactId>
@@ -221,7 +221,6 @@
221221
</execution>
222222
</executions>
223223
</plugin>
224-
-->
225224

226225
</plugins>
227226
</build>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* Copyright (c) 2023 Robert Bosch Manufacturing Solutions GmbH
3+
*
4+
* See the AUTHORS file(s) distributed with this work for additional
5+
* information regarding authorship.
6+
*
7+
* This Source Code Form is subject to the terms of the Mozilla Public
8+
* License, v. 2.0. If a copy of the MPL was not distributed with this
9+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
10+
*
11+
* SPDX-License-Identifier: MPL-2.0
12+
*/
13+
14+
package org.apache.jena.graph;
15+
16+
import org.eclipse.esmf.aspectmodel.resolver.parser.SmartToken;
17+
18+
/**
19+
* Because of some internal implementation details in Jena library, it was not possible
20+
* to extend all node types via one wrapper node; as a workaround each node type must have its own extension.
21+
*/
22+
public class AnyNode extends Node_ANY {
23+
private final SmartToken token;
24+
25+
public AnyNode( final SmartToken token ) {
26+
super();
27+
this.token = token;
28+
}
29+
30+
public SmartToken getToken() {
31+
return token;
32+
}
33+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* Copyright (c) 2023 Robert Bosch Manufacturing Solutions GmbH
3+
*
4+
* See the AUTHORS file(s) distributed with this work for additional
5+
* information regarding authorship.
6+
*
7+
* This Source Code Form is subject to the terms of the Mozilla Public
8+
* License, v. 2.0. If a copy of the MPL was not distributed with this
9+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
10+
*
11+
* SPDX-License-Identifier: MPL-2.0
12+
*/
13+
14+
package org.apache.jena.graph;
15+
16+
import org.eclipse.esmf.aspectmodel.resolver.parser.SmartToken;
17+
18+
/**
19+
* Because of some internal implementation details in Jena library, it was not possible
20+
* to extend all node types via one wrapper node; as a workaround each node type must have its own extension.
21+
*/
22+
public class BlankNode extends Node_Blank {
23+
24+
private final SmartToken token;
25+
26+
public BlankNode( final Node_Blank original, final SmartToken token ) {
27+
super( original.getBlankNodeId() );
28+
this.token = token;
29+
}
30+
31+
public SmartToken getToken() {
32+
return token;
33+
}
34+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* Copyright (c) 2023 Robert Bosch Manufacturing Solutions GmbH
3+
*
4+
* See the AUTHORS file(s) distributed with this work for additional
5+
* information regarding authorship.
6+
*
7+
* This Source Code Form is subject to the terms of the Mozilla Public
8+
* License, v. 2.0. If a copy of the MPL was not distributed with this
9+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
10+
*
11+
* SPDX-License-Identifier: MPL-2.0
12+
*/
13+
14+
package org.apache.jena.graph;
15+
16+
import org.eclipse.esmf.aspectmodel.resolver.parser.SmartToken;
17+
18+
/**
19+
* Because of some internal implementation details in Jena library, it was not possible
20+
* to extend all node types via one wrapper node; as a workaround each node type must have its own extension.
21+
*/
22+
public class LiteralNode extends Node_Literal {
23+
24+
private final SmartToken token;
25+
26+
public LiteralNode( final Node_Literal node, final SmartToken token ) {
27+
super( node.getLiteral() );
28+
this.token = token;
29+
}
30+
31+
public SmartToken getToken() {
32+
return token;
33+
}
34+
}

0 commit comments

Comments
 (0)