From 7e7ab4b2d3712dd255722deec29fbe8d95f052fd Mon Sep 17 00:00:00 2001 From: ehennestad Date: Wed, 13 Nov 2024 13:32:41 +0100 Subject: [PATCH] Add function createLabelForMissingLabelDefinition to abstract Schema --- code/internal/+openminds/+abstract/Schema.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/internal/+openminds/+abstract/Schema.m b/code/internal/+openminds/+abstract/Schema.m index 22209b85..11ee2724 100644 --- a/code/internal/+openminds/+abstract/Schema.m +++ b/code/internal/+openminds/+abstract/Schema.m @@ -560,6 +560,11 @@ function assignInstanceId(obj, id) displayLabel = sprintf("%s", str); end + function str = createLabelForMissingLabelDefinition(obj) + classNames = split( class(obj), '.'); + str = sprintf('', classNames{end}); + end + function annotation = getAnnotation(obj) import openminds.internal.utility.getSchemaDocLink