Skip to content

Commit

Permalink
Made the connector converter for the ParentURI a bit more forgiving
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofVDB1 committed Sep 25, 2024
1 parent 1bb3d31 commit 2e7d052
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,15 @@ export class ElementConverterHandler extends ConverterHandler<EaElement> {
);

if (!parentClassObject) {
throw new Error(
`[ElementConverterHandler]: Unable to find parent object for class (${object.path}).`
this.logger.warn(
`[ElementConverterHandler]: Unable to find parent object for class (${object.path}) with path ${parentClassConnector.path}.`
);
return;
// OLD RULE. We decided to become more flexible and not throw an error in this case
// https://vlaamseoverheid.atlassian.net/browse/SDTT-338
// throw new Error(
// `[ElementConverterHandler]: Unable to find parent object for class (${object.path}).`
// );
}

const parentInternalId: RDF.NamedNode = this.df.namedNode(
Expand Down
2 changes: 1 addition & 1 deletion packages/oslo-converter-uml-ea/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oslo-flanders/ea-converter",
"version": "0.0.25-alpha.0",
"version": "0.0.26-alpha.0",
"description": "Transform an Enterprise Architect UML diagram to RDF",
"author": "Digitaal Vlaanderen <https://data.vlaanderen.be/id/organisatie/OVO002949>",
"homepage": "https://github.com/informatievlaanderen/OSLO-UML-Transformer/tree/main/packages/oslo-converter-uml-ea#readme",
Expand Down

0 comments on commit 2e7d052

Please sign in to comment.