You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/sds-aspect-model-resolver/src/main/java/io/openmanufacturing/sds/aspectmodel/resolver/AspectModelResolver.java
+13-8Lines changed: 13 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -157,23 +157,28 @@ private Try<Model> resolve( final String urn, final ResolutionStrategy resolutio
157
157
158
158
// Merge the resolved model into the target if it was not already merged before.
159
159
// It could have been merged before when the model contains another model definition that was already resolved
160
-
if ( !mergedModels.contains( model ) ) {
160
+
if ( !modelAlreadyResolved( model, mergedModels ) ) {
161
161
mergeModels( result, model );
162
162
mergedModels.add( model );
163
-
}
164
-
for ( finalStringelement : getAllUrnsInModel( model ) ) {
165
-
if ( !result.contains( model.createResource( element ), RDF.type, (RDFNode) null )
166
-
// Backwards compatibility with BAMM 1.0.0
167
-
&& !result.contains( model.createResource( element ), refines, (RDFNode) null )
168
-
&& !unresolvedUrns.contains( element ) ) {
169
-
unresolvedUrns.push( element );
163
+
164
+
for ( finalStringelement : getAllUrnsInModel( model ) ) {
165
+
if ( !result.contains( model.createResource( element ), RDF.type, (RDFNode) null )
166
+
// Backwards compatibility with BAMM 1.0.0
167
+
&& !result.contains( model.createResource( element ), refines, (RDFNode) null )
0 commit comments