From caece2721d41d4c6fa503aa14374667d4d2732e0 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 12:12:11 +0000 Subject: [PATCH 01/27] Dr.Egeria: send Parent Relationship Attributes typed, never raw (F-A 1) Egeria types NewElementRequestBody.parentRelationshipProperties and TemplateRequestBody.parentRelationshipProperties as the polymorphic RelationshipProperties (NewElementRequestBody.java:25, TemplateRequestBody.java:33, RelationshipProperties.java:19-21 @JsonTypeInfo(property="class"), ignoreUnknown=true; odpi/egeria origin/main 0b7ee0fb). Dr.Egeria sent the dictionary raw, with no "class": a 400 InvalidTypeIdException that lost the whole create. On the round-trip probe's run 1 (scratch 757a5df0) this alone failed 108 of 110 creates. - scripts/gen_properties_class_fields.py generates md_processing_utils/properties_class_fields.py from Egeria's Java (a git ref, read with git cat-file; the checkout is never modified): every framework Properties class, its kind (relationship/classification/entity, from its superclass chain, base classes followed) and the JSON names it reads. - md_processing_utils/typed_properties.py, one helper for every call site: "Properties" with only the keys that class reads; every other key, a missing Parent Relationship Type Name, or a type with no properties class is reported as "not applied: : ". - Used by set_create_body (common_md_utils), schema_maker._outer_body and the Asset Maker generic Create Element. _sync_parent_relationship (the update-time link through metadata-expert related-elements) sends the same keys as the NewElementProperties property-value map that endpoint reads (omf NewRelatedElementsRequestBody.java:28), not a raw dict. - Body builders record notes on the attribute; the base processor turns every recorded note into a command warning (success or failure), so nothing is dropped silently and no caller changed. Signed-off-by: Dan Wolfson --- .../md_processing_utils/common_md_utils.py | 10 +- .../properties_class_fields.py | 693 ++++++++++++++++++ .../md_processing_utils/typed_properties.py | 197 +++++ md_processing/v2/asset_maker.py | 6 +- md_processing/v2/processors.py | 25 +- md_processing/v2/schema_maker.py | 6 +- scripts/gen_properties_class_fields.py | 110 +++ tests/micro-tests/test_typed_properties.py | 169 +++++ 8 files changed, 1206 insertions(+), 10 deletions(-) create mode 100644 md_processing/md_processing_utils/properties_class_fields.py create mode 100644 md_processing/md_processing_utils/typed_properties.py create mode 100644 scripts/gen_properties_class_fields.py create mode 100644 tests/micro-tests/test_typed_properties.py diff --git a/md_processing/md_processing_utils/common_md_utils.py b/md_processing/md_processing_utils/common_md_utils.py index 811a37cb..2a3f5f69 100644 --- a/md_processing/md_processing_utils/common_md_utils.py +++ b/md_processing/md_processing_utils/common_md_utils.py @@ -16,6 +16,8 @@ from pyegeria.core._globals import DEBUG_LEVEL, GovernanceDomains, resolve_enum from md_processing.md_processing_utils.message_constants import message_types from md_processing.md_processing_utils.element_status import element_status_properties +from md_processing.md_processing_utils.typed_properties import (parent_relationship_properties, + record_not_applied) # Constants EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store") @@ -365,6 +367,12 @@ def set_create_body(object_type: str, attributes: dict)->dict: Callers should build the inner body separately with the appropriate helper and then assign it to body["properties"]. """ prop_name = object_type.replace(" ", "") + # RelationshipProperties is polymorphic: a raw dictionary (no "class") is a 400 that loses the whole + # create. Typed by the parent relationship type; keys it doesn't read are reported, not sent. + parent_props, notes = parent_relationship_properties(attributes) + record_not_applied(attributes, "Parent Relationship Attributes" + if attributes.get("Parent Relationship Attributes", {}).get("value") + else "Parent Relationship Properties", notes) body = { "class": "NewElementRequestBody", "externalSourceGUID": attributes.get('External Source GUID', {}).get('guid', None), @@ -376,7 +384,7 @@ def set_create_body(object_type: str, attributes: dict)->dict: "isOwnAnchor": attributes.get('Is Own Anchor', {}).get('value', True), "parentGUID": attributes.get('Parent ID', {}).get('guid', None), "parentRelationshipTypeName": attributes.get('Parent Relationship Type Name', {}).get('value', None) or attributes.get('Parent Relationship Type', {}).get('value', None), - "parentRelationshipProperties": attributes.get('Parent Relationship Attributes', {}).get('value', None) or attributes.get('Parent Relationship Properties', {}).get('value', None), + "parentRelationshipProperties": parent_props, "parentAtEnd1": attributes.get('Parent at End1', {}).get('value', True), # Egeria reads a list, anchorScopeGUIDs; the singular key was dropped (ISSUE-164) "anchorScopeGUIDs": ([attributes['Anchor Scope ID']['guid']] diff --git a/md_processing/md_processing_utils/properties_class_fields.py b/md_processing/md_processing_utils/properties_class_fields.py new file mode 100644 index 00000000..20e76fac --- /dev/null +++ b/md_processing/md_processing_utils/properties_class_fields.py @@ -0,0 +1,693 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +""" +Open-metadata Properties classes: kind and the JSON property names each reads (inherited included). + +GENERATED by scripts/gen_properties_class_fields.py from Egeria origin/main at 0b7ee0fb28 2026-11-12 -- do not +edit by hand; re-run the script instead. Kind is the root of the class's superclass chain: +relationship (RelationshipProperties), classification (ClassificationProperties), entity +(EntityProperties) or other. +""" + +PROPERTIES_CLASS_FIELDS: dict[str, tuple[str, tuple[str, ...]]] = { + 'APIEndpointProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'APIHeaderProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'APIManagerProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'APIOperationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'usage', 'encodingStandard', 'namespacePath', 'formula', 'formulaType', 'queries', 'path', 'command')), + 'APIOperationsProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'APIParameterListProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'usage', 'encodingStandard', 'namespacePath', 'formula', 'formulaType', 'queries', 'required')), + 'APIParameterProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'namespacePath', 'allowsDuplicateValues', 'orderedValues', 'defaultValueOverride', 'sortOrder', 'minimumLength', 'length', 'precision', 'isNullable', 'nativeClass', 'aliases', 'parameterType')), + 'APIRequestProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'APIResponseProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'APISchemaTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'usage', 'encodingStandard', 'namespacePath', 'formula', 'formulaType', 'queries')), + 'AbstractConceptProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'AcceptedAnswerProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'AccountingCodesProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'accountingCode', 'description', 'accountingCodeList', 'accountingCodeMap')), + 'ActionProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'situation')), + 'ActionRequesterProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'iscQualifiedName', 'derivation')), + 'ActionTargetProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'actionTargetName', 'activityStatus', 'startTime', 'completionTime', 'completionMessage')), + 'ActionsProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'ActivityDescriptionProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'activityType')), + 'ActivityEntryProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'situation')), + 'ActorProfileProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties')), + 'ActorProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties')), + 'ActorRoleProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'scope', 'actorRoleGroups')), + 'AdjacentLocationProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'AgreementActorProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'agreementPartyName')), + 'AgreementItemProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'agreementItemId', 'agreementStart', 'agreementEnd', 'entitlements', 'restrictions', 'obligations', 'usageMeasurements')), + 'AgreementProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'AnalyticalActionProcessProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription')), + 'AnalyticsEngineProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'AnalyticsModelRunProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'situation')), + 'AnchorsProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'anchorGUID', 'anchorTypeName', 'anchorDomainName', 'anchorScopeGUIDs', 'zoneMembership')), + 'AnnotationExtensionProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'AnnotationMatchProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'method', 'threshold')), + 'AnnotationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'annotationType', 'summary', 'sampleSize', 'samplePercent', 'samplingMethod', 'confidence', 'units', 'absoluteUncertainty', 'relativeUncertainty', 'expression', 'explanation', 'analysisStep', 'jsonProperties')), + 'AnnotationReviewProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'situation', 'reviewDate', 'comment', 'annotationStatus')), + 'AntonymProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'expression', 'confidence', 'description', 'termRelationshipStatus', 'steward', 'source')), + 'ApplicationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'ApprovedPurposeProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'ArchiveContentsProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'ArchiveFileProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'fileType', 'fileName', 'fileExtension')), + 'AsOfDataFieldProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'AssetConnectionProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'AssetProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source')), + 'AssignmentScopeProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'AssociatedAnnotationProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'AssociatedLogProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'AssociatedSecurityListProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'AssociatedSkillSetProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'AttachedCommentProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'AttachedLikeProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'AttachedNoteLogEntryProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'AttachedNoteLogProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'AttachedRatingProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'AttachedStorageProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'AttachedTagProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'AttributeForSchemaProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'position', 'minCardinality', 'maxCardinality', 'coverageCategory')), + 'AudioFileProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'fileType', 'fileName', 'fileExtension', 'embeddedMetadata')), + 'AuditLogProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'process', 'source', 'notes')), + 'AuthoredReferenceableProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus')), + 'AuthorizationManagerProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'AvroFileProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'fileType', 'fileName', 'fileExtension')), + 'BareMetalComputerProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'deploymentStatus', 'userDefinedDeploymentStatus', 'userId')), + 'BasisDataFieldProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'BlogEntryProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'situation')), + 'BuildInstructionFileProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'fileType', 'fileName', 'fileExtension')), + 'BusinessCapabilityDependencyProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'BusinessCapabilityProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose', 'businessCapabilityType', 'businessImplementationType')), + 'BusinessImperativeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results')), + 'BusinessSignificantProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'description', 'scope', 'businessCapability')), + 'CSVFileProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'fileType', 'fileName', 'fileExtension', 'delimiterCharacter', 'quoteCharacter')), + 'CalculatedValueProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'formula', 'formulaType')), + 'CampaignProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'CanonicalVocabularyProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'scope')), + 'CapabilityAssetUseProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'useType', 'description', 'minimumInstancesSet', 'minimumInstances', 'maximumInstancesSet', 'maximumInstances')), + 'CatalogTargetProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'catalogTargetName', 'metadataCollectionQualifiedName', 'metadataSourceQualifiedName', 'connectionName', 'configurationProperties', 'templates', 'permittedSynchronization', 'deleteMethod')), + 'CatalogTemplateProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'CataloguingActionProcessProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription')), + 'CertificationProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'certificateId', 'coverageStart', 'coverageEnd', 'conditions', 'certifiedBy', 'certifiedByTypeName', 'certifiedByPropertyName', 'custodian', 'custodianTypeName', 'custodianPropertyName', 'recipient', 'recipientTypeName', 'recipientPropertyName', 'notes')), + 'CertificationTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription', 'entitlements', 'restrictions', 'obligations')), + 'ChangeManagementLibraryProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source', 'libraryType')), + 'CitedDocumentLinkProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'referenceId', 'description', 'pages')), + 'CitedDocumentProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'referenceTitle', 'referenceAbstract', 'organization', 'sources', 'license', 'copyright', 'attribution', 'numberOfPages', 'pageRange', 'publicationSeries', 'publicationSeriesVolume', 'publisher', 'edition', 'firstPublicationDate', 'publicationDate', 'publicationCity', 'publicationYear', 'publicationNumbers')), + 'ClassWordProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'ClassificationAnnotationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'annotationType', 'summary', 'sampleSize', 'samplePercent', 'samplingMethod', 'confidence', 'units', 'absoluteUncertainty', 'relativeUncertainty', 'expression', 'explanation', 'analysisStep', 'jsonProperties', 'dataType', 'matchingValues', 'nonMatchingValues', 'classificationName', 'properties')), + 'ClassificationBeanProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'ClassificationElementProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'propertyValueMap')), + 'ClassificationProperties': ('classification', ('effectiveFrom', 'effectiveTo')), + 'CloudPlatformProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'deployedImplementationType')), + 'CloudProviderProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'providerName')), + 'CloudServiceProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'offeringName', 'serviceType')), + 'CloudTenantProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'tenantName', 'tenantType')), + 'CodeAnalysisAnnotationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'annotationType', 'summary', 'sampleSize', 'samplePercent', 'samplingMethod', 'confidence', 'units', 'absoluteUncertainty', 'relativeUncertainty', 'expression', 'explanation', 'analysisStep', 'jsonProperties', 'fileCount', 'lineCount', 'codeLineCount', 'commentLineCount', 'primaryLanguage', 'languageCount', 'publicSymbolCount', 'entryPointCount', 'dataReadCount', 'dataCreateCount', 'dataUpdateCount', 'dataDeleteCount', 'dataChecksCount', 'dataStoreCount', 'externalCallCount', 'functionCount', 'cyclomaticComplexityTotal', 'cyclomaticComplexityMax', 'maxNestingDepth', 'testFileCount', 'documentedSymbolCount')), + 'CohortMemberProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'CohortRegistryStoreProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime')), + 'CollectionFolderProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'CollectionKindProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'CollectionMembershipProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'membershipRationale', 'membershipType', 'expression', 'confidence', 'membershipStatus', 'userDefinedStatus', 'steward', 'stewardTypeName', 'stewardPropertyName', 'source', 'notes')), + 'CollectionProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'CommentProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'commentType')), + 'CommunityProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'mission')), + 'ComplexSchemaTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'usage', 'encodingStandard', 'namespacePath', 'formula', 'formulaType', 'queries')), + 'ConceptBeadAttributeLinkProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'position', 'minCardinality', 'maxCardinality', 'coverageCategory', 'uniqueValues', 'orderedValues')), + 'ConceptBeadAttributeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'canonicalName')), + 'ConceptBeadExtensionProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'role', 'description')), + 'ConceptBeadProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'canonicalName')), + 'ConceptBeadRelationshipEndProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'attributeName', 'decoration', 'position', 'minCardinality', 'maxCardinality', 'uniqueValues', 'orderedValues', 'navigable')), + 'ConceptBeadRelationshipProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'canonicalName')), + 'ConceptDesignProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'ConceptModelElementProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'canonicalName')), + 'ConceptModelProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'ConfidenceProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'statusIdentifier', 'confidence', 'steward', 'stewardTypeName', 'stewardPropertyName', 'source', 'notes', 'confidenceLevel')), + 'ConfidentialityProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'statusIdentifier', 'confidence', 'steward', 'stewardTypeName', 'stewardPropertyName', 'source', 'notes', 'confidentialityLevel')), + 'ConnectToEndpointProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'ConnectionConnectorTypeProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'ConnectionProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'userId', 'encryptedPassword', 'clearPassword', 'configurationProperties', 'securedProperties')), + 'ConnectorActivityReportProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'formula', 'formulaType', 'purpose', 'startTime', 'completionTime', 'completionMessage', 'createdTime', 'lastModifiedTime', 'lastModifier', 'outputFormat', 'reportParameters', 'serverName', 'connectorId', 'connectorName', 'connectorStartDate', 'refreshStartDate', 'refreshCompletionDate', 'connectorDisconnectDate', 'createdElements', 'updatedElements', 'deletedElements')), + 'ConnectorTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'supportedAssetTypeName', 'supportedDeployedImplementationType', 'expectedDataFormat', 'connectorProviderClassName', 'connectorFrameworkName', 'connectorInterfaceLanguage', 'connectorInterfaces', 'targetTechnologySource', 'targetTechnologyName', 'targetTechnologyInterfaces', 'targetTechnologyVersions', 'recognizedAdditionalProperties', 'recognizedConfigurationProperties', 'recognizedSecuredProperties')), + 'ConsistentValidValuesProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'ConsolidatedDuplicateLinkProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'ConsolidatedDuplicateProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'statusIdentifier', 'steward', 'stewardTypeName', 'stewardPropertyName', 'source', 'notes')), + 'ContactDetailsProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'contactType', 'contactMethodType', 'contactMethodService', 'contactMethodValue')), + 'ContactThroughProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'ContentCollectionManagerProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'ContextDefinitionProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'description', 'scope')), + 'ContextEventCollectionProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'ContextEventEvidenceProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'ContextEventForTimelineEffectsProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'ContextEventImpactProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'severityLevel')), + 'ContextEventProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'eventEffect', 'plannedStartDate', 'actualStartDate', 'plannedDuration', 'actualDuration', 'repeatInterval', 'plannedCompletionDate', 'actualCompletionDate', 'referenceEffectiveFrom', 'referenceEffectiveTo')), + 'ContractLinkProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'contractId', 'contractLiaison', 'contractLiaisonTypeName', 'contractLiaisonPropertyName')), + 'ContributionProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'ContributionRecordProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'karmaPoints')), + 'ContributorAnalysisAnnotationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'annotationType', 'summary', 'sampleSize', 'samplePercent', 'samplingMethod', 'confidence', 'units', 'absoluteUncertainty', 'relativeUncertainty', 'expression', 'explanation', 'analysisStep', 'jsonProperties', 'busFactor', 'totalContributorCount', 'activeContributorCount', 'commitCount', 'activeCommitCount', 'issueCount', 'activeIssueCount', 'contributionCount', 'activeContributionCount', 'copyCount', 'activeCopyCount', 'stargazerCount')), + 'ControlApplicabilityProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'isApplicable', 'justification', 'inclusionReasons', 'implementationStatus', 'implementationDescription', 'reviewDate')), + 'ControlFlowProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'iscQualifiedName', 'derivation', 'guard', 'mandatoryGuard')), + 'ControlPointProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'qualifiedName')), + 'CriticalityProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'statusIdentifier', 'confidence', 'steward', 'stewardTypeName', 'stewardPropertyName', 'source', 'notes', 'criticalityLevel')), + 'CrowdSourcingContributionProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'CyberLocationProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'networkAddress')), + 'DashboardProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'formula', 'formulaType', 'aliases', 'refreshTimeInterval', 'layoutStyle')), + 'DataAccessManagerProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'DataAssetEncodingProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'encodingType', 'encodingLanguage', 'encodingDescription', 'encodingProperties')), + 'DataAssetProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus')), + 'DataClassAnnotationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'annotationType', 'summary', 'sampleSize', 'samplePercent', 'samplingMethod', 'confidence', 'units', 'absoluteUncertainty', 'relativeUncertainty', 'expression', 'explanation', 'analysisStep', 'jsonProperties', 'dataType', 'matchingValues', 'nonMatchingValues', 'specification', 'candidateDataClassGUIDs')), + 'DataClassCompositionProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'DataClassProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'matchPropertyNames', 'namespacePath', 'matchThreshold', 'specification', 'specificationDetails', 'dataType', 'units', 'absoluteUncertainty', 'relativeUncertainty', 'allowsDuplicateValues', 'isCaseSensitive', 'isNullable', 'defaultValue', 'averageValue', 'valueList', 'valueRangeFrom', 'valueRangeTo', 'sampleValues', 'dataPatterns')), + 'DataDescriptionProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'DataDictionaryProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'DataFeedProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus')), + 'DataFieldAnnotationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'annotationType', 'summary', 'sampleSize', 'samplePercent', 'samplingMethod', 'confidence', 'units', 'absoluteUncertainty', 'relativeUncertainty', 'expression', 'explanation', 'analysisStep', 'jsonProperties', 'dataType', 'matchingValues', 'nonMatchingValues')), + 'DataFieldProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'namespacePath', 'aliases', 'namePatterns', 'defaultValue', 'isNullable', 'dataType', 'units', 'minimumLength', 'length', 'precision', 'orderedValues', 'sortOrder', 'isPartitionKey', 'partitionKeyPosition', 'allowsDuplicateValues')), + 'DataFileCollectionProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'formula', 'formulaType')), + 'DataFileProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'fileType', 'fileName', 'fileExtension')), + 'DataFlowProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'iscQualifiedName', 'derivation', 'oneWay', 'integrationStyle', 'protocol', 'frequency', 'dataExchanged', 'formula', 'formulaType')), + 'DataFolderProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime')), + 'DataGrainAnnotationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'annotationType', 'summary', 'sampleSize', 'samplePercent', 'samplingMethod', 'confidence', 'units', 'absoluteUncertainty', 'relativeUncertainty', 'expression', 'explanation', 'analysisStep', 'jsonProperties', 'dataType', 'matchingValues', 'nonMatchingValues', 'granularityBasis', 'grainStatement', 'interval', 'candidateDataGrainGUIDs')), + 'DataGrainProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'matchPropertyNames', 'namespacePath', 'matchThreshold', 'specification', 'specificationDetails', 'dataType', 'units', 'absoluteUncertainty', 'relativeUncertainty', 'granularityBasis', 'grainStatement', 'interval')), + 'DataLensProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription', 'minLongitude', 'minLatitude', 'maxLongitude', 'maxLatitude', 'minHeight', 'maxHeight', 'dataCollectionStartTime', 'dataCollectionEndTime', 'dataValidityStartTime', 'dataValidityEndTime', 'dataCoverageStartTime', 'dataCoverageEndTime', 'scopeElements')), + 'DataLineageRelationshipProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'iscQualifiedName', 'derivation', 'oneWay', 'integrationStyle', 'protocol', 'frequency', 'dataExchanged')), + 'DataManagerProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'DataMappingProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'iscQualifiedName', 'derivation', 'formula', 'formulaType', 'queryId', 'query', 'queryType')), + 'DataMovementEngineProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'DataProcessingActionProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'DataProcessingDescriptionProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'DataProcessingPurposeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription')), + 'DataProcessingSpecificationProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'DataProcessingTargetProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'DataQualityRuleProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription', 'qualityDimension', 'checkType', 'metric', 'severity', 'businessImpact', 'method', 'units', 'schedule', 'scheduler', 'expression', 'qualityEngine', 'comparisonOperator', 'thresholdValues')), + 'DataScopeProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'minLongitude', 'minLatitude', 'maxLongitude', 'maxLatitude', 'minHeight', 'maxHeight', 'dataCollectionStartTime', 'dataCollectionEndTime', 'dataValidityStartTime', 'dataValidityEndTime', 'dataCoverageStartTime', 'dataCoverageEndTime', 'scopeElements', 'additionalProperties')), + 'DataSetContentProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'iscQualifiedName', 'derivation', 'queryId', 'query', 'queryType')), + 'DataSetProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'formula', 'formulaType')), + 'DataSharingAgreementProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'DataSharingHubProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'DataSharingRequestProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'situation')), + 'DataSpecProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'DataStoreProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime')), + 'DataStructureDefinitionProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'DataStructureProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'namespacePath', 'namePatterns')), + 'DataValueAssignmentProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'method', 'assignmentStatus', 'confidence', 'threshold', 'steward', 'stewardTypeName', 'stewardPropertyName', 'source')), + 'DataValueDefinitionProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'DataValueHierarchyProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'DataValueMeaningProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'DataValueSpecificationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'matchPropertyNames', 'namespacePath', 'matchThreshold', 'specification', 'specificationDetails', 'dataType', 'units', 'absoluteUncertainty', 'relativeUncertainty')), + 'DataVirtualizationEngineProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'DatabaseManagerProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'DatabaseProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'databaseInstance', 'importedFrom')), + 'DeletingActionProcessProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription')), + 'DependentContextEventProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'DependentSoftwareComponentProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'DeployedAPIProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'implementationLanguage')), + 'DeployedAnalyticsModelProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'implementationLanguage')), + 'DeployedConnectorProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'implementationLanguage')), + 'DeployedDatabaseSchemaProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'formula', 'formulaType')), + 'DeployedOnProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'deploymentTime', 'deployer', 'deployerTypeName', 'deployerPropertyName')), + 'DeployedSoftwareComponentProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'implementationLanguage')), + 'DerivedSchemaTypeQueryTargetProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'iscQualifiedName', 'derivation', 'queryId', 'query', 'queryType')), + 'DesignModelElementProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'canonicalName')), + 'DesignModelProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'DesignPatternProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'context', 'forces', 'problemStatement', 'problemExample', 'solutionDescription', 'solutionExample', 'benefits', 'liabilities', 'usage')), + 'DetailedProcessingActionProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'DigitalProductCatalogProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'DigitalProductDependencyProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'iscQualifiedName', 'derivation')), + 'DigitalProductFamilyProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose', 'deploymentStatus', 'userDefinedDeploymentStatus', 'productName', 'introductionDate', 'maturity', 'serviceLife', 'nextVersionDate', 'withdrawDate')), + 'DigitalProductProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose', 'deploymentStatus', 'userDefinedDeploymentStatus', 'productName', 'introductionDate', 'maturity', 'serviceLife', 'nextVersionDate', 'withdrawDate')), + 'DigitalResourceOriginProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'organization', 'organizationPropertyName', 'businessCapability', 'businessCapabilityPropertyName', 'otherOriginValues')), + 'DigitalSubscriberProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'subscriberId')), + 'DigitalSubscriptionProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose', 'supportLevel', 'serviceLevels')), + 'DigitalSupportProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'DisplayDataContainerProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'namespacePath', 'allowsDuplicateValues', 'orderedValues', 'defaultValueOverride', 'sortOrder', 'minimumLength', 'length', 'precision', 'isNullable', 'nativeClass', 'aliases', 'renderer', 'placementKind', 'span', 'presentationStyle', 'markdownContent')), + 'DisplayDataFieldProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'namespacePath', 'allowsDuplicateValues', 'orderedValues', 'defaultValueOverride', 'sortOrder', 'minimumLength', 'length', 'precision', 'isNullable', 'nativeClass', 'aliases', 'inputField', 'placementKind', 'span', 'presentationStyle', 'markdownContent')), + 'DisplayDataSchemaTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'usage', 'encodingStandard', 'namespacePath', 'formula', 'formulaType', 'queries')), + 'DocumentProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'fileType', 'fileName', 'fileExtension', 'embeddedMetadata')), + 'DocumentSchemaAttributeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'namespacePath', 'allowsDuplicateValues', 'orderedValues', 'defaultValueOverride', 'sortOrder', 'minimumLength', 'length', 'precision', 'isNullable', 'nativeClass', 'aliases')), + 'DocumentSchemaTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'usage', 'encodingStandard', 'namespacePath', 'formula', 'formulaType', 'queries')), + 'DocumentStoreProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'embeddedMetadata')), + 'EditingCollectionProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'description')), + 'ElementProperties': ('other', ('propertyValueMap',)), + 'ElementSupplementProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'EmbeddedConnectionProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'position', 'displayName', 'arguments')), + 'EmbeddedProcessProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'situation')), + 'EndpointProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'networkAddress', 'protocol', 'encryptionMethod')), + 'EnforcementPointProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'qualifiedName')), + 'EngineActionProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'situation', 'domainIdentifier', 'mandatoryGuards', 'receivedGuards', 'executorEngineGUID', 'executorEngineName', 'governanceActionTypeGUID', 'governanceActionTypeName', 'processName', 'iscQualifiedName', 'processStepGUID', 'processStepName', 'requesterUserId', 'requestType', 'requestParameters', 'processingEngineUserId', 'completionGuards', 'completionMessage')), + 'EngineProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'EntityElementProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'propertyValueMap')), + 'EntityProperties': ('entity', ('effectiveFrom', 'effectiveTo')), + 'EnumSchemaTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'usage', 'encodingStandard', 'namespacePath', 'formula', 'formulaType', 'queries', 'dataType', 'defaultValue', 'validValueSetGUID')), + 'EventBrokerProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'EventManagerProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'EventSchemaAttributeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'namespacePath', 'allowsDuplicateValues', 'orderedValues', 'defaultValueOverride', 'sortOrder', 'minimumLength', 'length', 'precision', 'isNullable', 'nativeClass', 'aliases')), + 'EventSetProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'EventTypeListProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'usage', 'encodingStandard', 'namespacePath', 'formula', 'formulaType', 'queries')), + 'EventTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'usage', 'encodingStandard', 'namespacePath', 'formula', 'formulaType', 'queries')), + 'ExceptionBacklogProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'process', 'steward', 'stewardTypeName', 'stewardPropertyName', 'source', 'notes')), + 'ExceptionProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'affectedClassifications', 'affectedElements', 'affectedRelationships', 'lastReviewTime', 'reviewDate', 'conditions', 'steward', 'stewardTypeName', 'stewardPropertyName', 'notes')), + 'ExceptionTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription')), + 'ExecutableFileProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'fileType', 'fileName', 'fileExtension')), + 'ExecutionPointProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'qualifiedName')), + 'ExperimentProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'hypothesis')), + 'ExplorerActionEngineProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'ExplorerActionServiceProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'implementationLanguage')), + 'ExploringActionProcessProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription')), + 'ExternalDataSourceProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'referenceTitle', 'referenceAbstract', 'organization', 'sources', 'license', 'copyright', 'attribution')), + 'ExternalIdLinkProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'usage', 'source', 'lastSynchronized', 'mappingProperties', 'permittedSynchronization')), + 'ExternalIdProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'key', 'keyPattern', 'externalInstanceTypeName', 'externalInstanceCreatedBy', 'externalInstanceCreationTime', 'externalInstanceLastUpdatedBy', 'externalInstanceLastUpdateTime', 'externalInstanceVersion')), + 'ExternalModelSourceProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'referenceTitle', 'referenceAbstract', 'organization', 'sources', 'license', 'copyright', 'attribution')), + 'ExternalReferenceLinkProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'ExternalReferenceProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'referenceTitle', 'referenceAbstract', 'organization', 'sources', 'license', 'copyright', 'attribution')), + 'ExternalSchemaTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'usage', 'encodingStandard', 'namespacePath', 'formula', 'formulaType', 'queries')), + 'ExternalSourceCodeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'referenceTitle', 'referenceAbstract', 'organization', 'sources', 'license', 'copyright', 'attribution')), + 'ExternalStandardProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'referenceTitle', 'referenceAbstract', 'organization', 'sources', 'license', 'copyright', 'attribution')), + 'FileFolderProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime')), + 'FileManagerProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'FileSystemProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source', 'format', 'encryption', 'canonicalMountPoint', 'localMountPoint')), + 'FindDigitalResourceOriginProperties': ('other', ('properties',)), + 'FindProjectClassificationProperties': ('other', ('approach', 'managementStyle', 'resultsUsage')), + 'FindPropertyNameProperties': ('other', ('propertyValue', 'propertyName')), + 'FindPropertyNamesProperties': ('other', ('propertyValue', 'propertyNames')), + 'FingerprintAnnotationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'annotationType', 'summary', 'sampleSize', 'samplePercent', 'samplingMethod', 'confidence', 'units', 'absoluteUncertainty', 'relativeUncertainty', 'expression', 'explanation', 'analysisStep', 'jsonProperties', 'dataType', 'matchingValues', 'nonMatchingValues', 'fingerprint', 'fingerprintAlgorithm', 'hash', 'hashAlgorithm')), + 'FixedLocationProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'coordinates', 'mapProjection', 'postalAddress', 'timeZone')), + 'FolderHierarchyProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'FolioProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'ForeignKeyProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'displayName', 'description', 'confidence', 'steward', 'source')), + 'FormProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'formula', 'formulaType')), + 'FunctionCallProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'situation')), + 'GeneratedTargetProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'purpose', 'buildId', 'buildTool', 'buildToolVersion')), + 'GlossaryProjectProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'GlossaryProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose', 'language', 'usage')), + 'GlossaryTermProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'aliases', 'summary', 'examples', 'abbreviation', 'usage')), + 'GlossaryTermRelationshipProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'expression', 'confidence', 'description', 'termRelationshipStatus', 'steward', 'source')), + 'GovernanceActionEngineProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'GovernanceActionExecutorProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'requestType', 'requestParameters', 'requestParameterFilter', 'requestParameterMap', 'actionTargetFilter', 'actionTargetMap')), + 'GovernanceActionProcessFlowProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'guard', 'requestParameters')), + 'GovernanceActionProcessInstanceProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'situation')), + 'GovernanceActionProcessProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription')), + 'GovernanceActionProcessStepProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription', 'waitTime', 'producedGuards', 'ignoreMultipleTriggers')), + 'GovernanceActionProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription')), + 'GovernanceActionServiceProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'implementationLanguage')), + 'GovernanceActionTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription', 'waitTime', 'producedGuards')), + 'GovernanceApproachProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results')), + 'GovernanceControlLinkProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'GovernanceControlProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription')), + 'GovernanceDefinitionProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results')), + 'GovernanceDriverLinkProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'GovernanceDriverProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results')), + 'GovernanceEngineProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'GovernanceExpectationsProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'counts', 'values', 'flags', 'dates')), + 'GovernanceMeasurementsProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'dataCollectionStartTime', 'dataCollectionEndTime', 'counts', 'values', 'flags', 'dates')), + 'GovernanceMechanismProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'GovernanceMetricProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription', 'measurement', 'target')), + 'GovernanceObligationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results')), + 'GovernancePolicyLinkProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'GovernancePolicyProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results')), + 'GovernancePrincipleProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results')), + 'GovernanceProcedureProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription')), + 'GovernanceProjectProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'GovernanceResponseProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'GovernanceResponsibilityProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription')), + 'GovernanceResultsProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'query', 'queryType')), + 'GovernanceRoleProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'scope', 'actorRoleGroups', 'headCountLimitSet', 'headCount', 'domainIdentifier')), + 'GovernanceRuleProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription')), + 'GovernanceServiceProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'implementationLanguage')), + 'GovernanceStrategyProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'businessImperatives')), + 'GovernanceZoneProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription', 'criteria')), + 'GovernedByProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'GraphEdgeLinkProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'linkTypeName', 'relationshipEnd', 'relationshipEndName', 'description', 'minCardinality', 'maxCardinality', 'additionalProperties')), + 'GraphEdgeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'namespacePath', 'allowsDuplicateValues', 'orderedValues', 'defaultValueOverride', 'sortOrder', 'minimumLength', 'length', 'precision', 'isNullable', 'nativeClass', 'aliases')), + 'GraphSchemaTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'usage', 'encodingStandard', 'namespacePath', 'formula', 'formulaType', 'queries')), + 'GraphStoreProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime')), + 'GraphVertexProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'namespacePath', 'allowsDuplicateValues', 'orderedValues', 'defaultValueOverride', 'sortOrder', 'minimumLength', 'length', 'precision', 'isNullable', 'nativeClass', 'aliases')), + 'HomeCollectionProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'HostClusterMemberProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'memberRole', 'additionalProperties')), + 'HostClusterProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'deploymentStatus', 'userDefinedDeploymentStatus', 'userId')), + 'HostProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'deploymentStatus', 'userDefinedDeploymentStatus', 'userId')), + 'ISARelationshipProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'expression', 'confidence', 'description', 'termRelationshipStatus', 'steward', 'source')), + 'ITInfrastructureProfileProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'ITInfrastructureProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'deploymentStatus', 'userDefinedDeploymentStatus', 'userId')), + 'ITProfileProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties')), + 'ITProfileRoleAppointmentProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'ITProfileRoleProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'scope', 'actorRoleGroups')), + 'ITSubsystemProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'ImpactProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'statusIdentifier', 'confidence', 'steward', 'stewardTypeName', 'stewardPropertyName', 'source', 'notes', 'severityLevel')), + 'ImpactedResourceProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'severityLevel')), + 'ImplementationResourceProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'role', 'description')), + 'ImplementationSnippetProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'snippet', 'implementationLanguage', 'usage')), + 'ImplementedByProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'role', 'description', 'designStep', 'transformation', 'iscQualifiedName')), + 'IncidentReportProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'formula', 'formulaType', 'purpose', 'startTime', 'completionTime', 'completionMessage', 'createdTime', 'lastModifiedTime', 'lastModifier', 'outputFormat', 'reportParameters', 'background', 'incidentStatus', 'incidentClassifiers', 'domainIdentifier')), + 'IncompleteProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'InformalTagProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties')), + 'InformationSupplyChainLinkProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'InformationSupplyChainProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose', 'scope', 'dataProcessingPurposes', 'integrationStyle', 'estimatedVolumetrics')), + 'InformationViewProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'formula', 'formulaType')), + 'InfrastructureProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'deploymentStatus', 'userDefinedDeploymentStatus')), + 'InstanceMetadataProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'instanceMetadataTypeName', 'description', 'additionalProperties')), + 'IntegrationConnectorProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'implementationLanguage', 'usesBlockingCalls')), + 'IntegrationGroupProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'InventoryCatalogProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'InvestigationProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'IsAConceptBeadProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'JSONFileProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'fileType', 'fileName', 'fileExtension')), + 'JournalEntryProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'situation')), + 'KeyStoreFileProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'fileType', 'fileName', 'fileExtension')), + 'KnownDuplicateProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'KnownLocationProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'LabeledRelationshipProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'LevelIdentifierQueryProperties': ('other', ('returnSpecificLevel', 'levelIdentifier')), + 'LicenseProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'licenseId', 'coverageStart', 'coverageEnd', 'conditions', 'licensedBy', 'licensedByTypeName', 'licensedByPropertyName', 'custodian', 'custodianTypeName', 'custodianPropertyName', 'licensee', 'licenseeTypeName', 'licenseePropertyName', 'entitlements', 'restrictions', 'obligations', 'notes')), + 'LicenseTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription', 'entitlements', 'restrictions', 'obligations')), + 'LikeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'emoji')), + 'LineageBoundaryProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'iscQualifiedName', 'derivation', 'oneWay', 'integrationStyle', 'protocol', 'frequency', 'dataExchanged', 'hops')), + 'LineageLogProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'process', 'source', 'notes')), + 'LineageMappingProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'iscQualifiedName', 'derivation', 'oneWay', 'integrationStyle', 'protocol', 'frequency', 'dataExchanged')), + 'LineageRelationshipProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'iscQualifiedName', 'derivation')), + 'LinkedDataFieldProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'relationshipTypeName', 'relationshipEnd', 'minCardinality', 'maxCardinality', 'displayName', 'description', 'additionalProperties')), + 'LinkedExternalSchemaTypeProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'LinkedFileProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'LinkedMediaProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'ListenerInterfaceProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'LiteralSchemaTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'usage', 'encodingStandard', 'namespacePath', 'formula', 'formulaType', 'queries', 'dataType', 'fixedValue')), + 'LocationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties')), + 'LogAnalysisProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'process', 'source', 'notes', 'dataCollectionStartTime', 'dataCollectionEndTime', 'counts', 'values', 'flags', 'dates')), + 'LogFileProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'fileType', 'fileName', 'fileExtension')), + 'MapFromElementTypeProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'MapSchemaTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'usage', 'encodingStandard', 'namespacePath', 'formula', 'formulaType', 'queries')), + 'MapToElementTypeProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'MasterDataManagerProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'MeasurementSpecificationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'matchPropertyNames', 'namespacePath', 'matchThreshold', 'specification', 'specificationDetails', 'dataType', 'units', 'absoluteUncertainty', 'relativeUncertainty', 'completenessDeclared', 'confidenceForm', 'uncertaintyForm', 'absenceSentences')), + 'MediaCollectionProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'formula', 'formulaType', 'embeddedMetadata')), + 'MediaFileProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'fileType', 'fileName', 'fileExtension', 'embeddedMetadata')), + 'MediaReferenceProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'mediaId', 'description', 'mediaUsage', 'mediaUsageOtherId')), + 'MeetingProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'situation', 'objective', 'minutes', 'decisions')), + 'MemberDataFieldProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'position', 'minCardinality', 'maxCardinality', 'coverageCategory')), + 'MemberPopularityProfileProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'explicitGetCountTotal', 'explicitGetCountProfile', 'findCountTotal', 'findCountProfile', 'updatePropertyCountTotal', 'updatePropertyCountProfile', 'updateAttachmentCountTotal', 'updateAttachmentCountProfile', 'updateFeedbackCountTotal', 'updateFeedbackCountProfile', 'deleteAttachmentCountTotal', 'deleteAttachmentCountProfile', 'deleteFeedbackCountTotal', 'deleteFeedbackCountProfile')), + 'MementoProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'archiveDate', 'archiveUser', 'archiveService', 'archiveMethod', 'archiveProcess', 'archiveProperties')), + 'MetadataCohortPeerProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'registrationDate')), + 'MetadataCollectionProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'formula', 'formulaType', 'managedMetadataCollectionId')), + 'MetadataRepositoryCohortProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'cohortTopics')), + 'MetadataRepositoryProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime')), + 'MetamodelInstanceProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'metamodelElementGUID')), + 'MeteringLogProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'process', 'source', 'notes')), + 'MethodologyProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription')), + 'MobileResourceProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'ModifierProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'MonitoredResourceProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'MoreInformationProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'NamespaceProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'NamingStandardRuleProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription', 'namePatterns')), + 'NamingStandardRuleSetProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'NamingStandardsVocabularyProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'NestedDataFieldProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'position', 'minCardinality', 'maxCardinality', 'coverageCategory')), + 'NestedDesignPatternProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'NestedFileProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'NestedLocationProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'NestedSchemaAttributeProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'position', 'minCardinality', 'maxCardinality', 'coverageCategory')), + 'NetworkGatewayLinkProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'displayName', 'description', 'externalEndpointAddresses', 'internalEndpointAddresses')), + 'NetworkGatewayProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'NetworkProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'deploymentStatus', 'userDefinedDeploymentStatus', 'userId')), + 'NewElementProperties': ('other', ('propertyValueMap', 'effectiveFrom', 'effectiveTo')), + 'NextGovernanceActionProcessStepProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'guard', 'mandatoryGuard')), + 'NoteLogProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties')), + 'NoteProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'situation')), + 'NotificationManagerProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'NotificationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'situation')), + 'NotificationSubscriberProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'activityStatus', 'zoneMembership', 'iscQualifiedName', 'lastNotification')), + 'NotificationTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription', 'plannedStartDate', 'multipleNotificationsPermitted', 'minimumNotificationInterval', 'lastNotification', 'nextScheduledNotification', 'notificationCount', 'plannedCompletionDate')), + 'ObjectAttributeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'namespacePath', 'allowsDuplicateValues', 'orderedValues', 'defaultValueOverride', 'sortOrder', 'minimumLength', 'length', 'precision', 'isNullable', 'nativeClass', 'aliases')), + 'ObjectIdentifierProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'ObjectSchemaTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'usage', 'encodingStandard', 'namespacePath', 'formula', 'formulaType', 'queries')), + 'OpenMetadataRootProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties')), + 'OpenMetadataTypeDefProperties': ('other', ('typeDefProperties',)), + 'OperatingPlatformManifestProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'OperatingPlatformProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'operatingSystem', 'byteOrdering', 'operatingSystemPatchLevel')), + 'OperatingPlatformUseProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'installTime', 'deployer', 'deployerTypeName', 'deployerPropertyName')), + 'OrganizationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'teamType')), + 'OwnershipProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'owner', 'ownerTypeName', 'ownerPropertyName', 'userIds', 'additionalProperties')), + 'ParquetFileProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'fileType', 'fileName', 'fileExtension')), + 'PartOfRelationshipProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'position', 'minCardinality', 'maxCardinality', 'coverageCategory')), + 'PeerDefinitionProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'PeerDuplicateLinkProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'statusIdentifier', 'steward', 'stewardTypeName', 'stewardPropertyName', 'source', 'notes')), + 'PeerProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'PenetrationTestFindingAnnotationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'annotationType', 'summary', 'sampleSize', 'samplePercent', 'samplingMethod', 'confidence', 'units', 'absoluteUncertainty', 'relativeUncertainty', 'expression', 'explanation', 'analysisStep', 'jsonProperties', 'severity', 'cvssScore', 'cvssVector', 'vulnerabilityIdentifiers', 'weaknessIdentifiers', 'affectedLocation', 'evidence', 'remediation', 'exploitAvailable', 'attackVector', 'attackTechniques', 'privilegesGained', 'compromisedResources', 'reproductionSteps')), + 'PermittedProcessingProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'PersonProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'courtesyTitle', 'initials', 'givenNames', 'surname', 'fullName', 'pronouns', 'jobTitle', 'employeeNumber', 'employeeType', 'preferredLanguage', 'residentCountry', 'timeZone')), + 'PersonRoleAppointmentProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'expectedTimeAllocationPercent')), + 'PersonRoleProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'scope', 'actorRoleGroups', 'headCountLimitSet', 'headCount')), + 'PersonalProjectProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'PerspectiveProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties')), + 'PolicyAdministrationPointProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'pointType')), + 'PolicyDecisionPointProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'pointType')), + 'PolicyEnforcementPointProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'pointType')), + 'PolicyInformationPointProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'pointType')), + 'PolicyManagementPointProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'pointType')), + 'PolicyRetrievalPointProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'pointType')), + 'PortAliasProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'portType')), + 'PortDelegationProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'PortImplementationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'portType')), + 'PortProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'portType')), + 'PreferredTermProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'expression', 'confidence', 'description', 'termRelationshipStatus', 'steward', 'source')), + 'PrimaryKeyProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'displayName', 'keyPattern')), + 'PrimeWordProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'PrimitiveSchemaTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'usage', 'encodingStandard', 'namespacePath', 'formula', 'formulaType', 'queries', 'dataType', 'defaultValue')), + 'ProcessCallProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'iscQualifiedName', 'derivation', 'oneWay', 'integrationStyle', 'protocol', 'frequency', 'dataExchanged', 'formula', 'formulaType', 'lineNumber')), + 'ProcessHierarchyProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'containmentType')), + 'ProcessPortProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'ProcessProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus')), + 'ProfileIdentityProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'roleTypeName', 'roleGUID', 'description')), + 'ProjectClassificationProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'approach', 'managementStyle', 'resultsUsage')), + 'ProjectDependencyProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'ProjectHierarchyProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'ProjectKindProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'ProjectProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'mission', 'dataProcessingPurposes', 'successCriteria', 'projectPhase', 'projectHealth', 'projectStatus', 'priority', 'plannedStartDate', 'actualStartDate', 'plannedCompletionDate', 'actualCompletionDate')), + 'PromiseProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'deploymentStatus', 'userDefinedDeploymentStatus', 'startTime', 'dueTime', 'lastReviewTime', 'completionTime', 'additionalProperties')), + 'PropertiesFileProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'fileType', 'fileName', 'fileExtension')), + 'PropertyFacetProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'properties')), + 'ProvisioningActionProcessProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription')), + 'PublisherInterfaceProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'QualityAnnotationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'annotationType', 'summary', 'sampleSize', 'samplePercent', 'samplingMethod', 'confidence', 'units', 'absoluteUncertainty', 'relativeUncertainty', 'expression', 'explanation', 'analysisStep', 'jsonProperties', 'dataType', 'matchingValues', 'nonMatchingValues', 'qualityDescription', 'qualityDimension', 'qualityScore')), + 'QueryDataContainerProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'namespacePath', 'allowsDuplicateValues', 'orderedValues', 'defaultValueOverride', 'sortOrder', 'minimumLength', 'length', 'precision', 'isNullable', 'nativeClass', 'aliases')), + 'QueryDataFieldProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'namespacePath', 'allowsDuplicateValues', 'orderedValues', 'defaultValueOverride', 'sortOrder', 'minimumLength', 'length', 'precision', 'isNullable', 'nativeClass', 'aliases')), + 'QuerySchemaTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'usage', 'encodingStandard', 'namespacePath', 'formula', 'formulaType', 'queries')), + 'QuestionProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'RESTAPIManagerProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'RasterFileProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'fileType', 'fileName', 'fileExtension', 'embeddedMetadata')), + 'RatingProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'starRating', 'review')), + 'RecentAccessProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'ReferenceCodeMappingTableProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'formula', 'formulaType')), + 'ReferenceCodeTableProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'formula', 'formulaType')), + 'ReferenceDataProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'ReferenceDataSetProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'namespacePath', 'usage', 'scope', 'preferredValue', 'dataType', 'isCaseSensitive', 'ordinal')), + 'ReferenceDataValueProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'namespacePath', 'usage', 'scope', 'preferredValue', 'dataType', 'isCaseSensitive', 'ordinal')), + 'ReferenceListProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'ReferenceValueAssignmentProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'attributeName', 'confidence', 'steward', 'stewardTypeName', 'stewardPropertyName', 'notes')), + 'ReferenceableFacetProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'source')), + 'ReferenceableProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties')), + 'RegisteredIntegrationConnectorProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'connectorName', 'connectorUserId', 'metadataCollectionQualifiedName', 'metadataSourceQualifiedName', 'startDate', 'refreshTimeInterval', 'connectorShutdownDate', 'permittedSynchronization', 'generateConnectorActivityReports')), + 'RegulationArticleProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results')), + 'RegulationCertificationTypeProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'RegulationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'regulationSource', 'regulators')), + 'RegulatorProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'scope')), + 'RelatedContextEventProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'statusIdentifier', 'source', 'confidence', 'steward', 'stewardTypeName', 'stewardPropertyName', 'notes')), + 'RelatedDesignPatternProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'RelatedMediaProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'referenceTitle', 'referenceAbstract', 'organization', 'sources', 'license', 'copyright', 'attribution', 'mediaType', 'mediaTypeOtherId', 'defaultMediaUsage', 'defaultMediaUsageOtherId')), + 'RelatedTermProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'expression', 'confidence', 'description', 'termRelationshipStatus', 'steward', 'source')), + 'RelationalColumnProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'namespacePath', 'allowsDuplicateValues', 'orderedValues', 'defaultValueOverride', 'sortOrder', 'minimumLength', 'length', 'precision', 'isNullable', 'nativeClass', 'aliases')), + 'RelationalDBSchemaProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'RelationalDBSchemaTypeListProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'usage', 'encodingStandard', 'namespacePath', 'formula', 'formulaType', 'queries')), + 'RelationalDBSchemaTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'usage', 'encodingStandard', 'namespacePath', 'formula', 'formulaType', 'queries')), + 'RelationalDatabaseProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'databaseInstance', 'importedFrom')), + 'RelationalTableProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'namespacePath', 'allowsDuplicateValues', 'orderedValues', 'defaultValueOverride', 'sortOrder', 'minimumLength', 'length', 'precision', 'isNullable', 'nativeClass', 'aliases')), + 'RelationalTableTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'usage', 'encodingStandard', 'namespacePath', 'formula', 'formulaType', 'queries')), + 'RelationshipAdviceAnnotationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'annotationType', 'summary', 'sampleSize', 'samplePercent', 'samplingMethod', 'confidence', 'units', 'absoluteUncertainty', 'relativeUncertainty', 'expression', 'explanation', 'analysisStep', 'jsonProperties', 'dataType', 'matchingValues', 'nonMatchingValues', 'relatedEntityGUID', 'relationshipTypeName', 'relationshipProperties')), + 'RelationshipBeanProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'RelationshipElementProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'propertyValueMap')), + 'RelationshipProperties': ('relationship', ('effectiveFrom', 'effectiveTo')), + 'ReplacementTermProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'expression', 'confidence', 'description', 'termRelationshipStatus', 'steward', 'source')), + 'ReportDependencyProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'ReportOriginatorProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'ReportProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'formula', 'formulaType', 'purpose', 'startTime', 'completionTime', 'completionMessage', 'createdTime', 'lastModifiedTime', 'lastModifier', 'outputFormat', 'reportParameters')), + 'ReportRunOfProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'resultState', 'resultStateReason', 'resultLocation')), + 'ReportSpecProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose', 'createdTime', 'lastModifiedTime', 'lastModifier', 'microflow', 'targetTypeName', 'aliases', 'outputTypes', 'includePreamble')), + 'ReportSubjectProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'ReportTypeInstanceProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'ReportTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose', 'createdTime', 'lastModifiedTime', 'lastModifier')), + 'ReportedAnnotationProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'ReportingEngineProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'RepositoryGovernanceEngineProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'RepositoryGovernanceServiceProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'implementationLanguage')), + 'RequestForActionProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'annotationType', 'summary', 'sampleSize', 'samplePercent', 'samplingMethod', 'confidence', 'units', 'absoluteUncertainty', 'relativeUncertainty', 'expression', 'explanation', 'analysisStep', 'jsonProperties', 'dataType', 'matchingValues', 'nonMatchingValues', 'actionSourceName', 'actionRequested', 'actionProperties')), + 'RequestForActionTargetProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'actionTargetName')), + 'RequestResponseInterfaceProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'RequirementProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription')), + 'ResearchQuestionProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription')), + 'ResourceConnectionProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'ResourceListProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'ResourceManagerProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'ResourceMeasureAnnotationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'annotationType', 'summary', 'sampleSize', 'samplePercent', 'samplingMethod', 'confidence', 'units', 'absoluteUncertainty', 'relativeUncertainty', 'expression', 'explanation', 'analysisStep', 'jsonProperties', 'resourceProperties')), + 'ResourcePermissionsProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'ResourcePhysicalStatusAnnotationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'annotationType', 'summary', 'sampleSize', 'samplePercent', 'samplingMethod', 'confidence', 'units', 'absoluteUncertainty', 'relativeUncertainty', 'expression', 'explanation', 'analysisStep', 'jsonProperties', 'resourceProperties', 'resourceCreateTime', 'resourceUpdateTime', 'resourceLastAccessedTime', 'size', 'encodingType')), + 'ResourceProfileAnnotationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'annotationType', 'summary', 'sampleSize', 'samplePercent', 'samplingMethod', 'confidence', 'units', 'absoluteUncertainty', 'relativeUncertainty', 'expression', 'explanation', 'analysisStep', 'jsonProperties', 'dataType', 'matchingValues', 'nonMatchingValues', 'profilePropertyNames', 'length', 'inferredDataType', 'inferredFormat', 'inferredLength', 'inferredPrecision', 'inferredScale', 'profileStartDate', 'profileEndDate', 'profileProperties', 'profileFlags', 'profileDates', 'profileCounts', 'profileDoubles', 'valueList', 'valueCount', 'valueRangeFrom', 'valueRangeTo', 'averageValue')), + 'ResourceProfileDataProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'ResourceProfileLogAnnotationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'annotationType', 'summary', 'sampleSize', 'samplePercent', 'samplingMethod', 'confidence', 'units', 'absoluteUncertainty', 'relativeUncertainty', 'expression', 'explanation', 'analysisStep', 'jsonProperties', 'dataType', 'matchingValues', 'nonMatchingValues', 'resourceProfileLogGUIDs')), + 'ResultsSetProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose', 'createdTime', 'startTime', 'completionTime', 'completionMessage')), + 'RetentionProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'statusIdentifier', 'confidence', 'steward', 'stewardTypeName', 'stewardPropertyName', 'source', 'notes', 'retentionBasis', 'associatedGUID', 'archiveAfter', 'deleteAfter')), + 'ReusableTechniqueProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'ReusableTechniqueUseProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'ReviewProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'situation', 'reviewDate', 'comment')), + 'RiskProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results')), + 'RoledRelationshipProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'role', 'description')), + 'RootCollectionProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'RootSchemaTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'usage', 'encodingStandard', 'namespacePath', 'formula', 'formulaType', 'queries')), + 'RunMetricsProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'runCount', 'failedRunCount', 'firstRunStartTime', 'lastRunId', 'lastRunStartTime', 'lastRunEndTime', 'lastRunStatus', 'lastRunDuration', 'totalRunDuration', 'lastRunRowsRead', 'lastRunRowsWritten', 'lastRunBytesRead', 'lastRunBytesWritten', 'totalRowsRead', 'totalRowsWritten', 'totalBytesRead', 'totalBytesWritten', 'additionalProperties')), + 'RunnableSoftwareComponentProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'runtimeEnvironmentType')), + 'SampleDataProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'samplingMethod')), + 'SavedQueryProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'formula', 'formulaType', 'queryURL', 'queryRequestBody')), + 'SchemaAnalysisAnnotationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'annotationType', 'summary', 'sampleSize', 'samplePercent', 'samplingMethod', 'confidence', 'units', 'absoluteUncertainty', 'relativeUncertainty', 'expression', 'explanation', 'analysisStep', 'jsonProperties', 'schemaName', 'schemaType')), + 'SchemaAttributeDefinitionProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'SchemaAttributeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'namespacePath', 'allowsDuplicateValues', 'orderedValues', 'defaultValueOverride', 'sortOrder', 'minimumLength', 'length', 'precision', 'isNullable', 'nativeClass', 'aliases')), + 'SchemaAttributeRelationshipProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'linkGUID', 'linkType', 'linkedAttributeName', 'linkProperties', 'linkedAttributeGUID')), + 'SchemaElementProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus')), + 'SchemaProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'SchemaTypeChoiceProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'usage', 'encodingStandard', 'namespacePath', 'formula', 'formulaType', 'queries')), + 'SchemaTypeDefinitionProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'SchemaTypeOptionProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'SchemaTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'usage', 'encodingStandard', 'namespacePath', 'formula', 'formulaType', 'queries')), + 'ScopedByProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'ScopingCollectionProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'description')), + 'ScriptFileProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'fileType', 'fileName', 'fileExtension')), + 'SearchKeywordLinkProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'SearchKeywordProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'displayName', 'description')), + 'SearchProperties': ('other', ('conditions', 'matchCriteria')), + 'SecretsCollectionProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'formula', 'formulaType', 'refreshTimeInterval')), + 'SecretsCollectionSecurityListProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'SecureLocationProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'description', 'level')), + 'SecurityAccessControlProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription')), + 'SecurityFindingAnnotationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'annotationType', 'summary', 'sampleSize', 'samplePercent', 'samplingMethod', 'confidence', 'units', 'absoluteUncertainty', 'relativeUncertainty', 'expression', 'explanation', 'analysisStep', 'jsonProperties', 'severity', 'cvssScore', 'cvssVector', 'vulnerabilityIdentifiers', 'weaknessIdentifiers', 'affectedLocation', 'evidence', 'remediation', 'exploitAvailable')), + 'SecurityGroupProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose', 'distinguishedName')), + 'SecurityListMembershipProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'securityGroups', 'securityRoles')), + 'SecurityListProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose', 'distinguishedName')), + 'SecurityLogProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'process', 'source', 'notes')), + 'SecurityPostureAnnotationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'annotationType', 'summary', 'sampleSize', 'samplePercent', 'samplingMethod', 'confidence', 'units', 'absoluteUncertainty', 'relativeUncertainty', 'expression', 'explanation', 'analysisStep', 'jsonProperties', 'resourceProperties', 'findingCountsBySeverity', 'resourcesInScopeCount', 'resourcesTestedCount', 'newFindingCount', 'resolvedFindingCount')), + 'SecurityRoleProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose', 'distinguishedName')), + 'SecurityTagQueryProperties': ('other', ('securityLabels', 'securityProperties')), + 'SecurityTagsProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'securityLabels', 'securityProperties')), + 'SemanticAnnotationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'annotationType', 'summary', 'sampleSize', 'samplePercent', 'samplingMethod', 'confidence', 'units', 'absoluteUncertainty', 'relativeUncertainty', 'expression', 'explanation', 'analysisStep', 'jsonProperties', 'dataType', 'matchingValues', 'nonMatchingValues', 'informalTerm', 'subjectAreaName', 'candidateGlossaryTermGUIDs', 'candidateSubjectAreaGUIDs')), + 'SemanticAssignmentProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'expression', 'description', 'termAssignmentStatus', 'confidence', 'createdBy', 'steward', 'stewardTypeName', 'stewardPropertyName', 'source', 'notes')), + 'SemanticAssignmentQueryProperties': ('other', ('expression', 'description', 'status', 'returnSpecificConfidence', 'confidence', 'createdBy', 'steward', 'source')), + 'SemanticDefinitionProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'ServerEndpointProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'ServiceAccessControlProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription', 'mappingProperties')), + 'ServiceLevelObjectiveProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription', 'entitlements', 'restrictions', 'obligations')), + 'SimpleSchemaTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'usage', 'encodingStandard', 'namespacePath', 'formula', 'formulaType', 'queries', 'dataType', 'defaultValue')), + 'SkillProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus')), + 'SkillSetProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'SmartQueryProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'SoftwareArchiveProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'SoftwareCapabilityProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'SoftwareComponentProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'SoftwareLibraryProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source', 'libraryType')), + 'SoftwareModuleProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'SoftwarePackageDependencyProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'SoftwarePackageManifestProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'SoftwareServerPlatformProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'deploymentStatus', 'userDefinedDeploymentStatus', 'userId')), + 'SoftwareServerProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'deploymentStatus', 'userDefinedDeploymentStatus', 'userId')), + 'SoftwareServiceProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'SoftwareSourceProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'SolutionActorRoleProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'scope', 'actorRoleGroups')), + 'SolutionBlueprintProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'SolutionComponentActorProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'role', 'description')), + 'SolutionComponentPortProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'role', 'description')), + 'SolutionComponentProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'canonicalName', 'solutionComponentType', 'plannedDeployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus')), + 'SolutionCompositionProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'role', 'description')), + 'SolutionDesignProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'SolutionLinkingWireProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'iscQualifiedNames', 'oneWay', 'integrationStyle', 'protocol', 'frequency', 'dataExchanged')), + 'SolutionPortDelegationProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'role', 'description')), + 'SolutionPortProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'canonicalName', 'direction')), + 'SourceCodeFileProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'fileType', 'fileName', 'fileExtension')), + 'SourceControlLibraryProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source', 'libraryType')), + 'SourcedFromProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'sourceVersionNumber')), + 'SpecializedDesignPatternProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'SpecificationPropertyAssignmentProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'propertyName')), + 'SpecificationPropertyValueProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'namespacePath', 'usage', 'scope', 'preferredValue', 'dataType', 'isCaseSensitive', 'ordinal')), + 'SpreadsheetFileProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'fileType', 'fileName', 'fileExtension')), + 'StagingCollectionProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'description')), + 'StatementOfApplicabilityProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'scope', 'reviewDate')), + 'StorageVolumeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'storageCapacity', 'units', 'relativeUncertainty', 'absoluteUncertainty')), + 'StoredOnProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'StructSchemaTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'usage', 'encodingStandard', 'namespacePath', 'formula', 'formulaType', 'queries')), + 'StudyProjectProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'SubjectAreaHierarchyProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'SubjectAreaProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose', 'scope', 'usage', 'domainIdentifier')), + 'SubscribingActionProcessProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription')), + 'SupplementaryPropertiesProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'SupportedGovernanceServiceProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'requestType', 'serviceRequestType', 'requestParameters', 'generateConnectorActivityReports', 'deleteMethod')), + 'SupportedSoftwareCapabilityProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'deploymentTime', 'deployer', 'deployerTypeName', 'deployerPropertyName')), + 'SupportingDefinitionProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'SurveyActionEngineProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'SurveyActionServiceProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'implementationLanguage')), + 'SurveyReportProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'formula', 'formulaType', 'purpose', 'startTime', 'completionTime', 'completionMessage', 'createdTime', 'lastModifiedTime', 'lastModifier', 'outputFormat', 'reportParameters', 'analysisParameters', 'analysisStep')), + 'SurveyingActionProcessProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription')), + 'SynonymProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'expression', 'confidence', 'description', 'termRelationshipStatus', 'steward', 'source')), + 'TabularColumnProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'namespacePath', 'allowsDuplicateValues', 'orderedValues', 'defaultValueOverride', 'sortOrder', 'minimumLength', 'length', 'precision', 'isNullable', 'nativeClass', 'aliases')), + 'TabularDataSetCollectionProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'formula', 'formulaType')), + 'TabularDataSetProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'formula', 'formulaType')), + 'TabularFileColumnProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'namespacePath', 'allowsDuplicateValues', 'orderedValues', 'defaultValueOverride', 'sortOrder', 'minimumLength', 'length', 'precision', 'isNullable', 'nativeClass', 'aliases')), + 'TabularSchemaTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'usage', 'encodingStandard', 'namespacePath', 'formula', 'formulaType', 'queries')), + 'TargetForGovernanceActionProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'actionTargetName')), + 'TaskProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'TaxonomyProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'organizingPrinciple')), + 'TeamProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'teamType')), + 'TeamRoleAppointmentProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'expectedTimeAllocationPercent')), + 'TeamRoleProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'scope', 'actorRoleGroups', 'headCountLimitSet', 'headCount')), + 'TeamStructureProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'delegationEscalationAuthority')), + 'TechnologyTypeProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'namespacePath', 'usage', 'scope', 'preferredValue', 'dataType', 'isCaseSensitive', 'ordinal')), + 'TemplateProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'displayName', 'description', 'versionIdentifier', 'additionalProperties')), + 'TemplateSubstituteProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'TermsAndConditionsProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results', 'implementationDescription', 'entitlements', 'restrictions', 'obligations')), + 'ThreatProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'summary', 'scope', 'usage', 'domainIdentifier', 'importance', 'implications', 'outcomes', 'results')), + 'ThreeDImageFileProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'fileType', 'fileName', 'fileExtension', 'embeddedMetadata')), + 'ToDoProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'situation')), + 'TopicProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'topicType')), + 'TransientEmbeddedProcessProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'situation')), + 'TranslationDetailProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'language', 'languageCode', 'locale', 'displayName', 'description', 'additionalTranslations')), + 'TranslationLinkProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'TypeEmbeddedAttributeProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'schemaTypeName', 'qualifiedName', 'displayName', 'description', 'versionIdentifier', 'category', 'additionalProperties', 'usage', 'encodingStandard', 'namespacePath', 'dataType', 'defaultValue', 'fixedValue')), + 'TypedByConceptBeadProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'UltimateDestinationProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'iscQualifiedName', 'derivation', 'oneWay', 'integrationStyle', 'protocol', 'frequency', 'dataExchanged', 'hops')), + 'UltimateSourceProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description', 'iscQualifiedName', 'derivation', 'oneWay', 'integrationStyle', 'protocol', 'frequency', 'dataExchanged', 'hops')), + 'UsageActivityProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'explicitGetCount', 'findCount', 'updatePropertyCount', 'updateAttachmentCount', 'updateFeedbackCount', 'deleteAttachmentCount', 'deleteFeedbackCount')), + 'UsedInContextProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'expression', 'confidence', 'description', 'termRelationshipStatus', 'steward', 'source')), + 'UserAccessDirectoryProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'UserAccountProfileProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'userAccountCount', 'employeeAccountCount', 'contractorAccountCount', 'externalAccountCount', 'digitalAccountCount', 'activeAccountCount', 'expiredAccountCount', 'lockedAccountCount', 'disabledAccountCount', 'userAccountTypes', 'userAccountStatuses', 'additionalProperties')), + 'UserAccountProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'label', 'description')), + 'UserAuthenticationManagerProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'UserIdentityProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'userId', 'distinguishedName')), + 'UserProfileManagerProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'ValidMetadataValueProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'namespacePath', 'usage', 'scope', 'preferredValue', 'dataType', 'isCaseSensitive', 'ordinal')), + 'ValidValueAssociationProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'associationName', 'associationType', 'additionalProperties')), + 'ValidValueDefinitionProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'namespacePath', 'usage', 'scope', 'preferredValue', 'dataType', 'isCaseSensitive', 'ordinal')), + 'ValidValueMemberProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'isDefaultValue', 'ordinal')), + 'ValidValuesAssignmentProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'strictRequirement')), + 'ValidValuesImplementationProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'symbolicName', 'implementationValue', 'additionalValues')), + 'ValidValuesMappingProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'associationDescription', 'confidence', 'steward', 'stewardTypeName', 'stewardPropertyName', 'notes')), + 'VectorFileProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'fileType', 'fileName', 'fileExtension', 'embeddedMetadata')), + 'VerificationPointProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'qualifiedName')), + 'VideoFileProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'fileType', 'fileName', 'fileExtension', 'embeddedMetadata')), + 'VirtualConnectionProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'userId', 'encryptedPassword', 'clearPassword', 'configurationProperties', 'securedProperties')), + 'VirtualContainerProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'deploymentStatus', 'userDefinedDeploymentStatus', 'userId')), + 'VirtualMachineProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'deploymentStatus', 'userDefinedDeploymentStatus', 'userId')), + 'VirtualRelationalTableProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'formula', 'formulaType')), + 'VisibleEndpointProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'VulnerabilityAnnotationProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'annotationType', 'summary', 'sampleSize', 'samplePercent', 'samplingMethod', 'confidence', 'units', 'absoluteUncertainty', 'relativeUncertainty', 'expression', 'explanation', 'analysisStep', 'jsonProperties', 'severity', 'cvssScore', 'cvssVector', 'vulnerabilityIdentifiers', 'weaknessIdentifiers', 'affectedLocation', 'evidence', 'remediation', 'exploitAvailable', 'packageURL', 'installedVersion', 'fixedVersion', 'patchAvailable')), + 'WatchdogActionEngineProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'WatchdogActionServiceProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'expectedBehaviour', 'requestedTime', 'requestedStartTime', 'startTime', 'dueTime', 'lastReviewTime', 'lastPauseTime', 'lastResumeTime', 'completionTime', 'priority', 'formula', 'formulaType', 'activityStatus', 'userDefinedActivityStatus', 'implementationLanguage')), + 'WorkItemListProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose')), + 'WorkflowEngineProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'deploymentStatus', 'userDefinedDeploymentStatus', 'patchLevel', 'source')), + 'WorkingSetProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'authors', 'contentStatus', 'userDefinedContentStatus', 'purpose', 'disposition')), + 'XMLFileProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'fileType', 'fileName', 'fileExtension')), + 'YAMLFileProperties': ('entity', ('effectiveFrom', 'effectiveTo', 'typeName', 'legal', 'extendedProperties', 'qualifiedName', 'identifier', 'displayName', 'description', 'versionIdentifier', 'category', 'url', 'additionalProperties', 'resourceName', 'namespacePath', 'deployedImplementationType', 'source', 'authors', 'contentStatus', 'userDefinedContentStatus', 'pathName', 'storeCreateTime', 'storeUpdateTime', 'fileType', 'fileName', 'fileExtension')), + 'ZoneHierarchyProperties': ('relationship', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties')), + 'ZoneMembershipProfileProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'totalMembership', 'typeMembership', 'anchoredTotalMembership', 'anchoredTypeMembership', 'allTotalMembership', 'allTypeMembership', 'analysisTime')), + 'ZoneMembershipProperties': ('classification', ('effectiveFrom', 'effectiveTo', 'typeName', 'extendedProperties', 'zoneMembership')), +} diff --git a/md_processing/md_processing_utils/typed_properties.py b/md_processing/md_processing_utils/typed_properties.py new file mode 100644 index 00000000..460b0827 --- /dev/null +++ b/md_processing/md_processing_utils/typed_properties.py @@ -0,0 +1,197 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +""" +Typed Egeria property bodies from Dr.Egeria dictionaries, and a sentence for every key that can't be sent. + +Egeria's RelationshipProperties, ClassificationProperties and EntityProperties are polymorphic: a value +sent without a "class" is a 400 (InvalidTypeIdException) that loses the whole create, and a property the +named class doesn't declare is silently ignored. So a Dr.Egeria dictionary aimed at one of them +(Parent Relationship Attributes, Generic Initial Classifications, Initial Classifications, Template +Properties) goes through here: + +- the class is `Properties` (or `ClassificationProperties`), checked against + properties_class_fields (generated from Egeria's Java source) for the expected kind; +- each key the class reads is sent; every other key is left out and reported as + "not applied: : isn't a property of ". + +Each function returns (value_to_send_or_None, notes); callers add the notes to the command's warnings. +""" +from __future__ import annotations + +import json +from typing import Any + +from md_processing.md_processing_utils.properties_class_fields import PROPERTIES_CLASS_FIELDS + +_ALWAYS_IGNORED = {"class", "typeName"} + + +def properties_class(kind: str, type_name: str | None) -> str | None: + """The Egeria properties class of `kind` for a type name, or None.""" + if not type_name: + return None + name = str(type_name).strip().replace(" ", "") + for candidate in (name if name.endswith("Properties") else f"{name}Properties", f"{name}ClassificationProperties"): + found = PROPERTIES_CLASS_FIELDS.get(candidate) + if found and found[0] == kind: + return candidate + return None + + +def _as_dict(value: Any) -> dict | None: + if value in (None, "", {}): + return None + if isinstance(value, dict): + return value + if isinstance(value, str): + try: + parsed = json.loads(value) + except ValueError: + return None + return parsed if isinstance(parsed, dict) else None + return None + + +def typed_properties(kind: str, type_name: str | None, values: dict, attribute: str) -> tuple[dict | None, list[str]]: + """{"class": Properties, } plus a note per key left out.""" + notes: list[str] = [] + cls = properties_class(kind, type_name) + if cls is None: + notes.append(f"not applied: {attribute}: {type_name or '(no type)'} has no {kind} properties in Egeria" + + (f" ({', '.join(sorted(values))})" if values else "")) + return None, notes + fields = PROPERTIES_CLASS_FIELDS[cls][1] + body = {"class": cls} + for key, value in values.items(): + if key in _ALWAYS_IGNORED: + continue + if key in fields: + body[key] = value + else: + notes.append(f"not applied: {attribute}: {key} isn't a property of {type_name}") + return body, notes + + +def parent_relationship_properties(attributes: dict, attribute: str = "Parent Relationship Attributes", + type_attribute: str = "Parent Relationship Type Name") -> tuple[dict | None, list[str]]: + """The NewElementRequestBody/TemplateRequestBody `parentRelationshipProperties`, typed by the parent + relationship type.""" + raw = (attributes.get(attribute) or {}).get("value") + if raw in (None, "", {}) and attribute == "Parent Relationship Attributes": + attribute = "Parent Relationship Properties" + raw = (attributes.get(attribute) or {}).get("value") + if raw in (None, "", {}): + return None, [] + values = _as_dict(raw) + if values is None: + return None, [f"not applied: {attribute}: expected a dictionary of relationship properties, got {raw!r}"] + rel_type = ((attributes.get(type_attribute) or {}).get("value") + or (attributes.get("Parent Relationship Type") or {}).get("value")) + if not rel_type: + return None, [f"not applied: {attribute}: it needs a {type_attribute} to say which relationship " + f"properties these are ({', '.join(sorted(values))})"] + body, notes = typed_properties("relationship", rel_type, values, attribute) + if body is not None and len(body) == 1: # only "class": nothing the relationship reads + return None, notes + return body, notes + + +def classification_map(raw: Any, attribute: str) -> tuple[dict | None, list[str]]: + """`initialClassifications` / `replacementClassifications`: {ClassificationName: {"class": ..., props}}. + + The Dr.Egeria value is a dictionary of classification name -> dictionary of its properties (or + empty for a classification with no properties).""" + if raw in (None, "", {}): + return None, [] + values = _as_dict(raw) + if values is None: + return None, [f"not applied: {attribute}: expected a dictionary of classification name -> properties, " + f"got {raw!r}"] + out, notes = {}, [] + for name, props in values.items(): + props_dict = {} if props in (None, "", {}) else _as_dict(props) + if props_dict is None: + notes.append(f"not applied: {attribute}: {name} needs a dictionary of its properties, got {props!r}") + continue + body, more = typed_properties("classification", name, props_dict, f"{attribute}: {name}") + notes += [n.replace(f"not applied: {attribute}: {name}: ", f"not applied: {attribute}: ") + .replace(f"{name} has no classification properties in Egeria", + f"{name} isn't an Egeria classification") for n in more] + if body is not None: + out[name] = body + return (out or None), notes + + +def entity_properties(type_name: str | None, raw: Any, attribute: str) -> tuple[dict | None, list[str]]: + """Typed entity properties (e.g. a template's `replacementProperties`) for a known element type.""" + if raw in (None, "", {}): + return None, [] + values = _as_dict(raw) + if values is None: + return None, [f"not applied: {attribute}: expected a dictionary of properties, got {raw!r}"] + if not type_name: + return None, [f"not applied: {attribute}: the element type isn't known, so its properties can't be " + f"checked ({', '.join(sorted(values))})"] + body, notes = typed_properties("entity", type_name, values, attribute) + if body is not None and len(body) == 1: + return None, notes + return body, notes + + +def long_value(attributes: dict, attribute: str) -> tuple[int | None, list[str]]: + """An attribute Egeria stores as a Java Long: integral input becomes an int; anything else is refused + with a sentence (and not sent).""" + raw = (attributes.get(attribute) or {}).get("value") + if raw in (None, ""): + return None, [] + try: + number = float(raw) + except (TypeError, ValueError): + return None, [f"not applied: {attribute}: {raw!r} isn't a number"] + if not number.is_integer(): + return None, [f"not applied: {attribute}: {raw!r} isn't a whole number; Egeria stores it as an integer"] + return int(number), [] + + +def record_not_applied(attributes: dict, attribute: str, notes: list[str]) -> None: + """Keep each note on the attribute it is about (attributes[attribute]["not_applied"]); the command + processor reports them all as warnings, so a body builder needs no access to the processor.""" + if not notes: + return + entry = attributes.get(attribute) + if not isinstance(entry, dict): + entry = attributes.setdefault(attribute, {"value": None}) + if not isinstance(entry, dict): + return + held = entry.setdefault("not_applied", []) + held.extend(n for n in notes if n not in held) + + +def not_applied_notes(attributes: dict) -> list[str]: + """Every not-applied note recorded on a command's attributes, in attribute order.""" + out: list[str] = [] + for entry in (attributes or {}).values(): + if isinstance(entry, dict): + out.extend(n for n in entry.get("not_applied") or [] if n not in out) + return out + + +_PRIMITIVES = {bool: ("boolean", "OM_PRIMITIVE_TYPE_BOOLEAN"), int: ("int", "OM_PRIMITIVE_TYPE_INT"), + float: ("double", "OM_PRIMITIVE_TYPE_DOUBLE")} + + +def new_element_properties(typed: dict | None) -> dict | None: + """A typed properties body as the OMF `NewElementProperties` property-value map, the shape the + metadata-expert `related-elements` endpoint reads (frameworkservices/omf/rest/ + NewRelatedElementsRequestBody.properties is a NewElementProperties, not a RelationshipProperties).""" + if not typed: + return None + values = {} + for key, value in typed.items(): + if key in _ALWAYS_IGNORED or value is None: + continue + type_name, category = _PRIMITIVES.get(type(value), ("string", "OM_PRIMITIVE_TYPE_STRING")) + values[key] = {"class": "PrimitiveTypePropertyValue", "typeName": type_name, + "primitiveTypeCategory": category, + "primitiveValue": value if type_name != "string" else str(value)} + return {"class": "NewElementProperties", "propertyValueMap": values} if values else None diff --git a/md_processing/v2/asset_maker.py b/md_processing/v2/asset_maker.py index 8870885b..26612693 100644 --- a/md_processing/v2/asset_maker.py +++ b/md_processing/v2/asset_maker.py @@ -17,6 +17,7 @@ from md_processing.v2.processors import AsyncBaseCommandProcessor from md_processing.md_processing_utils.common_md_utils import update_element_dictionary +from md_processing.md_processing_utils.typed_properties import parent_relationship_properties def _v(attributes: dict, name: str, default=None): @@ -54,6 +55,9 @@ async def apply_changes(self) -> str: if status.get("value") and not status.get("is_default"): logger.warning("'Initial Status' ignored: Egeria no longer accepts it. Set contentStatus " "(or the type's own status) in Template Properties instead.") + parent_props, notes = parent_relationship_properties(attributes) + for note in notes: + self._add_warning(note) body = { "class": "TemplateRequestBody", "typeName": _v(attributes, "Element Type Name"), @@ -68,7 +72,7 @@ async def apply_changes(self) -> str: "effectiveTo": _v(attributes, "Effective To"), "parentGUID": _guid(attributes, "Parent ID"), "parentRelationshipTypeName": _v(attributes, "Parent Relationship Type Name"), - "parentRelationshipProperties": _v(attributes, "Parent Relationship Attributes"), + "parentRelationshipProperties": parent_props, "parentAtEnd1": _v(attributes, "Parent at End1", True), "deepCopy": _v(attributes, "Deep Copy"), } diff --git a/md_processing/v2/processors.py b/md_processing/v2/processors.py index 78ead735..5bc2d0ba 100644 --- a/md_processing/v2/processors.py +++ b/md_processing/v2/processors.py @@ -16,6 +16,8 @@ from md_processing.v2.extraction import DrECommand from md_processing.v2.parsing import AttributeFirstParser +from md_processing.md_processing_utils.typed_properties import (new_element_properties, not_applied_notes, + parent_relationship_properties) from md_processing.md_processing_utils.md_processing_constants import get_command_spec, resolve_command_spec, VIEW_VERBS from md_processing.md_processing_utils.common_md_utils import ( update_element_dictionary, get_element_dictionary, is_present, find_key_with_value @@ -505,10 +507,11 @@ async def _sync_parent_relationship(self, guid: str, attributes: Dict[str, Any]) if not rel_type: return - rel_props = ( - attributes.get("Parent Relationship Attributes", {}).get("value") - or attributes.get("Parent Relationship Properties", {}).get("value") - ) + # Typed (RelationshipProperties is polymorphic: a raw dict is a 400); keys the relationship + # doesn't read are reported, not sent. + rel_props, notes = parent_relationship_properties(attributes) + for note in notes: + self._add_warning(note) parent_at_end1 = attributes.get("Parent at End1", {}).get("value", True) end_1_guid, end_2_guid = (parent_guid, guid) if parent_at_end1 else (guid, parent_guid) @@ -531,8 +534,9 @@ async def _sync_parent_relationship(self, guid: str, attributes: Dict[str, Any]) "metadata_element_1_guid": end_1_guid, "metadata_element_2_guid": end_2_guid, } - if isinstance(rel_props, dict): - body["properties"] = rel_props + if rel_props: + # this endpoint reads a NewElementProperties property-value map + body["properties"] = new_element_properties(rel_props) await self.client.metadata_expert._async_create_related_elements(body) message = f"Linked via {rel_type}" if other_parents: @@ -1204,7 +1208,12 @@ async def _execute(self) -> Dict[str, Any]: f" | display_name={self.parsed_output.get('display_name', '')!r}" f" | GUID={self.parsed_output.get('guid', 'new')} ══\033[0m" ) - output = await self.apply_changes() + try: + output = await self.apply_changes() + finally: + # Every attribute a body builder couldn't send says so, success or not. + for note in not_applied_notes(self.parsed_output.get("attributes", {})): + self._add_warning(note) except PyegeriaException as e: logger.error(f"Command String: {self.command.raw_block}") if self.last_body: @@ -1222,6 +1231,7 @@ async def _execute(self) -> Dict[str, Any]: "display_name": self.parsed_output.get("display_name"), "qualified_name": self.parsed_output.get("qualified_name"), "found": self.parsed_output.get("exists", False), + "warnings": self.parsed_output.get("warnings", []), "errors": [str(e)] } except Exception as e: @@ -1240,6 +1250,7 @@ async def _execute(self) -> Dict[str, Any]: "display_name": self.parsed_output.get("display_name"), "qualified_name": self.parsed_output.get("qualified_name"), "found": self.parsed_output.get("exists", False), + "warnings": self.parsed_output.get("warnings", []), "errors": [str(e)] } diff --git a/md_processing/v2/schema_maker.py b/md_processing/v2/schema_maker.py index ab0c96a2..f92d5ea9 100644 --- a/md_processing/v2/schema_maker.py +++ b/md_processing/v2/schema_maker.py @@ -12,6 +12,8 @@ from md_processing.v2.processors import AsyncBaseCommandProcessor from md_processing.md_processing_utils.common_md_utils import update_element_dictionary +from md_processing.md_processing_utils.typed_properties import (parent_relationship_properties, + record_not_applied) def _v(attributes: dict, name: str, default=None): @@ -25,6 +27,8 @@ def _guid(attributes: dict, name: str): def _outer_body(attributes: dict, properties: dict) -> dict: """Build the NewElementRequestBody wrapper shared by Create Schema Type and Create Schema Attribute.""" + parent_props, notes = parent_relationship_properties(attributes) + record_not_applied(attributes, "Parent Relationship Attributes", notes) return { "class": "NewElementRequestBody", "anchorGUID": _guid(attributes, "Anchor ID"), @@ -33,7 +37,7 @@ def _outer_body(attributes: dict, properties: dict) -> dict: "initialClassifications": _v(attributes, "Initial Classifications"), "parentGUID": _guid(attributes, "Parent ID"), "parentRelationshipTypeName": _v(attributes, "Parent Relationship Type Name"), - "parentRelationshipProperties": _v(attributes, "Parent Relationship Attributes"), + "parentRelationshipProperties": parent_props, "parentAtEnd1": _v(attributes, "Parent at End1", True), "properties": properties, } diff --git a/scripts/gen_properties_class_fields.py b/scripts/gen_properties_class_fields.py new file mode 100644 index 00000000..e8c5574d --- /dev/null +++ b/scripts/gen_properties_class_fields.py @@ -0,0 +1,110 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +""" +Generate md_processing/md_processing_utils/properties_class_fields.py from Egeria's Java source: +for every open-metadata framework Properties class, its kind (relationship, classification, entity +or other, from the root of its superclass chain) and the JSON property names it reads, inherited +ones included. + +Egeria's RelationshipProperties, ClassificationProperties and EntityProperties are polymorphic +(`@JsonTypeInfo(property="class")`): a value sent without a "class" is a 400, and a property the +named class doesn't declare is silently ignored (`ignoreUnknown=true`). Dr.Egeria uses this table to +build the typed bodies (parent relationship properties, initial/replacement classifications, +template replacement properties) and to report every key it can't send. + +Reads a git ref (default origin/main) with `git cat-file`, so the Egeria checkout is never modified: + + python scripts/gen_properties_class_fields.py [--egeria ~/localGit/egeria-v6/egeria] [--ref origin/main] +""" +import argparse +import os +import re +import subprocess + +OUT = os.path.join(os.path.dirname(__file__), "..", "md_processing", "md_processing_utils", + "properties_class_fields.py") +FRAMEWORKS = "open-metadata-implementation/frameworks/" +ROOTS = {"RelationshipProperties": "relationship", "ClassificationProperties": "classification", + "EntityProperties": "entity"} +_FIELD = re.compile(r"^\s*(?:private|protected)\s+(?!static\b)(?!final\b)[\w<>,\s\[\]?]+?\s+(\w+)\s*(?:=[^;]*)?;", + re.M) + + +def git(egeria: str, *args, stdin: bytes | None = None) -> bytes: + return subprocess.run(["git", "-C", egeria, *args], input=stdin, capture_output=True, check=True).stdout + + +def read_sources(egeria: str, ref: str) -> dict[str, str]: + paths = [p for p in git(egeria, "ls-tree", "-r", "--name-only", ref, "--", FRAMEWORKS).decode().split("\n") + if p.endswith(".java") and "/src/main/java/" in p and (p.endswith("Properties.java") or "/properties/" in p)] + batch = git(egeria, "cat-file", "--batch", stdin="".join(f"{ref}:{p}\n" for p in paths).encode()) + sources, pos = {}, 0 + for path in paths: + header_end = batch.index(b"\n", pos) + size = int(batch[pos:header_end].split()[2]) + start = header_end + 1 + sources[path] = batch[start:start + size].decode("utf-8", errors="ignore") + pos = start + size + 1 + return sources + + +def scan(sources: dict[str, str]) -> tuple[dict, dict]: + parent, declares = {}, {} + for src in sources.values(): + m = re.search(r"public\s+(?:abstract\s+)?class\s+(\w+)(?:\s+extends\s+(\w+))?", src) + if not m: + continue + cls = m.group(1) + parent[cls] = m.group(2) + declares[cls] = [f for f in _FIELD.findall(src[m.end():]) if f != "serialVersionUID"] + return parent, declares + + +def describe(cls: str, parent: dict, declares: dict) -> tuple[str, tuple]: + fields, seen, kind, node = [], set(), "other", cls + while node and node not in seen: + seen.add(node) + if node in ROOTS: + kind = ROOTS[node] + fields = declares.get(node, []) + [f for f in fields if f not in declares.get(node, [])] + node = parent.get(node) + return kind, tuple(dict.fromkeys(fields)) + + +def main(): + ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter) + ap.add_argument("--egeria", default=os.path.expanduser("~/localGit/egeria-v6/egeria")) + ap.add_argument("--ref", default="origin/main") + args = ap.parse_args() + parent, declares = scan(read_sources(args.egeria, args.ref)) + # Superclasses such as GovernedDataClassificationBase are scanned too; only *Properties classes are listed. + table = {c: describe(c, parent, declares) for c in sorted(parent) if c.endswith("Properties")} + head = git(args.egeria, "log", "-1", "--format=%h %cs", args.ref).decode().strip() + lines = [ + "# SPDX-License-Identifier: Apache-2.0", + "# Copyright Contributors to the ODPi Egeria project.", + '"""', + "Open-metadata Properties classes: kind and the JSON property names each reads (inherited included).", + "", + f"GENERATED by scripts/gen_properties_class_fields.py from Egeria {args.ref} at {head} -- do not", + "edit by hand; re-run the script instead. Kind is the root of the class's superclass chain:", + "relationship (RelationshipProperties), classification (ClassificationProperties), entity", + "(EntityProperties) or other.", + '"""', + "", + "PROPERTIES_CLASS_FIELDS: dict[str, tuple[str, tuple[str, ...]]] = {", + ] + for cls, (kind, fields) in table.items(): + lines.append(f" {cls!r}: ({kind!r}, {fields!r}),") + lines.append("}") + with open(OUT, "w", encoding="utf-8") as f: + f.write("\n".join(lines) + "\n") + kinds = {} + for kind, _ in table.values(): + kinds[kind] = kinds.get(kind, 0) + 1 + print(f"wrote {len(table)} classes {kinds} from {args.ref} {head} to {OUT}") + + +if __name__ == "__main__": + main() diff --git a/tests/micro-tests/test_typed_properties.py b/tests/micro-tests/test_typed_properties.py new file mode 100644 index 00000000..8756d36a --- /dev/null +++ b/tests/micro-tests/test_typed_properties.py @@ -0,0 +1,169 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +"""Typed Egeria property bodies for Dr.Egeria dictionaries (BRIEF F-A items 1-3). + +Egeria's RelationshipProperties / ClassificationProperties / EntityProperties are polymorphic: a +dictionary sent without a "class" is a 400 (InvalidTypeIdException) that loses the whole create. On the +round-trip probe's run 1 (2026-11-12, scratch 757a5df0) `Parent Relationship Attributes` alone failed +108 of 110 creates. The fixtures below are the values the probe's generated blocks sent. +""" +import pytest + +from md_processing.md_processing_utils.common_md_utils import set_create_body +from md_processing.md_processing_utils.properties_class_fields import PROPERTIES_CLASS_FIELDS +from md_processing.md_processing_utils.typed_properties import ( + classification_map, entity_properties, long_value, new_element_properties, not_applied_notes, + parent_relationship_properties, + properties_class, record_not_applied) + +# What the probe's generated `## Create Governance Action Process` block sent (run-20261112T092519Z). +PROBE_PARENT_DICT = {"rtpKey": "RTP CreateGovernanceActionProcess ParentRelationshipAttributes"} + + +def _attrs(**values): + return {name.replace("_", " "): {"value": value} for name, value in values.items()} + + +# ── the generated table ── + +def test_table_knows_the_kinds_and_inherited_fields(): + kind, fields = PROPERTIES_CLASS_FIELDS["CollectionMembershipProperties"] + assert kind == "relationship" and "membershipRationale" in fields and "effectiveFrom" in fields + assert PROPERTIES_CLASS_FIELDS["TaxonomyProperties"][0] == "classification" + assert PROPERTIES_CLASS_FIELDS["GlossaryProperties"][0] == "entity" + # governance classifications inherit through a *Base class, which the generator must follow + assert PROPERTIES_CLASS_FIELDS["ConfidenceProperties"][0] == "classification" + + +def test_properties_class_lookup(): + assert properties_class("relationship", "CollectionMembership") == "CollectionMembershipProperties" + assert properties_class("classification", "Taxonomy") == "TaxonomyProperties" + assert properties_class("relationship", "Taxonomy") is None # wrong kind + assert properties_class("relationship", "NoSuchType") is None + + +# ── item 1: Parent Relationship Attributes ── + +def test_probe_dictionary_without_a_type_is_not_sent_and_says_why(): + attributes = {"Parent Relationship Attributes": {"value": PROBE_PARENT_DICT}} + body, notes = parent_relationship_properties(attributes) + assert body is None + assert notes == ["not applied: Parent Relationship Attributes: it needs a Parent Relationship Type Name " + "to say which relationship properties these are (rtpKey)"] + + +def test_unknown_key_for_the_relationship_is_reported_not_sent(): + attributes = {"Parent Relationship Attributes": {"value": PROBE_PARENT_DICT}, + "Parent Relationship Type Name": {"value": "CollectionMembership"}} + body, notes = parent_relationship_properties(attributes) + assert body is None # nothing the relationship reads: no properties at all, rather than a bare class + assert notes == ["not applied: Parent Relationship Attributes: rtpKey isn't a property of CollectionMembership"] + + +def test_known_keys_go_out_typed(): + attributes = {"Parent Relationship Attributes": {"value": {"membershipRationale": "why", "rtpKey": "x"}}, + "Parent Relationship Type Name": {"value": "CollectionMembership"}} + body, notes = parent_relationship_properties(attributes) + assert body == {"class": "CollectionMembershipProperties", "membershipRationale": "why"} + assert notes == ["not applied: Parent Relationship Attributes: rtpKey isn't a property of CollectionMembership"] + + +def test_relationship_type_with_no_properties_class(): + attributes = {"Parent Relationship Attributes": {"value": {"a": "b"}}, + "Parent Relationship Type Name": {"value": "NotAnEgeriaRelationship"}} + body, notes = parent_relationship_properties(attributes) + assert body is None and "has no relationship properties in Egeria" in notes[0] + + +def test_json_text_value_is_accepted(): + attributes = {"Parent Relationship Attributes": {"value": '{"membershipRationale": "why"}'}, + "Parent Relationship Type Name": {"value": "CollectionMembership"}} + assert parent_relationship_properties(attributes)[0] == {"class": "CollectionMembershipProperties", + "membershipRationale": "why"} + + +def test_set_create_body_never_sends_a_raw_parent_dictionary(): + attributes = {"Display Name": {"value": "x"}, + "Parent Relationship Attributes": {"value": PROBE_PARENT_DICT}} + body = set_create_body("Governance Action Process", attributes) + assert body["parentRelationshipProperties"] is None + assert not_applied_notes(attributes) == [ + "not applied: Parent Relationship Attributes: it needs a Parent Relationship Type Name to say which " + "relationship properties these are (rtpKey)"] + + +def test_set_create_body_sends_the_typed_class(): + attributes = {"Parent Relationship Attributes": {"value": {"membershipRationale": "why"}}, + "Parent Relationship Type Name": {"value": "CollectionMembership"}} + body = set_create_body("Collection", attributes) + assert body["parentRelationshipProperties"]["class"] == "CollectionMembershipProperties" + assert not_applied_notes(attributes) == [] + + +def test_record_not_applied_dedupes_and_collects_in_order(): + attributes = _attrs(A="1", B="2") + record_not_applied(attributes, "B", ["not applied: B: x"]) + record_not_applied(attributes, "A", ["not applied: A: y", "not applied: A: y"]) + record_not_applied(attributes, "B", ["not applied: B: x"]) + assert not_applied_notes(attributes) == ["not applied: A: y", "not applied: B: x"] + + +# ── item 2: Template Properties / Generic Initial Classifications ── + +def test_classification_map_types_each_classification(): + out, notes = classification_map({"Taxonomy": {"organizingPrinciple": "p", "rtpKey": "x"}, + "rtpKey": "RTP CreateElement GenericInitialClassifications"}, + "Generic Initial Classifications") + assert out == {"Taxonomy": {"class": "TaxonomyProperties", "organizingPrinciple": "p"}} + assert "not applied: Generic Initial Classifications: rtpKey isn't a property of Taxonomy" in notes + assert any("rtpKey needs a dictionary of its properties" in n for n in notes) + + +def test_classification_map_unknown_classification(): + out, notes = classification_map({"NotAClassification": {}}, "Generic Initial Classifications") + assert out is None + assert notes == ["not applied: Generic Initial Classifications: NotAClassification isn't an Egeria " + "classification"] + + +def test_classification_with_no_properties_is_sent_as_its_class(): + out, _ = classification_map({"Taxonomy": {}}, "Initial Classifications") + assert out == {"Taxonomy": {"class": "TaxonomyProperties"}} + + +def test_entity_properties_need_a_known_type(): + body, notes = entity_properties(None, {"description": "d"}, "Template Properties") + assert body is None and "element type isn't known" in notes[0] + body, notes = entity_properties("SchemaType", {"description": "d", "rtpKey": "x"}, "Template Properties") + assert body == {"class": "SchemaTypeProperties", "description": "d"} + assert notes == ["not applied: Template Properties: rtpKey isn't a property of SchemaType"] + + +# ── item 3: Java Long fields ── + +@pytest.mark.parametrize("raw, expected", [("7", 7), ("7.0", 7), (7, 7), (" 12 ", 12)]) +def test_long_value_coerces_integral_input(raw, expected): + assert long_value({"Absolute Uncertainty": {"value": raw}}, "Absolute Uncertainty") == (expected, []) + + +@pytest.mark.parametrize("raw, fragment", [("7.5", "isn't a whole number"), ("seven", "isn't a number")]) +def test_long_value_refuses_with_a_sentence(raw, fragment): + value, notes = long_value({"Absolute Uncertainty": {"value": raw}}, "Absolute Uncertainty") + assert value is None and fragment in notes[0] and notes[0].startswith("not applied: Absolute Uncertainty") + + +def test_long_value_absent(): + assert long_value({}, "Absolute Uncertainty") == (None, []) + + +def test_new_element_properties_for_the_related_elements_endpoint(): + typed = {"class": "CollectionMembershipProperties", "membershipRationale": "why", "confidence": 7} + assert new_element_properties(typed) == { + "class": "NewElementProperties", + "propertyValueMap": { + "membershipRationale": {"class": "PrimitiveTypePropertyValue", "typeName": "string", + "primitiveTypeCategory": "OM_PRIMITIVE_TYPE_STRING", "primitiveValue": "why"}, + "confidence": {"class": "PrimitiveTypePropertyValue", "typeName": "int", + "primitiveTypeCategory": "OM_PRIMITIVE_TYPE_INT", "primitiveValue": 7}}} + assert new_element_properties({"class": "X"}) is None + assert new_element_properties(None) is None From 672d37f608c20abdd82daa8cd6306b80f54a8599 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 12:13:25 +0000 Subject: [PATCH 02/27] Dr.Egeria: send template and classification dictionaries typed (F-A 2) TemplateRequestBody.replacementProperties is the polymorphic EntityProperties, and replacementClassifications / NewElementRequestBody.initialClassifications are Map (TemplateRequestBody.java:30-31, NewElementRequestBody.java:24, odpi/egeria origin/main 0b7ee0fb). Dr.Egeria sent Template Properties and Generic Initial Classifications raw (no "class"): a 400 on the round-trip probe for Create Element and the two Schema Maker From-Template commands. Through the F-A 1 helper (typed_properties): - Create Element: Template Properties -> "Properties" with only the keys that type reads; with no Element Type Name it is not sent ("the element type isn't known"). Generic Initial Classifications -> one "Properties" per classification, sent as replacementClassifications (the Java name; the model already serialised initialClassifications to it). - Create Schema Type/Attribute From Template: Template Properties typed by the command's OM_TYPE. - Create Schema Type/Attribute: Initial Classifications typed the same way. Every key, classification or type that can't be sent is a "not applied: : " warning. Signed-off-by: Dan Wolfson --- md_processing/v2/asset_maker.py | 14 ++- md_processing/v2/schema_maker.py | 13 ++- .../test_fa_template_typed_bodies.py | 106 ++++++++++++++++++ 3 files changed, 126 insertions(+), 7 deletions(-) create mode 100644 tests/micro-tests/test_fa_template_typed_bodies.py diff --git a/md_processing/v2/asset_maker.py b/md_processing/v2/asset_maker.py index 26612693..9ca8f6cb 100644 --- a/md_processing/v2/asset_maker.py +++ b/md_processing/v2/asset_maker.py @@ -17,7 +17,8 @@ from md_processing.v2.processors import AsyncBaseCommandProcessor from md_processing.md_processing_utils.common_md_utils import update_element_dictionary -from md_processing.md_processing_utils.typed_properties import parent_relationship_properties +from md_processing.md_processing_utils.typed_properties import (classification_map, entity_properties, + parent_relationship_properties) def _v(attributes: dict, name: str, default=None): @@ -56,15 +57,20 @@ async def apply_changes(self) -> str: logger.warning("'Initial Status' ignored: Egeria no longer accepts it. Set contentStatus " "(or the type's own status) in Template Properties instead.") parent_props, notes = parent_relationship_properties(attributes) - for note in notes: + # EntityProperties / ClassificationProperties are polymorphic too (TemplateRequestBody.java:30-31) + replacement, more = entity_properties(_v(attributes, "Element Type Name"), + _v(attributes, "Template Properties"), "Template Properties") + classifications, most = classification_map(_v(attributes, "Generic Initial Classifications"), + "Generic Initial Classifications") + for note in notes + more + most: self._add_warning(note) body = { "class": "TemplateRequestBody", "typeName": _v(attributes, "Element Type Name"), "templateGUID": _v(attributes, "Template GUID"), "placeholderPropertyValues": _v(attributes, "Placeholder Property Values") or {}, - "replacementProperties": _v(attributes, "Template Properties"), - "initialClassifications": _v(attributes, "Generic Initial Classifications"), + "replacementProperties": replacement, + "replacementClassifications": classifications, "anchorGUID": _guid(attributes, "Anchor ID"), "isOwnAnchor": _v(attributes, "Is Own Anchor", True), "anchorScopeGUIDs": _v(attributes, "Anchor Scope IDs"), diff --git a/md_processing/v2/schema_maker.py b/md_processing/v2/schema_maker.py index f92d5ea9..d302173f 100644 --- a/md_processing/v2/schema_maker.py +++ b/md_processing/v2/schema_maker.py @@ -12,7 +12,8 @@ from md_processing.v2.processors import AsyncBaseCommandProcessor from md_processing.md_processing_utils.common_md_utils import update_element_dictionary -from md_processing.md_processing_utils.typed_properties import (parent_relationship_properties, +from md_processing.md_processing_utils.typed_properties import (classification_map, entity_properties, + parent_relationship_properties, record_not_applied) @@ -29,12 +30,14 @@ def _outer_body(attributes: dict, properties: dict) -> dict: and Create Schema Attribute.""" parent_props, notes = parent_relationship_properties(attributes) record_not_applied(attributes, "Parent Relationship Attributes", notes) + classifications, notes = classification_map(_v(attributes, "Initial Classifications"), "Initial Classifications") + record_not_applied(attributes, "Initial Classifications", notes) return { "class": "NewElementRequestBody", "anchorGUID": _guid(attributes, "Anchor ID"), "isOwnAnchor": _v(attributes, "Is Own Anchor", True), "anchorScopeGUIDs": attributes.get("Anchor Scope IDs", {}).get("guid_list"), - "initialClassifications": _v(attributes, "Initial Classifications"), + "initialClassifications": classifications, "parentGUID": _guid(attributes, "Parent ID"), "parentRelationshipTypeName": _v(attributes, "Parent Relationship Type Name"), "parentRelationshipProperties": parent_props, @@ -155,11 +158,15 @@ async def apply_changes(self) -> str: om_type = self.get_command_spec().get("OM_TYPE") client = self.client.schema_maker + # EntityProperties is polymorphic (TemplateRequestBody.java:30): typed by the command's type + replacement, notes = entity_properties(om_type, _v(attributes, "Template Properties"), "Template Properties") + for note in notes: + self._add_warning(note) body = { "class": "TemplateRequestBody", "templateGUID": _guid(attributes, "Template GUID") or _v(attributes, "Template GUID"), "placeholderPropertyValues": _v(attributes, "Placeholder Property Values") or {}, - "replacementProperties": _v(attributes, "Template Properties"), + "replacementProperties": replacement, } if om_type == "SchemaAttribute": guid = await client._async_create_schema_attribute_from_template(body) diff --git a/tests/micro-tests/test_fa_template_typed_bodies.py b/tests/micro-tests/test_fa_template_typed_bodies.py new file mode 100644 index 00000000..81483166 --- /dev/null +++ b/tests/micro-tests/test_fa_template_typed_bodies.py @@ -0,0 +1,106 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +"""F-A item 2: template and classification dictionaries go out typed, never raw. + +TemplateRequestBody.replacementProperties is the polymorphic EntityProperties and +replacementClassifications / NewElementRequestBody.initialClassifications are +Map (TemplateRequestBody.java:30-31, NewElementRequestBody.java:24, +odpi/egeria origin/main 0b7ee0fb): sent raw (no "class") each was a 400 on the round-trip probe +(Create Element, Create Schema Type/Attribute From Template). The values are the probe's. +""" +from typing import Any, cast + +import pytest + +from md_processing.v2.asset_maker import AssetMakerProcessor +from md_processing.v2.extraction import DrECommand +from md_processing.v2.schema_maker import SchemaTemplateProcessor, _outer_body + +TEMPLATE_GUID = "3f9a0ab3-072c-4cb1-a14f-6e0492e00dd7" + + +async def _async_value(value): + return value + + +class _Recorder: + def __init__(self): + self.bodies = [] + + async def _async_create_elem_from_template(self, body): + self.bodies.append(body) + return "cccccccc-0000-0000-0000-000000000003" + + async def _async_create_schema_type_from_template(self, body): + self.bodies.append(body) + return "cccccccc-0000-0000-0000-000000000004" + + +class _FakeClient: + def __init__(self): + self.automated_curation = _Recorder() + self.schema_maker = _Recorder() + + +def _processor(cls, object_type, attributes, spec): + client = _FakeClient() + p = cls(client=cast(Any, client), + command=DrECommand(verb="Create", object_type=object_type, attributes={}, + raw_block=f"## Create {object_type}"), context={}) + p.get_command_spec = lambda: spec + p.parsed_output = {"qualified_name": None, "attributes": attributes} + p.render_result_markdown = lambda guid: _async_value(guid) + return p, client + + +@pytest.mark.asyncio +async def test_create_element_sends_typed_replacement_properties_and_classifications(): + attributes = { + "Template GUID": {"value": TEMPLATE_GUID}, + "Element Type Name": {"value": "SchemaType"}, + "Template Properties": {"value": {"description": "d", "rtpKey": "RTP CreateElement TemplateProperties"}}, + "Generic Initial Classifications": {"value": {"Taxonomy": {"organizingPrinciple": "p"}, + "rtpKey": "RTP CreateElement GenericInitialClassifications"}}, + } + p, client = _processor(AssetMakerProcessor, "Element", attributes, {}) + await p.apply_changes() + body = client.automated_curation.bodies[0] + assert body["replacementProperties"] == {"class": "SchemaTypeProperties", "description": "d"} + assert body["replacementClassifications"] == {"Taxonomy": {"class": "TaxonomyProperties", + "organizingPrinciple": "p"}} + assert "initialClassifications" not in body + warnings = p.parsed_output["warnings"] + assert "not applied: Template Properties: rtpKey isn't a property of SchemaType" in warnings + assert any(w.startswith("not applied: Generic Initial Classifications: rtpKey") for w in warnings) + + +@pytest.mark.asyncio +async def test_create_element_without_a_type_does_not_send_template_properties(): + attributes = {"Template GUID": {"value": TEMPLATE_GUID}, + "Template Properties": {"value": {"rtpKey": "RTP CreateElement TemplateProperties"}}} + p, client = _processor(AssetMakerProcessor, "Element", attributes, {}) + await p.apply_changes() + assert client.automated_curation.bodies[0]["replacementProperties"] is None + assert any("element type isn't known" in w for w in p.parsed_output["warnings"]) + + +@pytest.mark.asyncio +async def test_schema_type_from_template_types_by_the_command(): + attributes = {"Template GUID": {"value": TEMPLATE_GUID}, + "Template Properties": {"value": {"rtpKey": "RTP CreateSchemaTypeFromTemplate TemplateProperties", + "description": "d"}}} + p, client = _processor(SchemaTemplateProcessor, "Schema Type From Template", attributes, + {"OM_TYPE": "SchemaType"}) + await p.apply_changes() + assert client.schema_maker.bodies[0]["replacementProperties"] == {"class": "SchemaTypeProperties", + "description": "d"} + assert ("not applied: Template Properties: rtpKey isn't a property of SchemaType" + in p.parsed_output["warnings"]) + + +def test_schema_outer_body_types_initial_classifications(): + attributes = {"Initial Classifications": {"value": {"Taxonomy": {}, "NotAClassification": {}}}} + body = _outer_body(attributes, {"class": "SchemaTypeProperties"}) + assert body["initialClassifications"] == {"Taxonomy": {"class": "TaxonomyProperties"}} + assert attributes["Initial Classifications"]["not_applied"] == [ + "not applied: Initial Classifications: NotAClassification isn't an Egeria classification"] From 5aa5adbd2c30d9e96eb165cf68205da4ac6c8393 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 12:14:50 +0000 Subject: [PATCH 03/27] Dr.Egeria: send Uncertainty as Egeria's Long, refuse non-integers (F-A 3) DataValueSpecificationProperties declares absoluteUncertainty and relativeUncertainty as Long (DataValueSpecificationProperties.java:42-43, odpi/egeria origin/main 0b7ee0fb). The compact spec styles them Simple Float, and Create Data Value Specification sent the probe's "7.5" as a string: a 400 ("Cannot deserialize value of type java.lang.Long from String") that lost the whole create. Integral input ("7", "7.0", 7) now goes out as an int; anything else is not sent and says "not applied: : '7.5' isn't a whole number; Egeria stores it as an integer". The spec style correction (Simple Float -> Simple Int for these two) belongs to F-C. The other Simple Float attributes (Data Scope/Lens latitude, longitude, height) are Java Float and unaffected. Signed-off-by: Dan Wolfson --- md_processing/v2/data_designer.py | 13 +++- tests/micro-tests/test_fa_uncertainty_long.py | 70 +++++++++++++++++++ 2 files changed, 81 insertions(+), 2 deletions(-) create mode 100644 tests/micro-tests/test_fa_uncertainty_long.py diff --git a/md_processing/v2/data_designer.py b/md_processing/v2/data_designer.py index f7fd6fcb..c9fca627 100644 --- a/md_processing/v2/data_designer.py +++ b/md_processing/v2/data_designer.py @@ -7,6 +7,7 @@ from pyegeria import EgeriaTech, PyegeriaException from md_processing.v2.processors import AsyncBaseCommandProcessor from md_processing.v2.utils import parse_key_value +from md_processing.md_processing_utils.typed_properties import long_value, record_not_applied from md_processing.md_processing_utils.md_processing_constants import get_command_spec from md_processing.md_processing_utils.common_md_utils import ( set_element_prop_body, set_create_body, set_update_body, @@ -59,6 +60,14 @@ async def apply_changes(self) -> str: spec = self.get_command_spec() om_type = spec.get("OM_TYPE") if spec else None + # Egeria stores both uncertainties as a Java Long (DataValueSpecificationProperties.java:42-43, + # odpi/egeria origin/main 0b7ee0fb); the spec's Simple Float style sent "7.5" as a string, a 400 + # that lost the create. Integral input goes out as an int; anything else is refused, not sent. + uncertainty = {} + for attr, key in (("Absolute Uncertainty", "absoluteUncertainty"), ("Relative Uncertainty", "relativeUncertainty")): + uncertainty[key], notes = long_value(attributes, attr) + record_not_applied(attributes, attr, notes) + # Build properties dict props = { "class": f"{om_type or 'DataValueSpecification'}Properties", @@ -72,8 +81,8 @@ async def apply_changes(self) -> str: "specificationDetails": attributes.get('Specification Details', {}).get('value'), "dataType": attributes.get('Data Type', {}).get('value'), "units": attributes.get('Units', {}).get('value'), - "absoluteUncertainty": attributes.get('Absolute Uncertainty', {}).get('value'), - "relativeUncertainty": attributes.get('Relative Uncertainty', {}).get('value'), + "absoluteUncertainty": uncertainty["absoluteUncertainty"], + "relativeUncertainty": uncertainty["relativeUncertainty"], "allowsDuplicateValues": attributes.get('Allow Duplicates', {}).get('value'), "isNullable": attributes.get('Is Nullable', {}).get('value'), "defaultValue": attributes.get('Default Value', {}).get('value'), diff --git a/tests/micro-tests/test_fa_uncertainty_long.py b/tests/micro-tests/test_fa_uncertainty_long.py new file mode 100644 index 00000000..9ba296b4 --- /dev/null +++ b/tests/micro-tests/test_fa_uncertainty_long.py @@ -0,0 +1,70 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +"""F-A item 3: Absolute/Relative Uncertainty are Java Longs in Egeria. + +DataValueSpecificationProperties.java:42-43 (odpi/egeria origin/main 0b7ee0fb) declares both as Long. +The compact spec's Simple Float style sent the probe's "7.5" as a string: a 400 ("Cannot deserialize value +of type java.lang.Long from String") that lost the whole Create Data Value Specification. The spec style +correction (Float -> Int) goes to F-C. +""" +from typing import Any, cast + +import pytest + +from md_processing.md_processing_utils.typed_properties import not_applied_notes +from md_processing.v2.data_designer import DataValueSpecificationProcessor +from md_processing.v2.extraction import DrECommand + + +class _DataDesigner: + def __init__(self): + self.bodies = [] + + async def _async_create_data_value_specification(self, body): + self.bodies.append(body) + return "dddddddd-0000-0000-0000-000000000001" + + +class _Client: + def __init__(self): + self.data_designer = _DataDesigner() + + +async def _async_value(value): + return value + + +async def _create(attributes): + client = _Client() + p = DataValueSpecificationProcessor(client=cast(Any, client), + command=DrECommand(verb="Create", object_type="Data Value Specification", + attributes={}, raw_block="## Create Data Value Specification"), + context={}) + p.get_command_spec = lambda: {"OM_TYPE": "DataValueSpecification"} + p.parsed_output = {"qualified_name": "RTP::DVS", "attributes": {"Display Name": {"value": "RTP DVS"}, + **attributes}} + p.as_is_element = None + p.render_result_markdown = lambda guid: _async_value(guid) + + async def _no_parent(*a, **k): + return None + p._sync_value_spec_parent = _no_parent + await p.apply_changes() + return client.data_designer.bodies[0]["properties"], p + + +@pytest.mark.asyncio +async def test_integral_uncertainty_is_sent_as_a_number(): + props, _ = await _create({"Absolute Uncertainty": {"value": "7"}, "Relative Uncertainty": {"value": "7.0"}}) + assert props["absoluteUncertainty"] == 7 and isinstance(props["absoluteUncertainty"], int) + assert props["relativeUncertainty"] == 7 and isinstance(props["relativeUncertainty"], int) + + +@pytest.mark.asyncio +async def test_the_probes_7_5_is_refused_with_a_sentence_not_sent(): + props, p = await _create({"Absolute Uncertainty": {"value": "7.5"}, "Relative Uncertainty": {"value": "7.5"}}) + assert props.get("absoluteUncertainty") is None and props.get("relativeUncertainty") is None + notes = not_applied_notes(p.parsed_output["attributes"]) + assert notes == [ + "not applied: Absolute Uncertainty: '7.5' isn't a whole number; Egeria stores it as an integer", + "not applied: Relative Uncertainty: '7.5' isn't a whole number; Egeria stores it as an integer"] From 4dced06f77eb6012b847113c5034803cf4c080da Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 12:15:44 +0000 Subject: [PATCH 04/27] Dr.Egeria: Create ToDo/Meeting/Review say "no personal profile" (F-A 4) On the round-trip probe Create ToDo, Create Meeting and Create Review failed with "Execution failed: string indices must be integers, not 'str'". Cause: MyProfile._async_create_my_todo / _create_meeting / _create_review looked the caller's profile up with the sync get_my_profile(), which returns the string "No elements found" for a user with no personal profile (the scratch platform's demo user has none), and indexed it as a dict. A new _async_require_my_profile_guid() looks the profile up once (async) and, when there is none, raises "User has no personal profile in Egeria, so it can't create a to-do/meeting/review; create the user's profile first" before any request is sent. Dr.Egeria reports that sentence as the command's failure. Re-classified: these three need a profile on the platform (phase 2 for the probe), not a create bug, once the crash is gone. Regression test per method. Signed-off-by: Dan Wolfson --- pyegeria/omvs/my_profile.py | 26 +++++--- .../test_fa_my_profile_required.py | 59 +++++++++++++++++++ 2 files changed, 76 insertions(+), 9 deletions(-) create mode 100644 tests/micro-tests/test_fa_my_profile_required.py diff --git a/pyegeria/omvs/my_profile.py b/pyegeria/omvs/my_profile.py index 3163c725..14449cda 100644 --- a/pyegeria/omvs/my_profile.py +++ b/pyegeria/omvs/my_profile.py @@ -1301,6 +1301,20 @@ def blog_my_activity(self, text: str = None, display_name: str = None, # Lifecycle # + async def _async_require_my_profile_guid(self, what: str) -> str: + """The caller's personal profile GUID, or a ValueError that says so in a sentence. + + get_my_profile() returns the string "No elements found" for a user with no personal profile; + indexing it as a dict was the "string indices must be integers, not 'str'" failure of Dr.Egeria's + Create ToDo / Meeting / Review (round-trip probe 2026-11-12). + """ + if not self.my_profile_guid: + await self._async_get_my_profile() + if not self.my_profile_guid: + raise ValueError(f"User {self.user_id} has no personal profile in Egeria, so it can't {what}; " + "create the user's profile first") + return self.my_profile_guid + async def _async_create_my_todo(self, todo_name: str, activity_status: str = "REQUESTED", description:Optional[str]=None, situation: Optional[str]=None,priority:Optional[int]=0, qualified_name: Optional[str] = None) -> str: @@ -1355,9 +1369,7 @@ async def _async_create_my_todo(self, todo_name: str, activity_status: str = "RE """ if qualified_name is None: qualified_name = self.__create_qualified_name__("Todo", todo_name)+f"-{int(time.time())}" - if not self.my_profile_guid: - me = self.get_my_profile() - self.my_profile_guid = me['elementHeader']["guid"] + await self._async_require_my_profile_guid("create a to-do") body = { "class": "ActionRequestBody", @@ -1471,9 +1483,7 @@ async def _async_create_meeting(self, meeting_name: str, activity_status: str = """ if qualified_name is None: qualified_name = self.__create_qualified_name__("Meeting", meeting_name)+f"-{int(time.time())}" - if not self.my_profile_guid: - me = self.get_my_profile() - self.my_profile_guid = me['elementHeader']["guid"] + await self._async_require_my_profile_guid("create a meeting") body = { "class": "ActionRequestBody", @@ -1562,9 +1572,7 @@ async def _async_create_review(self, review_name: str, activity_status: str = "R """ if qualified_name is None: qualified_name = self.__create_qualified_name__("Review", review_name)+f"-{int(time.time())}" - if not self.my_profile_guid: - me = self.get_my_profile() - self.my_profile_guid = me['elementHeader']["guid"] + await self._async_require_my_profile_guid("create a review") body = { "class": "ActionRequestBody", diff --git a/tests/micro-tests/test_fa_my_profile_required.py b/tests/micro-tests/test_fa_my_profile_required.py new file mode 100644 index 00000000..5443338b --- /dev/null +++ b/tests/micro-tests/test_fa_my_profile_required.py @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +"""F-A item 4: Create ToDo / Meeting / Review for a user with no personal profile. + +get_my_profile() returns the string "No elements found" when the user has no personal profile, and +_async_create_my_todo/_meeting/_review indexed it as a dict: Dr.Egeria's Create ToDo, Create Meeting and +Create Review failed with "string indices must be integers, not 'str'" on the round-trip probe (scratch +platform, demo user with no profile). They now stop with a sentence that names the user and what's missing, +before any request is sent. +""" +import pytest + +from pyegeria.core._globals import NO_ELEMENTS_FOUND +from pyegeria.omvs.my_profile import MyProfile + + +def _client(profile_response, sent): + client = object.__new__(MyProfile) # no constructor: no connection check, no server + client.user_id = "garygeeke" + client.my_profile_guid = None + + async def get_my_profile(*args, **kwargs): + if isinstance(profile_response, dict): + client.my_profile_guid = profile_response["elementHeader"]["guid"] + return profile_response + + async def make_request(*args, **kwargs): + sent.append(args) + raise AssertionError("no create request may be sent without a profile") + + client._async_get_my_profile = get_my_profile + client._async_make_request = make_request + client.__create_qualified_name__ = lambda kind, name: f"{kind}::{name}" + client._MyProfile__create_qualified_name__ = client.__create_qualified_name__ + return client + + +@pytest.mark.asyncio +@pytest.mark.parametrize("method, what", [ + ("_async_create_my_todo", "create a to-do"), + ("_async_create_meeting", "create a meeting"), + ("_async_create_review", "create a review"), +]) +async def test_no_profile_is_a_sentence_not_a_type_error(method, what): + sent = [] + client = _client(NO_ELEMENTS_FOUND, sent) + with pytest.raises(ValueError) as exc: + await getattr(client, method)("RTP name", qualified_name="RTP::QN") + assert str(exc.value) == (f"User garygeeke has no personal profile in Egeria, so it can't {what}; " + "create the user's profile first") + assert sent == [] + + +@pytest.mark.asyncio +async def test_profile_guid_is_looked_up_once_and_reused(): + client = _client({"elementHeader": {"guid": "Person-1"}}, []) + assert await client._async_require_my_profile_guid("create a to-do") == "Person-1" + client._async_get_my_profile = None # a second lookup would fail + assert await client._async_require_my_profile_guid("create a review") == "Person-1" From 4ca1e6d1491643257964e488430d0c770aa34a53 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 12:17:25 +0000 Subject: [PATCH 05/27] Dr.Egeria: wire Create UC Server/Schema/Table Element; never "unrecognized" (F-A 5) The compact spec, templates and help name these commands "UC Server Element", "UC Schema Element" and "UC Table Element", but AssetMakerProcessor matched only "Unity Catalog ... Element", so all three failed on the round-trip probe with "AssetMakerProcessor: unrecognized command". Both spellings now reach _async_create_uc_server/schema/table_element_from_template (every attribute the branches read exists in the spec). - A command with no mapping says "Create is not supported yet by Dr.Egeria's Asset Maker (OM_TYPE ... has no create-from-template mapping)". - _async_get_template_guid_for_technology_type returned None when the technology type itself was missing, so the create went out with "templateGUID": null and failed with no useful message. It now raises "No technology type '' on this Egeria server, so there is no catalog template to create from." (a missing template on an existing type already named itself). Signed-off-by: Dan Wolfson --- md_processing/v2/asset_maker.py | 10 +- pyegeria/omvs/automated_curation.py | 14 ++- .../test_fa_asset_maker_uc_commands.py | 99 +++++++++++++++++++ 3 files changed, 115 insertions(+), 8 deletions(-) create mode 100644 tests/micro-tests/test_fa_asset_maker_uc_commands.py diff --git a/md_processing/v2/asset_maker.py b/md_processing/v2/asset_maker.py index 9ca8f6cb..43b9ff5f 100644 --- a/md_processing/v2/asset_maker.py +++ b/md_processing/v2/asset_maker.py @@ -156,7 +156,7 @@ async def apply_changes(self) -> str: ) display_name = _v(attributes, "Folder Name") - elif command_key == "Unity Catalog Server Element": + elif command_key in ("UC Server Element", "Unity Catalog Server Element"): # the spec key is "UC ..." guid = await client._async_create_uc_server_element_from_template( server_name=_v(attributes, "UC Server Name"), host_url=_v(attributes, "Host URL"), @@ -175,7 +175,7 @@ async def apply_changes(self) -> str: ) display_name = _v(attributes, "UC Catalog Name") - elif command_key == "Unity Catalog Schema Element": + elif command_key in ("UC Schema Element", "Unity Catalog Schema Element"): # the spec key is "UC ..." guid = await client._async_create_uc_schema_element_from_template( uc_catalog=_v(attributes, "UC Catalog Name"), uc_schema=_v(attributes, "UC Schema Name"), @@ -185,7 +185,7 @@ async def apply_changes(self) -> str: ) display_name = _v(attributes, "UC Schema Name") - elif command_key == "Unity Catalog Table Element": + elif command_key in ("UC Table Element", "Unity Catalog Table Element"): # the spec key is "UC ..." guid = await client._async_create_uc_table_element_from_template( uc_catalog=_v(attributes, "UC Catalog Name"), uc_schema=_v(attributes, "UC Schema Name"), @@ -224,8 +224,8 @@ async def apply_changes(self) -> str: display_name = _v(attributes, "UC Volume Name") else: - raise ValueError(f"AssetMakerProcessor: unrecognized command " - f"(object_type={command_key!r}, OM_TYPE={om_type!r})") + raise ValueError(f"Create {command_key} is not supported yet by Dr.Egeria's Asset Maker " + f"(OM_TYPE {om_type!r} has no create-from-template mapping)") guid = self.extract_guid_or_raise(guid, f"Create {command_key}") self.parsed_output["guid"] = guid diff --git a/pyegeria/omvs/automated_curation.py b/pyegeria/omvs/automated_curation.py index 3d373b69..9344cf5b 100644 --- a/pyegeria/omvs/automated_curation.py +++ b/pyegeria/omvs/automated_curation.py @@ -4823,11 +4823,18 @@ async def _async_get_template_guid_for_technology_type(self, type_name: str, **k Returns ------- str - The GUID of the template, or None if not found. + The GUID of the template. Raises PyegeriaException, naming the technology type, when the type + or its catalog template is missing on the server. """ details = await self._async_get_tech_type_detail(type_name, **kwargs) if not isinstance(details, dict): - return None + # Returning None here sent "templateGUID": null and failed later with no useful message + # (round-trip probe 2026-11-12): name what's missing instead. + raise PyegeriaException( + response=f"No technology type '{type_name}' on this Egeria server, so there is no catalog " + f"template to create from.", + context={"type_name": type_name, "reason": "technology type not found"}, + ) catalog_templates = details.get("catalogTemplates") or [] if not catalog_templates: # Fallback for YAML File Secrets Collection to Keystore File template @@ -4853,7 +4860,8 @@ def get_template_guid_for_technology_type(self, type_name: str, **kwargs) -> str Returns ------- str - The GUID of the template, or None if not found. + The GUID of the template. Raises PyegeriaException, naming the technology type, when the type + or its catalog template is missing on the server. """ response = run_sync( self._async_get_template_guid_for_technology_type(type_name, **kwargs) diff --git a/tests/micro-tests/test_fa_asset_maker_uc_commands.py b/tests/micro-tests/test_fa_asset_maker_uc_commands.py new file mode 100644 index 00000000..d8755c0b --- /dev/null +++ b/tests/micro-tests/test_fa_asset_maker_uc_commands.py @@ -0,0 +1,99 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +"""F-A item 5: the UC Server / UC Schema / UC Table Element commands reach their client calls. + +The compact spec (and templates, help) name them "UC Server Element" etc.; AssetMakerProcessor matched +only "Unity Catalog Server Element", so the round-trip probe got +"AssetMakerProcessor: unrecognized command" for all three. A command with no mapping now says +"not supported yet", and a missing technology type names itself instead of sending a null template GUID. +""" +from typing import Any, cast + +import pytest + +from md_processing.v2.asset_maker import AssetMakerProcessor +from md_processing.v2.extraction import DrECommand +from pyegeria import PyegeriaException +from pyegeria.core._globals import NO_ELEMENTS_FOUND +from pyegeria.omvs.automated_curation import AutomatedCuration + + +class _Curation: + def __init__(self): + self.calls = [] + + def __getattr__(self, name): + async def record(**kwargs): + self.calls.append((name, kwargs)) + return "eeeeeeee-0000-0000-0000-000000000001" + return record + + +class _Client: + def __init__(self): + self.automated_curation = _Curation() + + +async def _async_value(value): + return value + + +def _processor(object_type, om_type, attributes): + client = _Client() + p = AssetMakerProcessor(client=cast(Any, client), + command=DrECommand(verb="Create", object_type=object_type, attributes={}, + raw_block=f"## Create {object_type}"), context={}) + p.get_command_spec = lambda: {"OM_TYPE": om_type} + p.parsed_output = {"qualified_name": None, "attributes": attributes} + p.render_result_markdown = lambda guid: _async_value(guid) + return p, client + + +@pytest.mark.asyncio +@pytest.mark.parametrize("object_type, om_type, method", [ + ("UC Server Element", "SoftwareServer", "_async_create_uc_server_element_from_template"), + ("UC Schema Element", "DeployedDatabaseSchema", "_async_create_uc_schema_element_from_template"), + ("UC Table Element", "RelationalTable", "_async_create_uc_table_element_from_template"), + ("Unity Catalog Server Element", "SoftwareServer", "_async_create_uc_server_element_from_template"), +]) +async def test_uc_commands_reach_their_client_call(object_type, om_type, method): + p, client = _processor(object_type, om_type, {"UC Server Name": {"value": "RTP UC"}, + "UC Catalog Name": {"value": "c"}, + "UC Schema Name": {"value": "s"}, + "UC Table Name": {"value": "t"}}) + await p.apply_changes() + assert client.automated_curation.calls[0][0] == method + + +@pytest.mark.asyncio +async def test_unmapped_command_says_not_supported_yet(): + p, _ = _processor("Mystery Element", "MysteryType", {}) + with pytest.raises(ValueError) as exc: + await p.apply_changes() + assert "not supported yet" in str(exc.value) and "unrecognized" not in str(exc.value) + assert "Create Mystery Element" in str(exc.value) + + +@pytest.mark.asyncio +async def test_missing_technology_type_names_itself(): + client = object.__new__(AutomatedCuration) + + async def no_type(*a, **k): + return NO_ELEMENTS_FOUND + client._async_get_tech_type_detail = no_type + with pytest.raises(PyegeriaException) as exc: + await client._async_get_template_guid_for_technology_type("Unity Catalog Server") + assert exc.value.message == ("No technology type 'Unity Catalog Server' on this Egeria server, so there is " + "no catalog template to create from.") + + +@pytest.mark.asyncio +async def test_technology_type_without_a_template_names_itself(): + client = object.__new__(AutomatedCuration) + + async def no_templates(*a, **k): + return {"catalogTemplates": []} + client._async_get_tech_type_detail = no_templates + with pytest.raises(PyegeriaException) as exc: + await client._async_get_template_guid_for_technology_type("PostgreSQL Server") + assert "No catalog template is registered for technology type 'PostgreSQL Server'" in exc.value.message From 93b2edfdc897e2d83ee3e9808dc4b48225d8f4b1 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 12:23:12 +0000 Subject: [PATCH 06/27] Dr.Egeria: a failed command always says why, on one line (F-A 6) str(PyegeriaException) is a multi-line report that starts with a newline, so every summary row built from f"Execution failed: {str(e)}" read just "Execution failed:" -- 16 creates on the round-trip probe (Schema Maker, Blog/ Journal/Activity Entry, the Asset Maker technology-type creates) failed with no visible reason. describe_exception() (md_processing/v2/processors.py) gives the exception type and message on one line, preferring Egeria's own exceptionErrorMessage from the response and appending its exceptionErrorMessageId when the message doesn't already start with it. Used for the message and errors of both failure paths in AsyncBaseCommandProcessor._execute, the dispatcher's two and the View processor's. A plain exception with no text falls back to its repr, never "". Signed-off-by: Dan Wolfson --- md_processing/v2/dispatcher.py | 6 +- md_processing/v2/processors.py | 43 ++++++++++-- md_processing/v2/view.py | 4 +- .../micro-tests/test_fa_describe_exception.py | 68 +++++++++++++++++++ 4 files changed, 112 insertions(+), 9 deletions(-) create mode 100644 tests/micro-tests/test_fa_describe_exception.py diff --git a/md_processing/v2/dispatcher.py b/md_processing/v2/dispatcher.py index 58b7374e..b44b45dd 100644 --- a/md_processing/v2/dispatcher.py +++ b/md_processing/v2/dispatcher.py @@ -8,7 +8,7 @@ from pyegeria import EgeriaTech, PyegeriaException, print_basic_exception from md_processing.v2.extraction import DrECommand -from md_processing.v2.processors import AsyncBaseCommandProcessor +from md_processing.v2.processors import AsyncBaseCommandProcessor, describe_exception from md_processing.md_processing_utils.md_processing_constants import COLLECTION_SUBTYPES, PROJECT_SUBTYPES, find_alternate_names from md_processing.v2.collection_manager_processor import CollectionManagerProcessor from md_processing.v2.project import ProjectProcessor @@ -157,7 +157,7 @@ async def dispatch(self, command: DrECommand, context: Optional[Dict[str, Any]] return { "output": command.raw_block, "status": "failure", - "message": f"Execution failed: {str(e)}", + "message": f"Execution failed: {describe_exception(e)}", "verb": command.verb, "object_type": command.object_type, "error": str(e) @@ -167,7 +167,7 @@ async def dispatch(self, command: DrECommand, context: Optional[Dict[str, Any]] return { "output": command.raw_block, "status": "failure", - "message": f"Execution failed: {str(e)}", + "message": f"Execution failed: {describe_exception(e)}", "verb": command.verb, "object_type": command.object_type, "error": str(e) diff --git a/md_processing/v2/processors.py b/md_processing/v2/processors.py index 5bc2d0ba..5b84cd68 100644 --- a/md_processing/v2/processors.py +++ b/md_processing/v2/processors.py @@ -41,6 +41,41 @@ def _is_egeria_multiple_entities_error(exc: BaseException) -> bool: return "404-002" in text or "entities where found" in text +def describe_exception(e: BaseException) -> str: + """One line for a failed command: the exception type and its message, plus Egeria's message id when + there is one. + + `str(PyegeriaException)` is a multi-line report that starts with a newline, so a summary row built + from it read just "Execution failed:" (round-trip probe 2026-11-12: Schema Maker, Blog/Journal/ + Activity Entry and the Asset Maker technology-type creates). Egeria's own message, when the response + carries one, is preferred over pyegeria's generic text. + """ + kind = type(e).__name__ + text, msg_id = "", "" + if isinstance(e, PyegeriaException): + body = {} + response = getattr(e, "response", None) + if response is not None: + try: + body = response.json() or {} + except Exception: # noqa: BLE001 - not JSON + body = {} + if not isinstance(body, dict): + body = {} + info = getattr(e, "additional_info", None) or {} + text = (body.get("exceptionErrorMessage") or info.get("exceptionErrorMessage") + or getattr(e, "response_egeria_msg", "") or getattr(e, "message", "")) + msg_id = (body.get("exceptionErrorMessageId") or info.get("exceptionErrorMessageId") + or getattr(e, "egeria_message_id", "") or getattr(e, "response_egeria_msg_id", "")) + if not text: + text = str(e).strip() or repr(e) + text = " ".join(str(text).split()) + out = f"{kind}: {text}" + if msg_id and msg_id not in text: + out += f" [{msg_id}]" + return out + + class _ParentLinksIncomplete(Exception): """The parent-end links could not all be read within the page bound (ISSUE-181).""" @@ -1224,7 +1259,7 @@ async def _execute(self) -> Dict[str, Any]: "output": self.command.raw_block, "analysis": analysis, "status": "failure", - "message": f"Execution failed: {str(e)}", + "message": f"Execution failed: {describe_exception(e)}", "verb": self.command.verb, "object_type": self.canonical_object_type, "markdown_object_type": self.markdown_object_type, @@ -1232,7 +1267,7 @@ async def _execute(self) -> Dict[str, Any]: "qualified_name": self.parsed_output.get("qualified_name"), "found": self.parsed_output.get("exists", False), "warnings": self.parsed_output.get("warnings", []), - "errors": [str(e)] + "errors": [describe_exception(e)] } except Exception as e: logger.error(f"Command String: {self.command.raw_block}") @@ -1243,7 +1278,7 @@ async def _execute(self) -> Dict[str, Any]: "output": self.command.raw_block, "analysis": analysis, "status": "failure", - "message": f"Execution failed: {str(e)}", + "message": f"Execution failed: {describe_exception(e)}", "verb": self.command.verb, "object_type": self.canonical_object_type, "markdown_object_type": self.markdown_object_type, @@ -1251,7 +1286,7 @@ async def _execute(self) -> Dict[str, Any]: "qualified_name": self.parsed_output.get("qualified_name"), "found": self.parsed_output.get("exists", False), "warnings": self.parsed_output.get("warnings", []), - "errors": [str(e)] + "errors": [describe_exception(e)] } # 10. Post-execution: Update the cache on success diff --git a/md_processing/v2/view.py b/md_processing/v2/view.py index 9ac58b02..9c8e3036 100644 --- a/md_processing/v2/view.py +++ b/md_processing/v2/view.py @@ -9,7 +9,7 @@ from pyegeria import EgeriaTech, NO_ELEMENTS_FOUND from pyegeria.view.format_set_executor import _async_run_report from pyegeria.view.base_report_formats import select_report_spec -from md_processing.v2.processors import AsyncBaseCommandProcessor +from md_processing.v2.processors import AsyncBaseCommandProcessor, describe_exception from md_processing.v2.extraction import DrECommand class ViewProcessor(AsyncBaseCommandProcessor): @@ -51,7 +51,7 @@ async def execute(self) -> Dict[str, Any]: "found": result.get("found", False) } except Exception as e: - result["message"] = f"Execution failed: {str(e)}" + result["message"] = f"Execution failed: {describe_exception(e)}" result["errors"] = [str(e)] return result diff --git a/tests/micro-tests/test_fa_describe_exception.py b/tests/micro-tests/test_fa_describe_exception.py new file mode 100644 index 00000000..6803f01c --- /dev/null +++ b/tests/micro-tests/test_fa_describe_exception.py @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +"""F-A item 6: a failed command always says what failed. + +str(PyegeriaException) is a multi-line report that starts with a newline, so the Dr.Egeria summary row +built from f"Execution failed: {str(e)}" read just "Execution failed:" (round-trip probe 2026-11-12: +Schema Maker, Blog/Journal/Activity Entry, nine Asset Maker technology-type creates). Every failure path +now prints the exception type and message on one line, with Egeria's message id when there is one. +""" +import json + +from pyegeria import PyegeriaException +from pyegeria.core._exceptions import PyegeriaClientException + +from md_processing.v2.processors import describe_exception + + +class _Response: + def __init__(self, payload, status=400): + self._payload = payload + self.status_code = status + self.url = "https://localhost:19443/servers/view-server/api/open-metadata/schema-maker/schema-types" + self.reason_phrase = json.dumps(payload) + self.text = json.dumps(payload) + + def json(self): + return self._payload + + +def test_pyegeria_exception_with_a_text_response_is_one_line(): + e = PyegeriaException(response="No catalog template is registered for technology type 'Kafka Topic' on " + "this Egeria server.", context={"type_name": "Kafka Topic"}) + assert str(e).startswith("\n") # the reason the summary row used to be empty + assert describe_exception(e) == ("PyegeriaException: No catalog template is registered for technology " + "type 'Kafka Topic' on this Egeria server.") + + +def test_egeria_message_and_id_are_used_when_the_response_has_them(): + payload = {"class": "GUIDResponse", "relatedHTTPCode": 400, + "exceptionErrorMessageId": "OMAG-REPOSITORY-HANDLER-400-001", + "exceptionErrorMessage": "OMAG-REPOSITORY-HANDLER-400-001 An unsupported property named newProperties " + "was passed to the repository services"} + e = PyegeriaClientException(_Response(payload), context={"caller method": "x"}) + text = describe_exception(e) + assert text.startswith("PyegeriaClientException: OMAG-REPOSITORY-HANDLER-400-001 An unsupported property") + assert "\n" not in text + assert text.count("OMAG-REPOSITORY-HANDLER-400-001") == 1 # not repeated when the message already has it + + +def test_message_id_is_appended_when_the_message_lacks_it(): + payload = {"exceptionErrorMessageId": "OMVS-MY-PROFILE-400-002", + "exceptionErrorMessage": "The personal profile for user garygeeke does not exist"} + e = PyegeriaClientException(_Response(payload), context={}) + assert describe_exception(e).endswith("does not exist [OMVS-MY-PROFILE-400-002]") + + +def test_jackson_400_without_an_id(): + payload = {"exceptionClassName": "com.fasterxml.jackson.databind.exc.InvalidTypeIdException", + "exceptionErrorMessage": "Could not resolve subtype of : missing type id property 'class'\n at x"} + text = describe_exception(PyegeriaClientException(_Response(payload), context={})) + assert text == ("PyegeriaClientException: Could not resolve subtype of : missing type id property 'class' " + "at x") + + +def test_plain_exceptions_never_come_out_empty(): + assert describe_exception(ValueError("boom")) == "ValueError: boom" + assert describe_exception(KeyError()) == "KeyError: KeyError()" + assert describe_exception(RuntimeError(" two\n lines ")) == "RuntimeError: two lines" From ab388f3fae30a80a4c52b0400e3d0f35f1a350c2 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 12:27:44 +0000 Subject: [PATCH 07/27] Dr.Egeria: every spec'd Create runs or says why; no nameless success (F-A 7) The five creates the round-trip probe found "successful" with nothing to read back had never run: each summary row read "No processor registered for ''". - Create Subject Area: SubjectAreaProperties extends CollectionProperties (odpi/egeria origin/main 0b7ee0fb), so it joins COLLECTION_SUBTYPES and goes through CollectionManagerProcessor like the other collection kinds. - Create CSV File: the processor existed, registered as "Create CSV Element"; "Create CSV File" (the Digital Product Manager spec's name) now reaches it. That spec has no File Name / File Type, so the file is named by its Display Name and typed "CSV Data File". - Create Rating / Create Like: attachments in Egeria (AttachedRating, AttachedLike); Create Data Sharing Request: a ToDo subtype (DataSharingRequestProperties extends ToDoProperties), not the collection the spec describes, with no pyegeria create call. md_processing/v2/not_supported fails each with " is not supported yet: . Nothing was sent to Egeria." The spec corrections belong to F-C. - A Create that succeeds without returning a GUID now says "no element GUID was returned, so the created element can't be named" instead of a bare "Executed". Signed-off-by: Dan Wolfson --- md_processing/dr_egeria.py | 6 ++ .../md_processing_constants.py | 3 + .../v2/collection_manager_processor.py | 12 +-- md_processing/v2/not_supported.py | 35 +++++++++ md_processing/v2/processors.py | 3 + .../test_fa_unregistered_creates.py | 77 +++++++++++++++++++ 6 files changed, 131 insertions(+), 5 deletions(-) create mode 100644 md_processing/v2/not_supported.py create mode 100644 tests/micro-tests/test_fa_unregistered_creates.py diff --git a/md_processing/dr_egeria.py b/md_processing/dr_egeria.py index 2fc47bf9..0019bdd0 100644 --- a/md_processing/dr_egeria.py +++ b/md_processing/dr_egeria.py @@ -28,6 +28,7 @@ from md_processing.md_processing_utils.common_md_proc_utils import set_parse_summary_mode, set_usage_level from md_processing.md_processing_utils.common_md_utils import set_attribute_log_level from md_processing.md_processing_utils.md_processing_constants import PROJECT_SUBTYPES, COLLECTION_SUBTYPES +from md_processing.v2.not_supported import NOT_SUPPORTED_YET, NotSupportedYetProcessor from md_processing.v2 import ( UniversalExtractor, V2Dispatcher, AsyncBaseCommandProcessor, TermProcessor, TermRelationshipProcessor, GlossaryClassifyProcessor, QuestionProcessor, TermAsContextProcessor, @@ -380,6 +381,11 @@ def reg(base, cls): reg(f"Update {coll_type}", CollectionManagerProcessor) reg("Create CSV Element", CSVElementProcessor) + # The Digital Product Manager spec names it "Create CSV File"; nothing was registered for that name. + reg("Create CSV File", CSVElementProcessor) + # Specs Dr.Egeria offers but can't create as written: say why instead of "No processor registered". + for command in NOT_SUPPORTED_YET: + reg(command, NotSupportedYetProcessor) reg("Add Member to Collection", CollectionLinkProcessor) reg("Link Agreement Item", CollectionLinkProcessor) reg("Link Agreement Actor", CollectionLinkProcessor) diff --git a/md_processing/md_processing_utils/md_processing_constants.py b/md_processing/md_processing_utils/md_processing_constants.py index 9b37caf4..31b00513 100644 --- a/md_processing/md_processing_utils/md_processing_constants.py +++ b/md_processing/md_processing_utils/md_processing_constants.py @@ -90,6 +90,9 @@ "Skill Set", "Reference List", "Report Type", "Report Spec", "Question Spec", "Working Set", "Event Set", "Context Event Collection", "IT Subsystem", "Naming Standard Rule Set", "Software Archive", "Concept Model", "Business Capability", + # SubjectAreaProperties extends CollectionProperties (odpi/egeria origin/main 0b7ee0fb); the compact + # spec has had Create Subject Area all along but nothing registered it. + "Subject Area", ] SIMPLE_BASE_COLLECTIONS: set = set(COLLECTION_SUBTYPES) | { diff --git a/md_processing/v2/collection_manager_processor.py b/md_processing/v2/collection_manager_processor.py index 94a10168..e3ce8e2f 100644 --- a/md_processing/v2/collection_manager_processor.py +++ b/md_processing/v2/collection_manager_processor.py @@ -241,9 +241,11 @@ async def apply_changes(self) -> str: qualified_name = self.parsed_output["qualified_name"] display_name = attributes.get('Display Name', {}).get('value', qualified_name) + # `Create CSV File` (Digital Product Manager) has no File Name / File Type of its own: the file is + # named by its Display Name, and the type is the CSV data file the template creates. raw_guid = await self.client._async_get_create_csv_data_file_element_from_template( - attributes.get('File Name', {}).get('value'), - attributes.get('File Type', {}).get('value'), + attributes.get('File Name', {}).get('value') or display_name, + attributes.get('File Type', {}).get('value') or "CSV Data File", attributes.get('File Path', {}).get('value'), attributes.get('Version Identifier', {}).get('value'), attributes.get('File Encoding', {}).get('value', 'UTF-8'), @@ -251,13 +253,13 @@ async def apply_changes(self) -> str: attributes.get('File System Name', {}).get('value'), attributes.get('Description', {}).get('value') ) - guid = self.extract_guid_or_raise(raw_guid, "Create CSV Element") + guid = self.extract_guid_or_raise(raw_guid, f"Create {self.command.object_type}") if guid: self.parsed_output["guid"] = guid update_element_dictionary(qualified_name, {'guid': guid, 'display_name': display_name}) - logger.success(f"Created CSV Element '{display_name}' with GUID {guid}") - return f"## Created CSV Element\n\nGUID: {guid}\nQualified Name: {qualified_name}" + logger.success(f"Created {self.command.object_type} '{display_name}' with GUID {guid}") + return f"## Created {self.command.object_type}\n\nGUID: {guid}\nQualified Name: {qualified_name}" return self.command.raw_block diff --git a/md_processing/v2/not_supported.py b/md_processing/v2/not_supported.py new file mode 100644 index 00000000..bffe5ec9 --- /dev/null +++ b/md_processing/v2/not_supported.py @@ -0,0 +1,35 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +"""Commands the compact specs offer that Dr.Egeria can't carry out as written: a sentence, not silence. + +Without a registered processor these came back as "No processor registered for ''" (a WARNING +row; the round-trip probe of 2026-11-12 saw nothing created and nothing explained). Each entry says why +and what to use instead; the spec correction itself belongs to the compact spec owners (F-C). +""" +from __future__ import annotations + +from md_processing.v2.processors import AsyncBaseCommandProcessor + +NOT_SUPPORTED_YET: dict[str, str] = { + "Create Rating": ("a rating is always attached to the element it rates (AttachedRating), so Egeria has no " + "standalone create; use Attach Rating with a Reviewed Element"), + "Create Like": ("a like is always attached to the element it likes (AttachedLike), so Egeria has no " + "standalone create; use Attach Like with a Liked Element"), + "Create Data Sharing Request": ("in Egeria a DataSharingRequest is a ToDo subtype (an action, " + "DataSharingRequestProperties extends ToDoProperties), not the collection " + "the spec describes, and pyegeria has no create call for it yet"), +} + + +class NotSupportedYetProcessor(AsyncBaseCommandProcessor): + """Fails the command with the reason from NOT_SUPPORTED_YET; nothing is sent to Egeria.""" + + async def fetch_as_is(self): + return None + + async def apply_changes(self) -> str: + command = f"{self.command.verb} {self.command.object_type}" + reason = NOT_SUPPORTED_YET.get(command) or next( + (why for name, why in NOT_SUPPORTED_YET.items() if name.lower() == command.lower()), + "it has no Dr.Egeria implementation yet") + raise ValueError(f"{command} is not supported yet: {reason}. Nothing was sent to Egeria.") diff --git a/md_processing/v2/processors.py b/md_processing/v2/processors.py index 5b84cd68..d9391755 100644 --- a/md_processing/v2/processors.py +++ b/md_processing/v2/processors.py @@ -1317,6 +1317,9 @@ async def _execute(self) -> Dict[str, Any]: message = f"Deferred {self.command.verb} {self.command.object_type}: waiting on forward reference(s) to resolve" else: message = f"Executed {self.command.verb} {self.command.object_type}" + (f" (GUID: {guid})" if guid else "") + if not guid and self.command.verb == "Create" and not self.parsed_output.get("local_only"): + # A summary row must never claim a create it can't name (F-A 7). + message += " | no element GUID was returned, so the created element can't be named" if deferred: message += " | Pending: reference(s) still awaiting later resolution" diff --git a/tests/micro-tests/test_fa_unregistered_creates.py b/tests/micro-tests/test_fa_unregistered_creates.py new file mode 100644 index 00000000..ecfabc6a --- /dev/null +++ b/tests/micro-tests/test_fa_unregistered_creates.py @@ -0,0 +1,77 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +"""F-A item 7: the five Create commands that "succeeded" with nothing to read back. + +On the round-trip probe Create Data Sharing Request, Subject Area, CSV File, Rating and Like produced +no element. None had run: each summary row read "No processor registered for ''". +- Subject Area is a Collection subtype in Egeria (SubjectAreaProperties extends CollectionProperties): + now a collection subtype like the rest. +- CSV File: the processor existed as "Create CSV Element"; the spec's name is "Create CSV File". +- Rating / Like are attachments, and Data Sharing Request is a ToDo subtype the spec mis-describes as + a collection: each now fails with a sentence saying why, and nothing is sent. +""" +from typing import Any, cast + +import pytest + +from md_processing.dr_egeria import setup_dispatcher +from md_processing.v2.collection_manager_processor import CollectionManagerProcessor, CSVElementProcessor +from md_processing.v2.extraction import DrECommand +from md_processing.v2.not_supported import NOT_SUPPORTED_YET, NotSupportedYetProcessor + + +@pytest.fixture(scope="module") +def processors(): + registry = setup_dispatcher(cast(Any, object())).processors + return {k.lower(): v for k, v in registry.items()} + + +@pytest.mark.parametrize("command, expected", [ + ("Create Subject Area", CollectionManagerProcessor), + ("Update Subject Area", CollectionManagerProcessor), + ("Create CSV File", CSVElementProcessor), + ("Create Rating", NotSupportedYetProcessor), + ("Create Like", NotSupportedYetProcessor), + ("Create Data Sharing Request", NotSupportedYetProcessor), +]) +def test_every_spec_create_has_a_processor(processors, command, expected): + assert processors.get(command.lower()) is expected + + +@pytest.mark.asyncio +@pytest.mark.parametrize("command", sorted(NOT_SUPPORTED_YET)) +async def test_not_supported_yet_says_why_and_sends_nothing(command): + verb, object_type = command.split(" ", 1) + p = NotSupportedYetProcessor(client=cast(Any, object()), + command=DrECommand(verb=verb, object_type=object_type, attributes={}, + raw_block=f"## {command}"), context={}) + p.parsed_output = {"attributes": {}} + with pytest.raises(ValueError) as exc: + await p.apply_changes() + text = str(exc.value) + assert text.startswith(f"{command} is not supported yet: ") and text.endswith("Nothing was sent to Egeria.") + assert NOT_SUPPORTED_YET[command] in text + + +class _CSVClient: + def __init__(self): + self.calls = [] + + async def _async_get_create_csv_data_file_element_from_template(self, *args): + self.calls.append(args) + return "ffffffff-0000-0000-0000-000000000001" + + +@pytest.mark.asyncio +async def test_create_csv_file_names_the_file_by_its_display_name(): + client = _CSVClient() + p = CSVElementProcessor(client=cast(Any, client), + command=DrECommand(verb="Create", object_type="CSV File", attributes={}, + raw_block="## Create CSV File"), context={}) + p.parsed_output = {"qualified_name": "RTP::CSV", "attributes": { + "Display Name": {"value": "RTP CreateCsvFile DisplayName"}, + "File Path": {"value": "/data/rtp.csv"}, "File Extension": {"value": "csv"}}} + out = await p.apply_changes() + args = client.calls[0] + assert args[0] == "RTP CreateCsvFile DisplayName" and args[1] == "CSV Data File" and args[2] == "/data/rtp.csv" + assert "## Created CSV File" in out and p.parsed_output["guid"] == "ffffffff-0000-0000-0000-000000000001" From 22bdad7485034f5026d6288c42f9ad673fddadf0 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 12:45:43 +0000 Subject: [PATCH 08/27] Dr.Egeria: treat Egeria GUIDs as opaque; accept type-prefixed GUIDs (F-A 8) Egeria GUIDs are opaque strings. A Postgres-backed server returns plain UUIDs, but the in-memory repository (the probe's scratch simple-metadata-store, InMemoryOMRSRepositoryConnectorProvider) returns "-" ("Glossary-5d2a1857-..."). extract_guid_or_raise accepted only ^[a-fA-F0-9-]{8,}$, so on such a platform 213 of the probe's Create summary rows read "Execution failed: ValueError: Create X did not return a GUID string" for elements Egeria had created, and every post-create step (zones, governance classifications, parent links, the element cache, journal entries) was skipped. Platforms returning plain UUIDs, laz included, are not affected (checked by the Coordinator, read-only). pyegeria/core/utils.py: - is_guid(): a non-empty string with no whitespace that isn't a descriptive answer ("No elements found", "GUIDResponse", ...) or a qualified name ("::"). No hex or UUID shape assumed. Used by extract_guid_or_raise. - is_guid_reference(): where a value may be a GUID or an element name (a qualified name has no spaces either), is_guid() plus a UUID at the end, plain or type-prefixed. Used by resolve_element_guid, action_author's GUID check and GovernanceLinkProcessor._normalize_guid (all three assumed a bare UUID). Signed-off-by: Dan Wolfson --- md_processing/v2/action_author.py | 3 +- md_processing/v2/governance.py | 9 +-- md_processing/v2/processors.py | 14 ++-- pyegeria/core/utils.py | 28 ++++++++ .../test_fa_type_prefixed_guids.py | 71 +++++++++++++++++++ 5 files changed, 110 insertions(+), 15 deletions(-) create mode 100644 tests/micro-tests/test_fa_type_prefixed_guids.py diff --git a/md_processing/v2/action_author.py b/md_processing/v2/action_author.py index 443915a5..4c7de5df 100644 --- a/md_processing/v2/action_author.py +++ b/md_processing/v2/action_author.py @@ -17,6 +17,7 @@ from md_processing.v2.processors import AsyncBaseCommandProcessor from md_processing.v2.multilink import async_link_or_update, update_body from md_processing.md_processing_utils.common_md_utils import set_rel_request_body, set_delete_rel_request_body +from pyegeria.core.utils import is_guid_reference from pyegeria.core.utils import body_slimmer @@ -43,7 +44,7 @@ def _normalize_guid(self, value: Any) -> Optional[str]: return value # Basic GUID regex check import re - if re.match(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', value.lower()): + if is_guid_reference(value): # a GUID (plain or type-prefixed), not a name return value return None diff --git a/md_processing/v2/governance.py b/md_processing/v2/governance.py index 75b2a87d..706dec89 100644 --- a/md_processing/v2/governance.py +++ b/md_processing/v2/governance.py @@ -2,10 +2,11 @@ Governance Officer Processors for Dr.Egeria v2. """ from typing import Dict, Any, Optional -import uuid + from loguru import logger import json +from pyegeria.core.utils import is_guid_reference from pyegeria import EgeriaTech, PyegeriaException from md_processing.v2.processors import AsyncBaseCommandProcessor from md_processing.v2.multilink import async_link_or_update, update_body @@ -306,11 +307,7 @@ def _normalize_guid(value: Any) -> Optional[str]: candidate = value.strip() if not candidate: return None - try: - uuid.UUID(candidate) - return candidate - except (ValueError, TypeError): - return None + return candidate if is_guid_reference(candidate) else None # a GUID (plain or type-prefixed), not a name @staticmethod def _resolve_endpoint_guid(attributes: Dict[str, Any], keys: Any) -> Optional[str]: diff --git a/md_processing/v2/processors.py b/md_processing/v2/processors.py index d9391755..91106609 100644 --- a/md_processing/v2/processors.py +++ b/md_processing/v2/processors.py @@ -9,6 +9,7 @@ from typing import Any, Awaitable, Callable, Dict, List, Optional, Union from loguru import logger +from pyegeria.core.utils import is_guid, is_guid_reference from pyegeria import EgeriaTech, PyegeriaException, PyegeriaTimeoutException, NO_ELEMENTS_FOUND, print_basic_exception, lineage_visible from pyegeria.core.utils import make_format_set_name_from_type from pyegeria.view.base_report_formats import select_report_spec @@ -137,9 +138,8 @@ def extract_guid_or_raise(self, raw_guid: Any, operation: str) -> str: def _find_guid(payload: Any) -> Optional[str]: if isinstance(payload, str): candidate = payload.strip() - # Egeria GUIDs are typically UUIDs (36 chars) or at least 8+ chars of hex/dashes - # We want to avoid returning "GUIDResponse" or other descriptive strings. - if re.match(r"^[a-fA-F0-9-]{8,}$", candidate): + # Egeria GUIDs are opaque (is_guid): not "GUIDResponse" or other descriptive strings. + if is_guid(candidate): return candidate return None @@ -1566,12 +1566,10 @@ async def resolve_element_guid(self, name_or_guid: str, tech_type: Optional[str] logger.debug(f"resolve_element_guid: Remapping pseudo-type '{tech_type}' to '{remap[tech_type]}'") tech_type = remap[tech_type] - # 1. Is it a GUID? - try: - uuid.UUID(name_or_guid) + # 1. Is it a GUID? Only a UUID-shaped value counts here: GUIDs are opaque, and a qualified + # name with no spaces would look like one, so anything else goes through name resolution. + if is_guid_reference(name_or_guid): return name_or_guid - except ValueError: - pass # 2. Check local cache (real elements first!) key = find_key_with_value(name_or_guid) diff --git a/pyegeria/core/utils.py b/pyegeria/core/utils.py index 69942bf2..dbfa0201 100644 --- a/pyegeria/core/utils.py +++ b/pyegeria/core/utils.py @@ -528,3 +528,31 @@ def discover_element_schema(element: Any, prefix: str = "", exclude_system_prope if __name__ == "__main__": print("Main-Utils") + + +# Egeria GUIDs are opaque strings. Postgres-backed servers return plain UUIDs; the in-memory repository +# (e.g. a scratch simple-metadata-store) returns "-" ("Glossary-5d2a1857-..."). Code that +# accepted only hex reported nearly every Dr.Egeria Create on such a platform as failed after Egeria had +# created the element, and skipped every post-create step. +_NOT_GUIDS = {"no elements found", "guidresponse", "none", "null", "undefined"} + + +def is_guid(value) -> bool: + """True for anything Egeria could have returned as a GUID: a non-empty string with no whitespace that + isn't one of the descriptive answers pyegeria or Egeria give instead ("No elements found", + "GUIDResponse", ...) and isn't a qualified name ("::", Dr.Egeria's separator, e.g. a create that + echoed "ThreatDefinition::x" back). GUIDs are opaque: no hex or UUID shape is assumed.""" + if not isinstance(value, str): + return False + text = value.strip() + return (bool(text) and not any(ch.isspace() for ch in text) and "::" not in text + and text.lower() not in _NOT_GUIDS) + + +_UUID_AT_END = re.compile(r"[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") + + +def is_guid_reference(value) -> bool: + """Where a value may be either a GUID or an element name (a qualified name has no spaces either), a + GUID is an is_guid() value ending in a UUID: plain, or after a type prefix ("Glossary-").""" + return is_guid(value) and bool(_UUID_AT_END.search(value.strip())) diff --git a/tests/micro-tests/test_fa_type_prefixed_guids.py b/tests/micro-tests/test_fa_type_prefixed_guids.py new file mode 100644 index 00000000..6743a6c8 --- /dev/null +++ b/tests/micro-tests/test_fa_type_prefixed_guids.py @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +"""F-A item 8: Egeria GUIDs are opaque; the in-memory repository returns "-". + +extract_guid_or_raise accepted only hex/dashes, so on the round-trip probe (scratch 757a5df0) 213 Create +summary rows read "Execution failed: ValueError: Create X did not return a GUID string" for elements +Egeria had created -- and every post-create step (zones, governance classifications, parent links, the +element cache, journal entries) was skipped. The same assumption sat in resolve_element_guid, +action_author and governance._normalize_guid. +""" +from typing import Any, cast + +import pytest + +from md_processing.v2.extraction import DrECommand +from md_processing.v2.governance import GovernanceLinkProcessor +from md_processing.v2.processors import AsyncBaseCommandProcessor +from pyegeria.core.utils import is_guid, is_guid_reference + +PREFIXED = "Glossary-5d2a1857-27fb-4615-aaae-e90e362f09b5" # what create_glossary returned on 757a5df0 +PLAIN = "5d2a1857-27fb-4615-aaae-e90e362f09b5" + + +@pytest.mark.parametrize("value, expected", [ + (PREFIXED, True), (PLAIN, True), ("Report-799ded80-1830-4952-9e4b-7fc17c3863e4", True), + ("opaque-guid-7", True), # opaque: no hex or UUID shape assumed + ("GUIDResponse", False), ("No elements found", False), ("two words", False), ("", False), (None, False), + ("ThreatDefinition::bad", False), +]) +def test_is_guid_is_opaque(value, expected): + assert is_guid(value) is expected + + +@pytest.mark.parametrize("value, expected", [ + (PREFIXED, True), (PLAIN, True), ("RTP::Diag::Glossary1", False), ("opaque-guid-7", False), + ("Glossary-", False), ("No elements found", False), +]) +def test_is_guid_reference_tells_a_guid_from_a_name(value, expected): + assert is_guid_reference(value) is expected + + +class _Probe(AsyncBaseCommandProcessor): + async def apply_changes(self): + return "" + + +def _processor(cls=_Probe): + return cls(client=cast(Any, object()), + command=DrECommand(verb="Create", object_type="Glossary", attributes={}, raw_block="## Create Glossary"), + context={}) + + +@pytest.mark.parametrize("raw", [PREFIXED, f" {PREFIXED} ", {"guid": PREFIXED}, {"elementHeader": {"guid": PREFIXED}}, + [PREFIXED], PLAIN]) +def test_extract_guid_accepts_type_prefixed_guids(raw): + assert _processor().extract_guid_or_raise(raw, "Create Glossary") in (PREFIXED, PLAIN) + + +def test_extract_guid_still_refuses_descriptive_strings(): + with pytest.raises(ValueError): + _processor().extract_guid_or_raise("No elements found", "Create Glossary") + + +@pytest.mark.asyncio +async def test_resolve_element_guid_returns_a_prefixed_guid_as_is(): + assert await _processor().resolve_element_guid(PREFIXED) == PREFIXED + + +def test_governance_normalize_guid_accepts_prefixed(): + assert GovernanceLinkProcessor._normalize_guid(PREFIXED) == PREFIXED + assert GovernanceLinkProcessor._normalize_guid("RTP::Not::A::Guid") is None From 7fec299606583da913871b97bfccfbe0981ecaf6 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 13:07:05 +0000 Subject: [PATCH 09/27] Dr.Egeria: a GUID reference is a whole UUID, one type prefix at most (F-A 8b) Architect read-back of 22bdad74: is_guid_reference() was anchored only at the end, so names that merely end in a UUID ("Run-Extract-", "My_Report_") were taken for GUIDs at the GUID-or-name sites -- a regression from the old uuid.UUID() check. It is now a full match: ^(?:[A-Za-z][A-Za-z0-9]*-)?$ -- a UUID, plain or after one type-name prefix ("Glossary-"). Both counter-examples are tested as names, at the helper and through resolve_element_guid. is_guid() (opaque, for responses) is unchanged. Signed-off-by: Dan Wolfson --- pyegeria/core/utils.py | 9 +++++--- .../test_fa_type_prefixed_guids.py | 21 +++++++++++++++++++ 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/pyegeria/core/utils.py b/pyegeria/core/utils.py index dbfa0201..aea01921 100644 --- a/pyegeria/core/utils.py +++ b/pyegeria/core/utils.py @@ -549,10 +549,13 @@ def is_guid(value) -> bool: and text.lower() not in _NOT_GUIDS) -_UUID_AT_END = re.compile(r"[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") +# The whole value: a UUID, optionally after ONE CamelCase type name and a hyphen ("Glossary-"). +# A name that merely ends in a UUID ("Run-Extract-", "My_Report_") is still a name. +_GUID_REFERENCE = re.compile(r"^(?:[A-Za-z][A-Za-z0-9]*-)?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-" + r"[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") def is_guid_reference(value) -> bool: """Where a value may be either a GUID or an element name (a qualified name has no spaces either), a - GUID is an is_guid() value ending in a UUID: plain, or after a type prefix ("Glossary-").""" - return is_guid(value) and bool(_UUID_AT_END.search(value.strip())) + GUID is the whole value: a UUID, plain or after one type-name prefix ("Glossary-").""" + return isinstance(value, str) and bool(_GUID_REFERENCE.match(value.strip())) diff --git a/tests/micro-tests/test_fa_type_prefixed_guids.py b/tests/micro-tests/test_fa_type_prefixed_guids.py index 6743a6c8..25ea41a7 100644 --- a/tests/micro-tests/test_fa_type_prefixed_guids.py +++ b/tests/micro-tests/test_fa_type_prefixed_guids.py @@ -34,6 +34,10 @@ def test_is_guid_is_opaque(value, expected): @pytest.mark.parametrize("value, expected", [ (PREFIXED, True), (PLAIN, True), ("RTP::Diag::Glossary1", False), ("opaque-guid-7", False), ("Glossary-", False), ("No elements found", False), + # names that merely end in a UUID stay names (Architect read-back of 22bdad74) + ("Run-Extract-5d2a1857-27fb-4615-aaae-e90e362f09b5", False), + ("My_Report_5d2a1857-27fb-4615-aaae-e90e362f09b5", False), + ("glossary-5d2a1857-27fb-4615-aaae-e90e362f09b5", True), ]) def test_is_guid_reference_tells_a_guid_from_a_name(value, expected): assert is_guid_reference(value) is expected @@ -69,3 +73,20 @@ async def test_resolve_element_guid_returns_a_prefixed_guid_as_is(): def test_governance_normalize_guid_accepts_prefixed(): assert GovernanceLinkProcessor._normalize_guid(PREFIXED) == PREFIXED assert GovernanceLinkProcessor._normalize_guid("RTP::Not::A::Guid") is None + + +@pytest.mark.asyncio +@pytest.mark.parametrize("name", ["Run-Extract-5d2a1857-27fb-4615-aaae-e90e362f09b5", + "My_Report_5d2a1857-27fb-4615-aaae-e90e362f09b5"]) +async def test_resolve_element_guid_treats_uuid_suffixed_names_as_names(name, monkeypatch): + p = _processor() + import md_processing.v2.processors as processors + monkeypatch.setattr(processors, "find_key_with_value", lambda value: None) + + async def no_lookup(*args, **kwargs): + return None + for attr in ("_lookup_guid_by_name", "_async_get_guid_by_name"): + if hasattr(p, attr): + monkeypatch.setattr(p, attr, no_lookup) + result = await p.resolve_element_guid(name) + assert result != name # not passed through as if it were a GUID From f0f0c805b1ebbe83de5346e0eb6aa429ca20ac70 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 13:15:06 +0000 Subject: [PATCH 10/27] Dr.Egeria: Blog/Journal/Activity Entry creates report success (F-A 9) On the PostgreSQL scratch (the probe user now has a profile) Create Blog Entry, Create Journal Entry and Create Activity Entry created their entry and then failed: the processor read it back with _async_get_note_by_guid, which asks for type Note, and Egeria answered "OMAG-REPOSITORY-HANDLER-404-001 ... of type BlogEntry rather than type Note". The result is now rendered from the created element (render_result_markdown), like the other creates. Test per command. Signed-off-by: Dan Wolfson --- md_processing/v2/feedback.py | 6 +- .../test_fa_activity_entries_render.py | 58 +++++++++++++++++++ 2 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 tests/micro-tests/test_fa_activity_entries_render.py diff --git a/md_processing/v2/feedback.py b/md_processing/v2/feedback.py index b6de03c1..a94624f2 100644 --- a/md_processing/v2/feedback.py +++ b/md_processing/v2/feedback.py @@ -91,8 +91,10 @@ async def apply_changes(self) -> str: self.parsed_output["guid"] = guid update_element_dictionary(qualified_name, {'guid': guid, 'display_name': display_name}) logger.success(f"Created {object_type} '{display_name}' with GUID {guid}") - return await self.client._async_get_note_by_guid( - guid, output_format='MD', report_spec="Journal-Entry-DrE") + # Not _async_get_note_by_guid: it asks for type Note, and Egeria refuses a JournalEntry / + # ActivityEntry / BlogEntry for that (OMAG-REPOSITORY-HANDLER-404-001 "... of type BlogEntry + # rather than type Note"), so a create that worked was reported as failed. + return await self.render_result_markdown(guid) elif "Note" in object_type: # Egeria added a real "Note" entity type (subtype of Notification, PR #9191, diff --git a/tests/micro-tests/test_fa_activity_entries_render.py b/tests/micro-tests/test_fa_activity_entries_render.py new file mode 100644 index 00000000..ae8c4355 --- /dev/null +++ b/tests/micro-tests/test_fa_activity_entries_render.py @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +"""F-A item 9: Create Blog / Journal / Activity Entry reported failure for an entry Egeria had created. + +After the create, the processor read the entry back with _async_get_note_by_guid, which asks for type Note; +Egeria refuses a BlogEntry (or JournalEntry, ActivityEntry) for that: "OMAG-REPOSITORY-HANDLER-404-001 ... +of type BlogEntry rather than type Note" (round-trip probe, PostgreSQL scratch, 2026-11-12). The result is +now rendered from the created element itself. +""" +from typing import Any, cast + +import pytest + +from md_processing.v2.extraction import DrECommand +from md_processing.v2.feedback import FeedbackProcessor + +GUID = "11831149-eed7-466a-9488-270d6164f442" + + +class _MyProfile: + def __init__(self): + self.calls = [] + + def __getattr__(self, name): + async def create(**kwargs): + self.calls.append((name, kwargs)) + return GUID + return create + + +class _Client: + def __init__(self): + self.my_profile = _MyProfile() + + async def _async_get_note_by_guid(self, *args, **kwargs): + raise AssertionError("an activity entry is not a Note: Egeria refuses this read") + + +@pytest.mark.asyncio +@pytest.mark.parametrize("object_type, method", [ + ("Blog Entry", "_async_blog_my_activity"), + ("Journal Entry", "_async_journal_my_activity"), + ("Activity Entry", "_async_log_my_activity"), +]) +async def test_activity_entry_result_is_rendered_from_the_entry(object_type, method): + client = _Client() + p = FeedbackProcessor(client=cast(Any, client), + command=DrECommand(verb="Create", object_type=object_type, attributes={}, + raw_block=f"## Create {object_type}"), context={}) + p.parsed_output = {"qualified_name": f"RTP::{object_type}", "attributes": { + "Display Name": {"value": f"RTP {object_type}"}, "Description": {"value": "text"}}} + + async def render(guid): + return f"rendered {guid}" + p.render_result_markdown = render + out = await p.apply_changes() + assert out == f"rendered {GUID}" + assert client.my_profile.calls[0][0] == method and p.parsed_output["guid"] == GUID From e1e3607a5956dabb201d15e76cc5667ac4c32146 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 14:08:36 +0000 Subject: [PATCH 11/27] Dr.Egeria: don't send Default Value Override; report it (F-B 9) Create Schema Attribute, Create Display Data Container and Create Display Data Field failed on the PostgreSQL scratch with OMAG-REPOSITORY-HANDLER-400-001 / OMRS-REPOSITORY-400-028 ("A property called defaultValueOverride ... type SchemaAttribute"). Egeria's SchemaAttributeProperties declares the field (SchemaAttributeProperties.java:52) and its builder writes it (OpenMetadataElementBuilder.java:2225), but the 757a5df0 repository TypeDef doesn't (Egeria issue addendum section 4). Until Egeria declares it, Dr.Egeria leaves it out and reports "not applied: Default Value Override: not in this Egeria's type system", so the create succeeds. Test per type. Signed-off-by: Dan Wolfson --- md_processing/v2/schema_maker.py | 8 ++- .../test_fb_default_value_override.py | 56 +++++++++++++++++++ 2 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 tests/micro-tests/test_fb_default_value_override.py diff --git a/md_processing/v2/schema_maker.py b/md_processing/v2/schema_maker.py index d302173f..db4177cc 100644 --- a/md_processing/v2/schema_maker.py +++ b/md_processing/v2/schema_maker.py @@ -92,8 +92,14 @@ async def apply_changes(self) -> str: "maxCardinality": _v(attributes, "Max Cardinality"), "allowsDuplicateValues": _v(attributes, "Allows Duplicate Values"), "isOrderedValues": _v(attributes, "Is Ordered Values"), - "defaultValueOverride": _v(attributes, "Default Value Override"), }) + # Egeria's SchemaAttributeProperties declares defaultValueOverride (SchemaAttributeProperties.java:52) + # and its builder writes it (OpenMetadataElementBuilder.java:2225), but the repository's TypeDef + # (757a5df0) doesn't have it: sending it fails the whole create with OMRS-REPOSITORY-400-028 + # (Egeria issue addendum section 4). Not sent until Egeria declares it. + if _v(attributes, "Default Value Override") not in (None, ""): + record_not_applied(attributes, "Default Value Override", + ["not applied: Default Value Override: not in this Egeria's type system"]) if is_display: # Egeria 6.3 placement attributes (odpi/egeria#9432): a leaf placement is a # DisplayDataField, a sheet or nested sheet a DisplayDataContainer. diff --git a/tests/micro-tests/test_fb_default_value_override.py b/tests/micro-tests/test_fb_default_value_override.py new file mode 100644 index 00000000..36b8f6da --- /dev/null +++ b/tests/micro-tests/test_fb_default_value_override.py @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +"""F-B group 9: Default Value Override isn't in this Egeria's type system, so it isn't sent. + +Egeria's SchemaAttributeProperties declares defaultValueOverride and its builder writes it, but the 757a5df0 +repository TypeDef for SchemaAttribute / DisplayDataContainer / DisplayDataField doesn't have it: sending it +failed the whole create (OMRS-REPOSITORY-400-028; round-trip probe, PostgreSQL scratch). Until Egeria declares +it, Dr.Egeria leaves it out and says so, and the create succeeds. +""" +from typing import Any, cast + +import pytest + +from md_processing.md_processing_utils.typed_properties import not_applied_notes +from md_processing.v2.extraction import DrECommand +from md_processing.v2.schema_maker import SchemaElementProcessor + + +class _SchemaMaker: + def __init__(self): + self.bodies = [] + + def __getattr__(self, name): + async def call(*args, **kwargs): + self.bodies.append((name, args, kwargs)) + return "aaaaaaaa-0000-0000-0000-000000000009" + return call + + +class _Client: + def __init__(self): + self.schema_maker = _SchemaMaker() + + +async def _async_value(value): + return value + + +@pytest.mark.asyncio +@pytest.mark.parametrize("om_type", ["SchemaAttribute", "DisplayDataContainer", "DisplayDataField"]) +async def test_default_value_override_is_reported_not_sent(om_type): + client = _Client() + p = SchemaElementProcessor(client=cast(Any, client), + command=DrECommand(verb="Create", object_type=om_type, attributes={}, + raw_block=f"## Create {om_type}"), context={}) + p.get_command_spec = lambda: {"OM_TYPE": om_type} + p.parsed_output = {"qualified_name": f"RTP::{om_type}", "attributes": { + "Display Name": {"value": f"RTP {om_type}"}, + "Default Value Override": {"value": "RTP CreateSchemaAttribute DefaultValueOverride"}}} + p.as_is_element = None + p.render_result_markdown = lambda guid: _async_value(guid) + await p.apply_changes() + sent = repr(client.schema_maker.bodies) + assert "defaultValueOverride" not in sent and "DefaultValueOverride" not in sent + assert not_applied_notes(p.parsed_output["attributes"]) == [ + "not applied: Default Value Override: not in this Egeria's type system"] From 2fdff9bc4cd4bfe6717cfc416e0495a2329d06cf Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 14:08:43 +0000 Subject: [PATCH 12/27] feat(view): report_spec_publish, the shared report-spec publish/withdraw helper Stage 1a of BRIEF-SPEC-PUBLISH-STAGED-2026-11-12 (owner: "Yes, staged"). Lifted from Egeria Advisor's advisor/egeria_spec_publish.py (trellis, B6) and made app-neutral, so the Portal and EA build and check the same Dr.Egeria documents. No credentials, no web or app code, no cache I/O. - build_publish_document(label, fs, *, folders, visibility, zones, held, restricted): Create Report Spec (Update when held), Add Member to Collection per consumer folder (the folders are the app's), Zone Membership for restricted, Declassify Zone Membership when a restricted spec is re-published as public. Never a Parent ID. Every attribute is one line (any Unicode line break refused; rules, '>' and '#' refused; list items without commas); the microflow is one ASCII line. - build_withdraw_document(label, folders, *, allowed, allowed_words): Remove Member from Collection per folder. - check_zones / restricted_publish_status(proof): EA's rules and words; the proof is the app's setting (EA: ADVISOR_RESTRICTED_PUBLISH_PROVEN), passed in, not read from an env var here. - held_in_egeria(label, *, shared_tier, restricted_reader, app): {held, zones, how}; without a restricted reader, or when one fails, "how" says "not known: restricted specs not read", never "not held". - document_digest / check_unchanged: the process step refuses, with EA's words, a document that differs from the previewed one. - run_document(plan, *, step, run, confirmed, digest): preview / validate / process with an app-supplied runner (the app runs the document as the signed-in user); after a successful process it returns after_publish(plan), the cache instruction, and syncs nothing. The builders return EA's plan dict (markdown, digest, steps, ...) rather than a bare string, so EA (stage 1b) can delegate with no behaviour change. Tests (45): golden equality with EA's own output, captured from trellis 82340b58 for fixed inputs with this pyegeria: 6 publish documents (create/update, one or two folders, restricted, declassify), 11 refusal words, 2 withdraw documents and the withdraw refusal (documents, digests and steps byte-identical); the digest refusal; confirm required; zone rules; folders in the app's order; held_in_egeria's words; no Parent ID in any document or code string; no credential parameters and no imports beyond hashlib/json/re/typing/pyegeria. micro-tests on 3.13: 3325 passed. Signed-off-by: Dan Wolfson --- pyegeria/view/report_spec_publish.py | 370 +++++++++++++++ .../ea_goldens_2026_11_12.json | 426 ++++++++++++++++++ tests/micro-tests/test_report_spec_publish.py | 264 +++++++++++ 3 files changed, 1060 insertions(+) create mode 100644 pyegeria/view/report_spec_publish.py create mode 100644 tests/micro-tests/data/report_spec_publish/ea_goldens_2026_11_12.json create mode 100644 tests/micro-tests/test_report_spec_publish.py diff --git a/pyegeria/view/report_spec_publish.py b/pyegeria/view/report_spec_publish.py new file mode 100644 index 00000000..def8cf42 --- /dev/null +++ b/pyegeria/view/report_spec_publish.py @@ -0,0 +1,370 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +"""Publish a report spec to Egeria, and withdraw it: the shared, app-neutral part. + +Lifted from Egeria Advisor's `advisor/egeria_spec_publish.py` (trellis, brief B6) so the Portal and EA +build and check the same documents (BRIEF-SPEC-PUBLISH-STAGED-2026-11-12, stage 1a). This module holds +**no credentials, does no web or app work and touches no cache**: each app supplies + +- the spec to publish (a `FormatSet`) and the **consumer folders** it goes to + (EA: `Consumer::EgeriaAdvisor` +/- `Consumer::Portal`; the Portal: `Consumer::Portal` +/- EA's); +- a **runner**, `run(markdown, directive) -> dict | JSON str`, that runs a Dr.Egeria document **as the + signed-in user** (EA: `DrEgeriaActionAgent.execute(..., egeria_credentials=...)`; the Portal: its + in-process Dr.Egeria API with the user's token). This module never authenticates; +- whether restricted publish is proven on its platform (`restricted_publish_status(proof)`), from its + own setting (EA: `ADVISOR_RESTRICTED_PUBLISH_PROVEN`); +- what "already held in Egeria" means to it (`held_in_egeria(..., shared_tier=, restricted_reader=)`). + +**The document.** One `Create Report Spec` (`Update Report Spec` when the label is already held), then +`Add Member to Collection` for each consumer folder. Public carries no zones; restricted carries +`Zone Membership`. A blank Zone Membership on an Update leaves old zones in place (pyegeria 6.2.30), so +re-publishing a restricted spec as public adds `Declassify Zone Membership`. + +**Never a Parent ID** on the spec command, Create or Update (a Parent ID on an Update can delete an +unrelated same-type relationship): folder membership is only ever `Add Member to Collection`, which +Egeria checks before it adds (no duplicate membership on a re-publish). + +**The steps** are fixed: **preview** (the document, nothing sent), **validate** (Dr.Egeria's validate +run), the user **confirms**, then **process**. The process step is given the digest of the document the +user previewed; the app rebuilds the document and `run_document` refuses if it differs. + +**Withdraw** is `Remove Member from Collection` from each folder (the spec element stays in Egeria). + +After a successful process, `run_document` returns `after`: what the app must do to its own cache +(`after_publish`); it never syncs anything itself. +""" +from __future__ import annotations + +import hashlib +import json +import re +from typing import Any, Callable, Dict, Iterable, List, Optional, Union + +ADVISOR_FOLDER = "ReportSpecFolder::Consumer::EgeriaAdvisor" +PORTAL_FOLDER = "ReportSpecFolder::Consumer::Portal" +#: The consumer folders known today (report-spec consumer folders, phase 1). +CONSUMER_FOLDERS = (ADVISOR_FOLDER, PORTAL_FOLDER) +STEPS = ("preview", "validate", "process") + +_ZONE_OK = re.compile(r"[A-Za-z0-9][A-Za-z0-9 _.:-]{0,127}") # used with fullmatch: no trailing newline +_RULE = re.compile(r"(-{3,}|_{3,}|\*{3,})") + +NOT_PROVEN = ("Restricted publish is not yet proven on this platform: Egeria's zone check on report specs has " + "not been shown live here, so a 'restricted' spec might be visible to everyone. Publish it as " + "public, or wait for the zone proof.") +CONFIRM_FIRST = "Confirm first: the document runs as you, and writes to Egeria." +CHANGED = ("The document changed since you previewed it (the spec, or what Egeria holds); " + "preview it again before confirming.") + +Runner = Callable[[str, str], Union[Dict[str, Any], str]] + + +class PublishRefused(ValueError): + """The request cannot be turned into a document, or run: the words say why.""" + + +# ── Restricted publish gate (D5) ───────────────────────────────────────────── + +def restricted_publish_status(proof: Optional[str]) -> Dict[str, Any]: + """{"enabled", "message", "proof"}. Restricted publish stays off until the live zone proof (a user + without the zone cannot see a zoned ReportSpec; one with it can) has been captured on the app's + platform; `proof` is where the app records it (EA reads ADVISOR_RESTRICTED_PUBLISH_PROVEN).""" + proof = (proof or "").strip() + if proof: + return {"enabled": True, "message": None, "proof": proof} + return {"enabled": False, "message": NOT_PROVEN, "proof": None} + + +# ── One-line values ─────────────────────────────────────────────────────────── + +def _one_line(field: str, value: Any) -> str: + """A value written into the Dr.Egeria document as one attribute line, or PublishRefused. + + Dr.Egeria splits the document with str.splitlines(), which also breaks on U+0085, U+2028, U+2029, + \\x0b, \\x0c and \\x1c-\\x1e. A value holding any of those could start its own "## Command" or + "### Zone Membership" line, and a lone rule ("---") or a leading ">" changes how the block is read: + a restricted spec could be published as public. So: exactly one line, not a rule, not a heading or + quote.""" + text = str(value) + if len(text.splitlines()) != 1 or text != text.splitlines()[0]: + raise PublishRefused(f"{field} must be a single line of text (line breaks of any kind are refused).") + stripped = text.strip() + if not stripped: + raise PublishRefused(f"{field} is empty.") + if _RULE.fullmatch(stripped) or stripped.startswith((">", "#")): + raise PublishRefused(f"{field} cannot be a rule ('---') or start with '>' or '#': {stripped[:40]!r}.") + return stripped + + +def _list_item(field: str, value: Any) -> str: + """One entry of a list attribute: one line, and no comma (Dr.Egeria splits lists on commas).""" + text = _one_line(field, value) + if "," in text: + raise PublishRefused(f"{field} cannot contain a comma (it would become two entries): {text[:40]!r}.") + return text + + +def _flatten(field: str, value: Any) -> Optional[str]: + """Free text (a description) folded onto one line: every kind of line break becomes a space.""" + if value in (None, ""): + return None + folded = " ".join(str(value).split()) + return _one_line(field, folded) if folded else None + + +def spec_qualified_name(label: str) -> str: + return f"ReportSpec::{label}" + + +def check_label(label: str) -> str: + if not (label or "").strip(): + raise PublishRefused("A report spec name is needed.") + return _one_line("The report spec name", label) + + +def check_zones(visibility: str, zones: Optional[Iterable[Any]], *, + restricted: Optional[Dict[str, Any]] = None) -> List[str]: + """The zones a spec is published with: [] for public; the sorted, de-duplicated zone names for + restricted. `restricted` is the app's `restricted_publish_status(...)`; without it restricted + publish is not proven, and refused.""" + if visibility not in ("public", "restricted"): + raise PublishRefused(f"Visibility must be 'public' or 'restricted', not {visibility!r}.") + cleaned, bad = set(), [] + for z in zones or []: + if not isinstance(z, str): + bad.append(repr(z)) + elif _ZONE_OK.fullmatch(z.strip()): + cleaned.add(z.strip()) + elif z.strip(): + bad.append(repr(z)) + if bad: + raise PublishRefused(f"Not a zone name (letters, digits, space, _ . : - only, one line): {', '.join(bad)}.") + out = sorted(cleaned) + if visibility == "public": + if out: + raise PublishRefused("A public spec carries no zones; choose 'Restricted to zones' to set them.") + return [] + if not out: + raise PublishRefused("Restricted needs at least one zone.") + if not (restricted or restricted_publish_status(None))["enabled"]: + raise PublishRefused(NOT_PROVEN) + return out + + +def check_folders(folders: Optional[Iterable[Any]], *, allowed: Optional[Iterable[str]] = None, + allowed_words: str = "the configured consumer folders", action: str = "Publish") -> List[str]: + """The consumer folders, in order, de-duplicated; each one line. With `allowed`, any other is refused.""" + out: List[str] = [] + for f in folders or []: + name = _list_item("A consumer folder", f) + if name not in out: + out.append(name) + if not out: + raise PublishRefused(f"{action} needs at least one consumer folder.") + if allowed is not None: + allowed = list(allowed) + bad = [f for f in out if f not in allowed] + if bad: + raise PublishRefused(f"{action} works on {allowed_words} only, not {', '.join(bad)}.") + return out + + +# ── The spec as document attributes ─────────────────────────────────────────── + +def microflow_json(fs) -> str: + """The spec's microflow, as one ASCII line (every non-ASCII character, U+2028 too, is a \\u escape).""" + from pyegeria.view.microflow import format_set_to_microflow + try: + mf = format_set_to_microflow(fs) + except Exception as exc: # noqa: BLE001 -- the words go to the user + raise PublishRefused(f"This spec cannot be written as a microflow: {exc}") from exc + return _one_line("The microflow", json.dumps(json.loads(mf.to_json()), ensure_ascii=True, separators=(",", ":"))) + + +def output_types(fs) -> List[str]: + out: List[str] = [] + for fmt in getattr(fs, "formats", None) or []: + for t in getattr(fmt, "types", None) or []: + if t and t.upper() not in out: + out.append(t.upper()) + return out + + +# ── Held in Egeria? ────────────────────────────────────────────────────────── + +def held_in_egeria(label: str, *, shared_tier: Optional[Callable[[str], Any]] = None, + restricted_reader: Optional[Callable[[], Dict[str, Any]]] = None, + app: str = "this tool") -> Dict[str, Any]: + """{"held": bool, "zones": [...], "how": words}: whether Egeria already holds `label`, as far as the + app can tell, and what was and was not read. + + - `shared_tier(label)`: the app's Egeria-held tier lookup (truthy when held, public). Default: + pyegeria's `egeria_spec_cache.egeria_tier_info`. + - `restricted_reader()`: the signed-in user's restricted (zoned) specs, `{"specs": [{"label", + "zones"}, ...]}`. Without one, restricted specs are "not read", and `how` says so. + + Dr.Egeria upserts a Create whose qualified name exists, so a miss here is never a duplicate.""" + tier_note = "" + try: + if shared_tier is None: + from pyegeria.view.egeria_spec_cache import egeria_tier_info as shared_tier + if shared_tier(label): + return {"held": True, "zones": [], "how": f"held in Egeria ({app}'s shared tier)"} + except Exception as exc: # noqa: BLE001 -- carried into "how" + tier_note = f"; {app}'s shared tier could not be read ({exc})" + if restricted_reader is None: + return {"held": False, "zones": [], + "how": f"not known: restricted specs not read ({app} reads none){tier_note}"} + try: + got = restricted_reader() or {} + except Exception as exc: # noqa: BLE001 -- a refused token is the process step's to report + return {"held": False, "zones": [], "how": f"not known: restricted specs not read ({exc}){tier_note}"} + for s in got.get("specs") or []: + if s.get("label") == label: + return {"held": True, "zones": list(s.get("zones") or []), "how": "held in Egeria, restricted"} + return {"held": False, "zones": [], "how": f"not held in Egeria as far as {app} can see{tier_note}"} + + +# ── Documents ───────────────────────────────────────────────────────────────── + +def _section(title: str, rows: List[tuple]) -> str: + lines = [f"## {title}"] + for name, value in rows: + if value in (None, "", []): + continue + if isinstance(value, list): + value = ", ".join(value) + lines += [f"### {name}", str(value)] + return "\n".join(lines) + "\n\n___\n" + + +def document_digest(markdown: str) -> str: + return hashlib.sha256(markdown.encode()).hexdigest()[:16] + + +def build_publish_document(label: str, fs, *, folders: Iterable[str], visibility: str = "public", + zones: Optional[Iterable[str]] = None, held: Optional[Dict[str, Any]] = None, + restricted: Optional[Dict[str, Any]] = None) -> Dict[str, Any]: + """The Dr.Egeria document that publishes `fs` as `label` into `folders`, with a plain summary. + + Returns {"label", "qualified_name", "verb", "visibility", "zones", "folders", "markdown", "digest", + "steps", "held"}; `markdown` is the document and `steps` says in words what it does.""" + label = check_label(label) + zones = check_zones(visibility, zones, restricted=restricted) + folders = check_folders(folders) + held = held or {"held": False, "zones": []} + verb = "Update" if held.get("held") else "Create" + qn = spec_qualified_name(label) + target = getattr(fs, "target_type", None) + rows = [("Display Name", label), ("Qualified Name", qn), + ("Description", _flatten("The description", getattr(fs, "description", None))), + ("Content Status", "ACTIVE"), + ("Aliases", [_list_item("An alias", a) for a in (getattr(fs, "aliases", None) or [])]), + ("Target Type Name", _one_line("The target type", target) if target else None), + ("Output Types", [_list_item("An output type", t) for t in output_types(fs)]), + ("Microflow", microflow_json(fs))] + if zones: + rows.append(("Zone Membership", zones)) + # Never a Parent ID here (Create or Update): membership is the Add Member below. + doc = [f"# Publish report spec {label}\n", _section(f"{verb} Report Spec", rows)] + steps = [f"{verb} the ReportSpec {qn}" + (f", restricted to zones {', '.join(zones)}" if zones else ", public")] + if visibility == "public" and held.get("zones"): + doc.append(_section("Declassify Zone Membership", [("Target Element", qn)])) + steps.append(f"remove its zones ({', '.join(held['zones'])}): it was restricted, it becomes public") + for folder in folders: + doc.append(_section("Add Member to Collection", [("Element Id", qn), ("Collection Id", folder)])) + steps.append(f"add it to {folder}") + markdown = "\n".join(doc) + return {"label": label, "qualified_name": qn, "verb": verb, "visibility": visibility, "zones": zones, + "folders": folders, "markdown": markdown, "digest": document_digest(markdown), "steps": steps, + "held": held} + + +def build_withdraw_document(label: str, folders: Iterable[str], *, allowed: Optional[Iterable[str]] = None, + allowed_words: str = "the configured consumer folders") -> Dict[str, Any]: + """`Remove Member from Collection` for each folder; the spec element itself stays in Egeria.""" + label = check_label(label) + qn = spec_qualified_name(label) + folders = check_folders(folders, allowed=allowed, allowed_words=allowed_words, action="Withdraw") + doc = [f"# Withdraw report spec {label}\n"] + doc += [_section("Remove Member from Collection", [("Element Id", qn), ("Collection Id", f)]) for f in folders] + markdown = "\n".join(doc) + return {"label": label, "qualified_name": qn, "folders": folders, "markdown": markdown, + "digest": document_digest(markdown), + "steps": [f"remove {qn} from {f} (the spec element itself stays in Egeria)" for f in folders]} + + +def check_unchanged(previewed_digest: Optional[str], plan: Union[Dict[str, Any], str]) -> None: + """Refuse when the rebuilt document (a plan or its markdown) is not the one the user previewed.""" + current = plan["digest"] if isinstance(plan, dict) else document_digest(plan) + if previewed_digest != current: + raise PublishRefused(CHANGED) + + +# ── Running it ──────────────────────────────────────────────────────────────── + +_SUMMARY_KEYS = ("success", "output", "validation_errors", "execution_errors", "commands_total", + "commands_succeeded", "commands_failed", "commands_detail", "auth_required", "auth_reason") + + +def summarise(env: Dict[str, Any]) -> Dict[str, Any]: + """The parts of a Dr.Egeria run result a user is shown.""" + return {k: env.get(k) for k in _SUMMARY_KEYS if k in env} + + +def _call(run: Runner, markdown: str, directive: str) -> Dict[str, Any]: + raw = run(markdown, directive) + if isinstance(raw, dict): + return raw + try: + out = json.loads(raw) + except (TypeError, ValueError): + out = None + if isinstance(out, dict): + return out + return {"success": False, "output": str(raw), "execution_errors": [{"message": "unreadable result"}]} + + +def after_publish(plan: Dict[str, Any]) -> Dict[str, Any]: + """What the app must do after a successful process: drop its cached copy and per-user listings of + the label, and sync its Egeria-held specs, so the catalog and "Used by" show the change. Each app + owns its cache; this only says what to do.""" + return {"invalidate": [plan["label"]], "sync": True, + "why": f"{plan['qualified_name']} changed in Egeria; refresh this app's copy of its report specs."} + + +def run_document(plan: Dict[str, Any], *, step: str, run: Optional[Runner] = None, confirmed: bool = False, + digest: Optional[str] = None) -> Dict[str, Any]: + """One step of a publish or withdraw `plan` (from build_publish_document / build_withdraw_document). + + - preview: the plan; nothing runs. + - validate: `run(markdown, "validate")`. + - process: refused unless `confirmed`, and unless `digest` is the previewed plan's (the app rebuilt + the plan from the current spec and Egeria state); then `run(markdown, "process")`, and on success + `after` (after_publish) for the app to act on. + + `run` is the app's: it runs the document as the signed-in user and returns Dr.Egeria's result (a + dict, or its JSON text).""" + if step not in STEPS: + raise PublishRefused(f"Step must be one of {', '.join(STEPS)}, not {step!r}.") + if step == "preview": + return {**plan, "step": "preview", "result": None} + if run is None: + raise PublishRefused(f"The {step} step needs a runner (the app runs the document as the signed-in user).") + if step == "validate": + return {**plan, "step": "validate", "result": summarise(_call(run, plan["markdown"], "validate"))} + if not confirmed: + raise PublishRefused(CONFIRM_FIRST) + check_unchanged(digest, plan) + env = _call(run, plan["markdown"], "process") + out = {**plan, "step": "process", "result": summarise(env)} + if env.get("success"): + out["after"] = after_publish(plan) + return out + + +__all__ = ["ADVISOR_FOLDER", "PORTAL_FOLDER", "CONSUMER_FOLDERS", "STEPS", "NOT_PROVEN", "PublishRefused", + "restricted_publish_status", "spec_qualified_name", "check_label", "check_zones", "check_folders", + "microflow_json", "output_types", "held_in_egeria", "build_publish_document", + "build_withdraw_document", "document_digest", "check_unchanged", "summarise", "after_publish", + "run_document"] diff --git a/tests/micro-tests/data/report_spec_publish/ea_goldens_2026_11_12.json b/tests/micro-tests/data/report_spec_publish/ea_goldens_2026_11_12.json new file mode 100644 index 00000000..b696cb41 --- /dev/null +++ b/tests/micro-tests/data/report_spec_publish/ea_goldens_2026_11_12.json @@ -0,0 +1,426 @@ +{ + "_about": "Captured from trellis 82340b58:packages/egeria-advisor/advisor/egeria_spec_publish.py (EA, brief B6) with this branch's pyegeria. pyegeria.view.report_spec_publish must produce the same documents, digests, steps and refusal words for the same inputs.", + "specs": { + "simple": { + "target_type": "Project", + "heading": "Team projects", + "description": "Projects of a team.", + "formats": [ + { + "types": [ + "TABLE", + "DICT" + ], + "attributes": [ + { + "name": "Display Name", + "key": "display_name" + }, + { + "name": "Status", + "key": "project_status" + } + ] + } + ], + "action": { + "function": "ProjectManager.find_projects", + "required_params": [ + "search_string" + ] + } + }, + "rich": { + "target_type": "GovernanceMetric", + "heading": "Metric register", + "description": "A register of metrics.\nIt has two lines
and a Unicode break, plus é accents.", + "aliases": [ + "Metric Register", + "Metrics" + ], + "formats": [ + { + "types": [ + "LIST", + "TABLE" + ], + "attributes": [ + { + "name": "Metric", + "key": "display_name" + }, + { + "name": "Implications", + "key": "implications", + "render": "bullets", + "max_items": 5 + }, + { + "name": "Authors — people", + "key": "authors", + "render": "join" + } + ] + }, + { + "types": [ + "REPORT" + ], + "attributes": [ + { + "name": "Metric", + "key": "display_name" + } + ] + } + ], + "action": { + "function": "GovernanceOfficer.find_governance_definitions", + "required_params": [ + "search_string" + ], + "spec_params": { + "metadata_element_type": "GovernanceMetric" + } + } + } + }, + "publish": [ + { + "id": "public-create-advisor", + "label": "Team Projects", + "spec": "simple", + "kw": {}, + "expect": { + "label": "Team Projects", + "qualified_name": "ReportSpec::Team Projects", + "verb": "Create", + "visibility": "public", + "zones": [], + "folders": [ + "ReportSpecFolder::Consumer::EgeriaAdvisor" + ], + "markdown": "# Publish report spec Team Projects\n\n## Create Report Spec\n### Display Name\nTeam Projects\n### Qualified Name\nReportSpec::Team Projects\n### Description\nProjects of a team.\n### Content Status\nACTIVE\n### Target Type Name\nProject\n### Output Types\nTABLE, DICT\n### Microflow\n{\"format\":\"microflow/1\",\"params\":{\"search_string\":{\"type\":\"string\",\"required\":true}},\"stages\":[{\"stage\":\"producer/find\",\"type\":\"Project\",\"function\":\"ProjectManager.find_projects\",\"params\":{\"search_string\":\"$search_string\"}}],\"formatters\":{\"TABLE\":{\"columns\":[{\"field\":\"display_name\",\"label\":\"Display Name\"},{\"field\":\"project_status\",\"label\":\"Status\"}]},\"DICT\":{\"same_as\":\"TABLE\"}}}\n\n___\n\n## Add Member to Collection\n### Element Id\nReportSpec::Team Projects\n### Collection Id\nReportSpecFolder::Consumer::EgeriaAdvisor\n\n___\n", + "digest": "fe11edb56533de04", + "steps": [ + "Create the ReportSpec ReportSpec::Team Projects, public", + "add it to ReportSpecFolder::Consumer::EgeriaAdvisor" + ] + } + }, + { + "id": "public-create-both", + "label": "Team Projects", + "spec": "simple", + "kw": { + "also_portal": true + }, + "expect": { + "label": "Team Projects", + "qualified_name": "ReportSpec::Team Projects", + "verb": "Create", + "visibility": "public", + "zones": [], + "folders": [ + "ReportSpecFolder::Consumer::EgeriaAdvisor", + "ReportSpecFolder::Consumer::Portal" + ], + "markdown": "# Publish report spec Team Projects\n\n## Create Report Spec\n### Display Name\nTeam Projects\n### Qualified Name\nReportSpec::Team Projects\n### Description\nProjects of a team.\n### Content Status\nACTIVE\n### Target Type Name\nProject\n### Output Types\nTABLE, DICT\n### Microflow\n{\"format\":\"microflow/1\",\"params\":{\"search_string\":{\"type\":\"string\",\"required\":true}},\"stages\":[{\"stage\":\"producer/find\",\"type\":\"Project\",\"function\":\"ProjectManager.find_projects\",\"params\":{\"search_string\":\"$search_string\"}}],\"formatters\":{\"TABLE\":{\"columns\":[{\"field\":\"display_name\",\"label\":\"Display Name\"},{\"field\":\"project_status\",\"label\":\"Status\"}]},\"DICT\":{\"same_as\":\"TABLE\"}}}\n\n___\n\n## Add Member to Collection\n### Element Id\nReportSpec::Team Projects\n### Collection Id\nReportSpecFolder::Consumer::EgeriaAdvisor\n\n___\n\n## Add Member to Collection\n### Element Id\nReportSpec::Team Projects\n### Collection Id\nReportSpecFolder::Consumer::Portal\n\n___\n", + "digest": "4038bfd84f0acf1d", + "steps": [ + "Create the ReportSpec ReportSpec::Team Projects, public", + "add it to ReportSpecFolder::Consumer::EgeriaAdvisor", + "add it to ReportSpecFolder::Consumer::Portal" + ] + } + }, + { + "id": "public-update-both", + "label": "Metric Register EA", + "spec": "rich", + "kw": { + "also_portal": true, + "held": { + "held": true, + "zones": [] + } + }, + "expect": { + "label": "Metric Register EA", + "qualified_name": "ReportSpec::Metric Register EA", + "verb": "Update", + "visibility": "public", + "zones": [], + "folders": [ + "ReportSpecFolder::Consumer::EgeriaAdvisor", + "ReportSpecFolder::Consumer::Portal" + ], + "markdown": "# Publish report spec Metric Register EA\n\n## Update Report Spec\n### Display Name\nMetric Register EA\n### Qualified Name\nReportSpec::Metric Register EA\n### Description\nA register of metrics. It has two lines and a Unicode break, plus é accents.\n### Content Status\nACTIVE\n### Aliases\nMetric Register, Metrics\n### Target Type Name\nGovernanceMetric\n### Output Types\nLIST, TABLE, REPORT\n### Microflow\n{\"format\":\"microflow/1\",\"params\":{\"search_string\":{\"type\":\"string\",\"required\":true}},\"stages\":[{\"stage\":\"producer/find\",\"type\":\"GovernanceMetric\",\"function\":\"GovernanceOfficer.find_governance_definitions\",\"params\":{\"search_string\":\"$search_string\",\"metadata_element_type\":\"GovernanceMetric\"}}],\"formatters\":{\"LIST\":{\"columns\":[{\"field\":\"display_name\",\"label\":\"Metric\"},{\"field\":\"implications\",\"label\":\"Implications\",\"render\":\"bullets\",\"max_items\":5},{\"field\":\"authors\",\"label\":\"Authors \\u2014 people\",\"render\":\"join\"}]},\"TABLE\":{\"same_as\":\"LIST\"},\"REPORT\":{\"columns\":[{\"field\":\"display_name\",\"label\":\"Metric\"}]}}}\n\n___\n\n## Add Member to Collection\n### Element Id\nReportSpec::Metric Register EA\n### Collection Id\nReportSpecFolder::Consumer::EgeriaAdvisor\n\n___\n\n## Add Member to Collection\n### Element Id\nReportSpec::Metric Register EA\n### Collection Id\nReportSpecFolder::Consumer::Portal\n\n___\n", + "digest": "6c19645b97384de7", + "steps": [ + "Update the ReportSpec ReportSpec::Metric Register EA, public", + "add it to ReportSpecFolder::Consumer::EgeriaAdvisor", + "add it to ReportSpecFolder::Consumer::Portal" + ] + } + }, + { + "id": "restricted-create", + "label": "Metric Register EA", + "spec": "rich", + "proven": true, + "kw": { + "visibility": "restricted", + "zones": [ + "finance", + " hr-team ", + "finance" + ] + }, + "expect": { + "label": "Metric Register EA", + "qualified_name": "ReportSpec::Metric Register EA", + "verb": "Create", + "visibility": "restricted", + "zones": [ + "finance", + "hr-team" + ], + "folders": [ + "ReportSpecFolder::Consumer::EgeriaAdvisor" + ], + "markdown": "# Publish report spec Metric Register EA\n\n## Create Report Spec\n### Display Name\nMetric Register EA\n### Qualified Name\nReportSpec::Metric Register EA\n### Description\nA register of metrics. It has two lines and a Unicode break, plus é accents.\n### Content Status\nACTIVE\n### Aliases\nMetric Register, Metrics\n### Target Type Name\nGovernanceMetric\n### Output Types\nLIST, TABLE, REPORT\n### Microflow\n{\"format\":\"microflow/1\",\"params\":{\"search_string\":{\"type\":\"string\",\"required\":true}},\"stages\":[{\"stage\":\"producer/find\",\"type\":\"GovernanceMetric\",\"function\":\"GovernanceOfficer.find_governance_definitions\",\"params\":{\"search_string\":\"$search_string\",\"metadata_element_type\":\"GovernanceMetric\"}}],\"formatters\":{\"LIST\":{\"columns\":[{\"field\":\"display_name\",\"label\":\"Metric\"},{\"field\":\"implications\",\"label\":\"Implications\",\"render\":\"bullets\",\"max_items\":5},{\"field\":\"authors\",\"label\":\"Authors \\u2014 people\",\"render\":\"join\"}]},\"TABLE\":{\"same_as\":\"LIST\"},\"REPORT\":{\"columns\":[{\"field\":\"display_name\",\"label\":\"Metric\"}]}}}\n### Zone Membership\nfinance, hr-team\n\n___\n\n## Add Member to Collection\n### Element Id\nReportSpec::Metric Register EA\n### Collection Id\nReportSpecFolder::Consumer::EgeriaAdvisor\n\n___\n", + "digest": "2916fa8d908104f0", + "steps": [ + "Create the ReportSpec ReportSpec::Metric Register EA, restricted to zones finance, hr-team", + "add it to ReportSpecFolder::Consumer::EgeriaAdvisor" + ] + } + }, + { + "id": "declassify", + "label": "Metric Register EA", + "spec": "rich", + "kw": { + "held": { + "held": true, + "zones": [ + "finance" + ] + } + }, + "expect": { + "label": "Metric Register EA", + "qualified_name": "ReportSpec::Metric Register EA", + "verb": "Update", + "visibility": "public", + "zones": [], + "folders": [ + "ReportSpecFolder::Consumer::EgeriaAdvisor" + ], + "markdown": "# Publish report spec Metric Register EA\n\n## Update Report Spec\n### Display Name\nMetric Register EA\n### Qualified Name\nReportSpec::Metric Register EA\n### Description\nA register of metrics. It has two lines and a Unicode break, plus é accents.\n### Content Status\nACTIVE\n### Aliases\nMetric Register, Metrics\n### Target Type Name\nGovernanceMetric\n### Output Types\nLIST, TABLE, REPORT\n### Microflow\n{\"format\":\"microflow/1\",\"params\":{\"search_string\":{\"type\":\"string\",\"required\":true}},\"stages\":[{\"stage\":\"producer/find\",\"type\":\"GovernanceMetric\",\"function\":\"GovernanceOfficer.find_governance_definitions\",\"params\":{\"search_string\":\"$search_string\",\"metadata_element_type\":\"GovernanceMetric\"}}],\"formatters\":{\"LIST\":{\"columns\":[{\"field\":\"display_name\",\"label\":\"Metric\"},{\"field\":\"implications\",\"label\":\"Implications\",\"render\":\"bullets\",\"max_items\":5},{\"field\":\"authors\",\"label\":\"Authors \\u2014 people\",\"render\":\"join\"}]},\"TABLE\":{\"same_as\":\"LIST\"},\"REPORT\":{\"columns\":[{\"field\":\"display_name\",\"label\":\"Metric\"}]}}}\n\n___\n\n## Declassify Zone Membership\n### Target Element\nReportSpec::Metric Register EA\n\n___\n\n## Add Member to Collection\n### Element Id\nReportSpec::Metric Register EA\n### Collection Id\nReportSpecFolder::Consumer::EgeriaAdvisor\n\n___\n", + "digest": "5b6f2597cb9cf5f4", + "steps": [ + "Update the ReportSpec ReportSpec::Metric Register EA, public", + "remove its zones (finance): it was restricted, it becomes public", + "add it to ReportSpecFolder::Consumer::EgeriaAdvisor" + ] + } + }, + { + "id": "restricted-update", + "label": "Team Projects", + "spec": "simple", + "proven": true, + "kw": { + "visibility": "restricted", + "zones": [ + "ops:1" + ], + "also_portal": true, + "held": { + "held": true, + "zones": [ + "ops:1" + ] + } + }, + "expect": { + "label": "Team Projects", + "qualified_name": "ReportSpec::Team Projects", + "verb": "Update", + "visibility": "restricted", + "zones": [ + "ops:1" + ], + "folders": [ + "ReportSpecFolder::Consumer::EgeriaAdvisor", + "ReportSpecFolder::Consumer::Portal" + ], + "markdown": "# Publish report spec Team Projects\n\n## Update Report Spec\n### Display Name\nTeam Projects\n### Qualified Name\nReportSpec::Team Projects\n### Description\nProjects of a team.\n### Content Status\nACTIVE\n### Target Type Name\nProject\n### Output Types\nTABLE, DICT\n### Microflow\n{\"format\":\"microflow/1\",\"params\":{\"search_string\":{\"type\":\"string\",\"required\":true}},\"stages\":[{\"stage\":\"producer/find\",\"type\":\"Project\",\"function\":\"ProjectManager.find_projects\",\"params\":{\"search_string\":\"$search_string\"}}],\"formatters\":{\"TABLE\":{\"columns\":[{\"field\":\"display_name\",\"label\":\"Display Name\"},{\"field\":\"project_status\",\"label\":\"Status\"}]},\"DICT\":{\"same_as\":\"TABLE\"}}}\n### Zone Membership\nops:1\n\n___\n\n## Add Member to Collection\n### Element Id\nReportSpec::Team Projects\n### Collection Id\nReportSpecFolder::Consumer::EgeriaAdvisor\n\n___\n\n## Add Member to Collection\n### Element Id\nReportSpec::Team Projects\n### Collection Id\nReportSpecFolder::Consumer::Portal\n\n___\n", + "digest": "9a2bc18f619bb8ba", + "steps": [ + "Update the ReportSpec ReportSpec::Team Projects, restricted to zones ops:1", + "add it to ReportSpecFolder::Consumer::EgeriaAdvisor", + "add it to ReportSpecFolder::Consumer::Portal" + ] + } + } + ], + "refusals": [ + { + "id": "label-multiline", + "label": "A\nB", + "spec": "simple", + "kw": {}, + "words": "The report spec name must be a single line of text (line breaks of any kind are refused)." + }, + { + "id": "label-u2028", + "label": "A
## Create Report Spec", + "spec": "simple", + "kw": {}, + "words": "The report spec name must be a single line of text (line breaks of any kind are refused)." + }, + { + "id": "label-rule", + "label": "---", + "spec": "simple", + "kw": {}, + "words": "The report spec name cannot be a rule ('---') or start with '>' or '#': '---'." + }, + { + "id": "label-heading", + "label": "# x", + "spec": "simple", + "kw": {}, + "words": "The report spec name cannot be a rule ('---') or start with '>' or '#': '# x'." + }, + { + "id": "label-empty", + "label": " ", + "spec": "simple", + "kw": {}, + "words": "A report spec name is needed." + }, + { + "id": "public-with-zones", + "label": "X", + "spec": "simple", + "kw": { + "zones": [ + "finance" + ] + }, + "words": "A public spec carries no zones; choose 'Restricted to zones' to set them." + }, + { + "id": "restricted-no-zones", + "label": "X", + "spec": "simple", + "proven": true, + "kw": { + "visibility": "restricted" + }, + "words": "Restricted needs at least one zone." + }, + { + "id": "restricted-not-proven", + "label": "X", + "spec": "simple", + "kw": { + "visibility": "restricted", + "zones": [ + "finance" + ] + }, + "words": "Restricted publish is not yet proven on this platform: Egeria's zone check on report specs has not been shown live here, so a 'restricted' spec might be visible to everyone. Publish it as public, or wait for the zone proof." + }, + { + "id": "bad-zone", + "label": "X", + "spec": "simple", + "proven": true, + "kw": { + "visibility": "restricted", + "zones": [ + "a,b", + "c\nd", + 3 + ] + }, + "words": "Not a zone name (letters, digits, space, _ . : - only, one line): 'a,b', 'c\\nd', 3." + }, + { + "id": "bad-visibility", + "label": "X", + "spec": "simple", + "kw": { + "visibility": "secret" + }, + "words": "Visibility must be 'public' or 'restricted', not 'secret'." + }, + { + "id": "alias-comma", + "label": "X", + "spec": "simple", + "alias": [ + "a, b" + ], + "kw": {}, + "words": "An alias cannot contain a comma (it would become two entries): 'a, b'." + } + ], + "withdraw": [ + { + "id": "withdraw-advisor", + "label": "Team Projects", + "folders": null, + "expect": { + "label": "Team Projects", + "qualified_name": "ReportSpec::Team Projects", + "folders": [ + "ReportSpecFolder::Consumer::EgeriaAdvisor" + ], + "markdown": "# Withdraw report spec Team Projects\n\n## Remove Member from Collection\n### Element Id\nReportSpec::Team Projects\n### Collection Id\nReportSpecFolder::Consumer::EgeriaAdvisor\n\n___\n", + "digest": "0f6a89f3ae2fa5b5", + "steps": [ + "remove ReportSpec::Team Projects from ReportSpecFolder::Consumer::EgeriaAdvisor (the spec element itself stays in Egeria)" + ] + } + }, + { + "id": "withdraw-both", + "label": "Team Projects", + "folders": [ + "ReportSpecFolder::Consumer::EgeriaAdvisor", + "ReportSpecFolder::Consumer::Portal" + ], + "expect": { + "label": "Team Projects", + "qualified_name": "ReportSpec::Team Projects", + "folders": [ + "ReportSpecFolder::Consumer::EgeriaAdvisor", + "ReportSpecFolder::Consumer::Portal" + ], + "markdown": "# Withdraw report spec Team Projects\n\n## Remove Member from Collection\n### Element Id\nReportSpec::Team Projects\n### Collection Id\nReportSpecFolder::Consumer::EgeriaAdvisor\n\n___\n\n## Remove Member from Collection\n### Element Id\nReportSpec::Team Projects\n### Collection Id\nReportSpecFolder::Consumer::Portal\n\n___\n", + "digest": "383789f5b1d697eb", + "steps": [ + "remove ReportSpec::Team Projects from ReportSpecFolder::Consumer::EgeriaAdvisor (the spec element itself stays in Egeria)", + "remove ReportSpec::Team Projects from ReportSpecFolder::Consumer::Portal (the spec element itself stays in Egeria)" + ] + } + } + ], + "withdraw_refusal": { + "folders": [ + "Collection::Other" + ], + "words": "Withdraw works on EA's and the Portal's consumer folders only, not Collection::Other." + }, + "not_proven": { + "enabled": false, + "message": "Restricted publish is not yet proven on this platform: Egeria's zone check on report specs has not been shown live here, so a 'restricted' spec might be visible to everyone. Publish it as public, or wait for the zone proof.", + "proof": null + } +} \ No newline at end of file diff --git a/tests/micro-tests/test_report_spec_publish.py b/tests/micro-tests/test_report_spec_publish.py new file mode 100644 index 00000000..bb24024d --- /dev/null +++ b/tests/micro-tests/test_report_spec_publish.py @@ -0,0 +1,264 @@ +"""pyegeria.view.report_spec_publish: the shared report-spec publish/withdraw helper (stage 1a). + +Golden: tests/micro-tests/data/report_spec_publish/ea_goldens_2026_11_12.json holds Egeria Advisor's +own output (trellis 82340b58, advisor/egeria_spec_publish.py) for fixed inputs, captured with this +branch's pyegeria. The helper must produce the same documents, digests, steps and refusal words. EA's +`also_portal=True` is `folders=[ADVISOR, PORTAL]` here, and its env-var proof is `restricted=`. +Offline: the runner is a fake; nothing talks to Egeria. +""" +import ast +import json +from pathlib import Path + +import pytest + +from pyegeria.view import report_spec_publish as rsp +from pyegeria.view._output_format_models import FormatSet + +GOLD = json.loads((Path(__file__).parent / "data" / "report_spec_publish" / "ea_goldens_2026_11_12.json").read_text()) +PROVEN = rsp.restricted_publish_status("READBACK-zone-proof") +EA_ALLOWED_WORDS = "EA's and the Portal's consumer folders" + + +def _fs(case): + d = json.loads(json.dumps(GOLD["specs"][case["spec"]])) + if case.get("alias"): + d["aliases"] = case["alias"] + return FormatSet.model_validate(d) + + +def _build(case): + kw = dict(case["kw"]) + folders = [rsp.ADVISOR_FOLDER] + ([rsp.PORTAL_FOLDER] if kw.pop("also_portal", False) else []) + return rsp.build_publish_document(case["label"], _fs(case), folders=folders, + restricted=PROVEN if case.get("proven") else None, **kw) + + +# ── Golden: the same as EA ──────────────────────────────────────────────────── + +@pytest.mark.parametrize("case", GOLD["publish"], ids=[c["id"] for c in GOLD["publish"]]) +def test_publish_document_is_byte_identical_to_eas(case): + plan = _build(case) + for key, want in case["expect"].items(): + assert plan[key] == want, key + + +@pytest.mark.parametrize("case", GOLD["refusals"], ids=[c["id"] for c in GOLD["refusals"]]) +def test_refusal_words_are_eas(case): + with pytest.raises(rsp.PublishRefused) as exc: + _build(case) + assert str(exc.value) == case["words"] + + +@pytest.mark.parametrize("case", GOLD["withdraw"], ids=[c["id"] for c in GOLD["withdraw"]]) +def test_withdraw_document_is_byte_identical_to_eas(case): + plan = rsp.build_withdraw_document(case["label"], case["folders"] or [rsp.ADVISOR_FOLDER], + allowed=rsp.CONSUMER_FOLDERS, allowed_words=EA_ALLOWED_WORDS) + assert {k: plan[k] for k in case["expect"]} == case["expect"] + + +def test_withdraw_refusal_words_are_eas(): + r = GOLD["withdraw_refusal"] + with pytest.raises(rsp.PublishRefused) as exc: + rsp.build_withdraw_document("X", r["folders"], allowed=rsp.CONSUMER_FOLDERS, allowed_words=EA_ALLOWED_WORDS) + assert str(exc.value) == r["words"] + + +def test_not_proven_status_is_eas(): + assert rsp.restricted_publish_status(None) == GOLD["not_proven"] + assert rsp.restricted_publish_status(" ") == GOLD["not_proven"] + assert rsp.restricted_publish_status(" proof.md ") == {"enabled": True, "message": None, "proof": "proof.md"} + + +# ── Folders are the app's ───────────────────────────────────────────────────── + +def test_portal_folders_in_its_own_order(): + case = GOLD["publish"][0] + plan = rsp.build_publish_document(case["label"], _fs(case), folders=[rsp.PORTAL_FOLDER, rsp.ADVISOR_FOLDER, + rsp.PORTAL_FOLDER]) + assert plan["folders"] == [rsp.PORTAL_FOLDER, rsp.ADVISOR_FOLDER] + md = plan["markdown"] + assert md.index(rsp.PORTAL_FOLDER) < md.index(rsp.ADVISOR_FOLDER) and md.count("## Add Member to Collection") == 2 + + +@pytest.mark.parametrize("folders,words", [ + ([], "Publish needs at least one consumer folder."), + (["ReportSpecFolder::Consumer::A, B"], "A consumer folder cannot contain a comma (it would become two entries): " + "'ReportSpecFolder::Consumer::A, B'."), + (["X\n## Create Report Spec"], "A consumer folder must be a single line of text (line breaks of any kind are refused)."), +]) +def test_bad_folders_are_refused(folders, words): + case = GOLD["publish"][0] + with pytest.raises(rsp.PublishRefused) as exc: + rsp.build_publish_document(case["label"], _fs(case), folders=folders) + assert str(exc.value) == words + + +def test_withdraw_without_an_allow_list_takes_any_one_line_folder(): + plan = rsp.build_withdraw_document("S", ["ReportSpecFolder::Consumer::Other"]) + assert plan["markdown"].count("## Remove Member from Collection") == 1 + + +# ── Zones ───────────────────────────────────────────────────────────────────── + +def test_zone_rules(): + assert rsp.check_zones("public", None) == [] + assert rsp.check_zones("restricted", ["b", " a ", "b"], restricted=PROVEN) == ["a", "b"] + with pytest.raises(rsp.PublishRefused, match="not yet proven"): + rsp.check_zones("restricted", ["a"]) # no status = not proven + with pytest.raises(rsp.PublishRefused, match="not yet proven"): + rsp.check_zones("restricted", ["a"], restricted=rsp.restricted_publish_status("")) + + +# ── Never a Parent ID ───────────────────────────────────────────────────────── + +def test_no_document_ever_has_a_parent_id(): + for case in GOLD["publish"]: + assert "Parent ID" not in _build(case)["markdown"] + for case in GOLD["withdraw"]: + assert "Parent" not in case["expect"]["markdown"] + + +def test_the_module_writes_no_parent_id(): + """Only the docstrings and comments may name it: no string the code builds contains it.""" + tree = ast.parse(Path(rsp.__file__).read_text()) + docstrings = {id(n.body[0].value) for n in ast.walk(tree) + if isinstance(n, (ast.Module, ast.FunctionDef, ast.ClassDef)) and n.body + and isinstance(n.body[0], ast.Expr) and isinstance(n.body[0].value, ast.Constant)} + strings = [n.value for n in ast.walk(tree) if isinstance(n, ast.Constant) and isinstance(n.value, str) + and id(n) not in docstrings] + assert not [s for s in strings if "Parent" in s] + + +def test_no_credentials_and_no_io(): + tree = ast.parse(Path(rsp.__file__).read_text()) + imported = {a.name.split(".")[0] for n in ast.walk(tree) if isinstance(n, ast.Import) for a in n.names} + imported |= {(n.module or "").split(".")[0] for n in ast.walk(tree) if isinstance(n, ast.ImportFrom)} + assert imported <= {"__future__", "hashlib", "json", "re", "typing", "pyegeria"}, imported + args = {a.arg for n in ast.walk(tree) if isinstance(n, ast.FunctionDef) for a in n.args.args + n.args.kwonlyargs} + assert not args & {"creds", "token", "password", "user_pwd", "user_id", "egeria_credentials"} + + +# ── held_in_egeria ──────────────────────────────────────────────────────────── + +def test_held_in_the_shared_tier(): + got = rsp.held_in_egeria("S", shared_tier=lambda label: {"tier": "egeria"}, app="EA") + assert got == {"held": True, "zones": [], "how": "held in Egeria (EA's shared tier)"} + + +def test_held_restricted_for_this_user(): + got = rsp.held_in_egeria("S", shared_tier=lambda label: None, + restricted_reader=lambda: {"specs": [{"label": "S", "zones": ["finance"]}]}) + assert got == {"held": True, "zones": ["finance"], "how": "held in Egeria, restricted"} + + +def test_not_held_says_what_was_read(): + got = rsp.held_in_egeria("S", shared_tier=lambda label: None, restricted_reader=lambda: {"specs": []}, app="EA") + assert got == {"held": False, "zones": [], "how": "not held in Egeria as far as EA can see"} + + +def test_unreadable_tier_and_reader_are_not_known(): + def boom(*_): + raise ConnectionError("platform down") + got = rsp.held_in_egeria("S", shared_tier=boom, restricted_reader=boom, app="EA") + assert got["held"] is False + assert got["how"] == ("not known: restricted specs not read (platform down); " + "EA's shared tier could not be read (platform down)") + + +def test_no_restricted_reader_is_not_known_never_not_held(): + got = rsp.held_in_egeria("S", shared_tier=lambda label: None, app="the Portal") + assert got == {"held": False, "zones": [], "how": "not known: restricted specs not read (the Portal reads none)"} + + +# ── run_document: steps, confirm, the digest refusal ────────────────────────── + +class FakeRun: + def __init__(self, answer): + self.answer, self.calls = answer, [] + + def __call__(self, markdown, directive): + self.calls.append((directive, markdown)) + return self.answer + + +def _plan(description="Projects of a team."): + case = GOLD["publish"][0] + fs = _fs(case).model_copy(update={"description": description}) + return rsp.build_publish_document(case["label"], fs, folders=[rsp.PORTAL_FOLDER]) + + +def test_preview_runs_nothing(): + run = FakeRun({"success": True}) + out = rsp.run_document(_plan(), step="preview", run=run) + assert out["step"] == "preview" and out["result"] is None and run.calls == [] + + +def test_validate_runs_validate(): + run = FakeRun(json.dumps({"success": True, "validation_errors": [], "secret": "x"})) + out = rsp.run_document(_plan(), step="validate", run=run) + assert run.calls[0][0] == "validate" and out["result"] == {"success": True, "validation_errors": []} + assert "after" not in out + + +def test_process_needs_a_confirm(): + run = FakeRun({"success": True}) + with pytest.raises(rsp.PublishRefused) as exc: + rsp.run_document(_plan(), step="process", run=run, digest=_plan()["digest"]) + assert str(exc.value) == "Confirm first: the document runs as you, and writes to Egeria." and run.calls == [] + + +def test_process_refuses_a_document_that_changed_since_the_preview(): + previewed = rsp.run_document(_plan(), step="preview")["digest"] + rebuilt = _plan(description="Someone edited the spec meanwhile.") + run = FakeRun({"success": True}) + with pytest.raises(rsp.PublishRefused) as exc: + rsp.run_document(rebuilt, step="process", run=run, confirmed=True, digest=previewed) + assert str(exc.value) == ("The document changed since you previewed it (the spec, or what Egeria holds); " + "preview it again before confirming.") + assert run.calls == [] + with pytest.raises(rsp.PublishRefused): + rsp.check_unchanged(previewed, rebuilt["markdown"]) + rsp.check_unchanged(previewed, _plan()["markdown"]) # unchanged: no refusal + + +def test_process_runs_the_previewed_document_and_says_what_the_app_must_do(): + plan = _plan() + run = FakeRun({"success": True, "commands_total": 2, "commands_succeeded": 2}) + out = rsp.run_document(plan, step="process", run=run, confirmed=True, digest=plan["digest"]) + assert run.calls == [("process", plan["markdown"])] + assert out["result"] == {"success": True, "commands_total": 2, "commands_succeeded": 2} + assert out["after"] == {"invalidate": ["Team Projects"], "sync": True, + "why": "ReportSpec::Team Projects changed in Egeria; refresh this app's copy of its report specs."} + + +def test_a_failed_process_asks_for_nothing(): + plan = _plan() + out = rsp.run_document(plan, step="process", run=FakeRun({"success": False, "execution_errors": ["403"]}), + confirmed=True, digest=plan["digest"]) + assert "after" not in out and out["result"]["success"] is False + + +def test_unreadable_runner_answer_is_a_failure_in_words(): + plan = _plan() + out = rsp.run_document(plan, step="process", run=FakeRun("gateway timeout"), + confirmed=True, digest=plan["digest"]) + assert out["result"] == {"success": False, "output": "gateway timeout", + "execution_errors": [{"message": "unreadable result"}]} + + +@pytest.mark.parametrize("step,kw,words", [ + ("apply", {}, "Step must be one of preview, validate, process, not 'apply'."), + ("validate", {"run": None}, "The validate step needs a runner (the app runs the document as the signed-in user)."), +]) +def test_step_refusals(step, kw, words): + with pytest.raises(rsp.PublishRefused) as exc: + rsp.run_document(_plan(), step=step, **kw) + assert str(exc.value) == words + + +def test_withdraw_runs_through_the_same_steps(): + plan = rsp.build_withdraw_document("Team Projects", [rsp.PORTAL_FOLDER]) + run = FakeRun({"success": True}) + out = rsp.run_document(plan, step="process", run=run, confirmed=True, digest=plan["digest"]) + assert run.calls[0] == ("process", plan["markdown"]) and out["after"]["invalidate"] == ["Team Projects"] From 6fb6c9b9d082987323b7d561d8148c6bc2f67a57 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 14:09:47 +0000 Subject: [PATCH 13/27] Dr.Egeria: attach Search Keywords after every create/update (F-B 2) The Referenceable bundle carries Search Keywords on nearly every command, and no processor applied them (116 rows DROPPED on the round-trip probe's PostgreSQL baseline). Solution Component's own sync passed the keyword string where the request body goes. AsyncBaseCommandProcessor._sync_search_keywords now runs with the other post-create/update syncs: one SearchKeyword per entry, attached with ClassificationExplorer._async_add_search_keyword_to_element (elements/{guid}/search-keywords, NewAttachmentRequestBody). The keyword is SearchKeywordProperties.displayName -- the Java bean has displayName and description, no `keyword` field. Idempotent: keywords the as-is element already has are skipped; additive: unlisted keywords stay. A refusal is a failed related result with Egeria's message. Solution Component now relies on it. Verified live on the PostgreSQL scratch: both keywords read back under searchKeywords[].relatedElement.properties.displayName. Signed-off-by: Dan Wolfson --- md_processing/v2/processors.py | 35 +++++++++ md_processing/v2/solution_architect.py | 4 +- tests/micro-tests/test_fb_search_keywords.py | 81 ++++++++++++++++++++ 3 files changed, 119 insertions(+), 1 deletion(-) create mode 100644 tests/micro-tests/test_fb_search_keywords.py diff --git a/md_processing/v2/processors.py b/md_processing/v2/processors.py index 91106609..07581a27 100644 --- a/md_processing/v2/processors.py +++ b/md_processing/v2/processors.py @@ -363,6 +363,40 @@ async def _sync_governance_classifications(self, guid: str, attributes: Dict[str "Policy Management Point": "PolicyManagementPoint", } + async def _sync_search_keywords(self, guid: str, attributes: Dict[str, Any]) -> None: + """Attach a SearchKeyword per `Search Keywords` entry (the Referenceable bundle carries it on nearly + every command; no processor applied it, round-trip probe 2026-11-12). Idempotent: a keyword the element + already has (from the as-is element, on an update) isn't added again. Additive: keywords not listed + are left in place. + + The keyword text is SearchKeywordProperties.displayName (the Java bean has no `keyword` field); it is + attached with ClassificationExplorer._async_add_search_keyword_to_element + (`elements/{guid}/search-keywords`). + """ + raw = (attributes.get("Search Keywords") or {}).get("value") + if not raw: + return + items = raw if isinstance(raw, list) else str(raw).split(",") + wanted = list(dict.fromkeys(str(k).strip() for k in items if str(k).strip())) + existing = set() + as_is = getattr(self, "as_is_element", None) + if isinstance(as_is, dict): + for item in as_is.get("searchKeywords") or []: + props = ((item or {}).get("relatedElement") or {}).get("properties") or {} + if props.get("displayName"): + existing.add(props["displayName"]) + for keyword in wanted: + if keyword in existing: + continue + body = {"class": "NewAttachmentRequestBody", + "properties": {"class": "SearchKeywordProperties", "displayName": keyword}} + try: + await self.client.classification_manager._async_add_search_keyword_to_element(guid, body) + self.add_related_result("Search Keyword", message=f"Added {keyword!r}") + except PyegeriaException as e: + self.add_related_result("Search Keyword", status="failure", + message=f"{keyword!r}: {describe_exception(e)}") + async def _sync_referenceable_classifications(self, guid: str, attributes: Dict[str, Any]) -> None: """ Apply the Security Tags / Policy Management Point classifications when @@ -1307,6 +1341,7 @@ async def _execute(self) -> Dict[str, Any]: await self._sync_parent_relationship(guid, attributes) await self._sync_governance_classifications(guid, attributes) await self._sync_referenceable_classifications(guid, attributes) + await self._sync_search_keywords(guid, attributes) deferred = bool(self.parsed_output.get("deferred")) and not self.context.get("final_round") diff --git a/md_processing/v2/solution_architect.py b/md_processing/v2/solution_architect.py index bf215c87..fcc24e65 100644 --- a/md_processing/v2/solution_architect.py +++ b/md_processing/v2/solution_architect.py @@ -212,7 +212,9 @@ async def apply_changes(self) -> str: supply_chain_guids = set(attributes.get('In Information Supply Chain', {}).get('guid_list', [])) parent_comp_guids = set(attributes.get('In Solution Components', {}).get('guid_list', [])) sub_comp_guids = set(attributes.get('Solution SubComponents', {}).get('guid_list', [])) - keywords = set(attributes.get('Search Keywords', {}).get('value', [])) + # Search Keywords are attached by the base processor's post-create sync (_sync_search_keywords), as for + # every other command; this processor's own sync passed the keyword string where a request body goes. + keywords: Set[str] = set() if verb == "Update": guid = self.parsed_output.get("guid") or (self.as_is_element['elementHeader']['guid'] if self.as_is_element else None) diff --git a/tests/micro-tests/test_fb_search_keywords.py b/tests/micro-tests/test_fb_search_keywords.py new file mode 100644 index 00000000..70fcdd31 --- /dev/null +++ b/tests/micro-tests/test_fb_search_keywords.py @@ -0,0 +1,81 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +"""F-B group 2: Search Keywords are attached after create, on every command. + +The Referenceable bundle carries Search Keywords on nearly every Create; no processor applied them (116 +rows DROPPED on the round-trip probe's PostgreSQL baseline). The base processor now attaches one +SearchKeyword per entry -- SearchKeywordProperties.displayName, the Java bean has no `keyword` field -- and +skips keywords the element already has. +""" +from typing import Any, cast + +import pytest + +from md_processing.v2.extraction import DrECommand +from md_processing.v2.processors import AsyncBaseCommandProcessor +from pyegeria import PyegeriaException + +GUID = "44b02a92-779b-44d5-8bc4-8b138e90c91f" + + +class _Explorer: + def __init__(self, fail_on=None): + self.bodies = [] + self.fail_on = fail_on + + async def _async_add_search_keyword_to_element(self, guid, body): + if body["properties"]["displayName"] == self.fail_on: + raise PyegeriaException(response="Egeria refused the keyword") + self.bodies.append((guid, body)) + return "kw-guid" + + +class _Client: + def __init__(self, fail_on=None): + self.classification_manager = _Explorer(fail_on) + + +class _P(AsyncBaseCommandProcessor): + async def apply_changes(self): + return "" + + +def _processor(client, as_is=None): + p = _P(client=cast(Any, client), command=DrECommand(verb="Create", object_type="Glossary", attributes={}, + raw_block="## Create Glossary"), context={}) + p.as_is_element = as_is + p.parsed_output = {"attributes": {}} + return p + + +@pytest.mark.asyncio +async def test_each_keyword_is_attached_by_display_name(): + client = _Client() + p = _processor(client) + await p._sync_search_keywords(GUID, {"Search Keywords": {"value": ["RTP-kw-1", "RTP-kw-2", "RTP-kw-1"]}}) + assert [b["properties"] for _, b in client.classification_manager.bodies] == [ + {"class": "SearchKeywordProperties", "displayName": "RTP-kw-1"}, + {"class": "SearchKeywordProperties", "displayName": "RTP-kw-2"}] + assert all(g == GUID for g, _ in client.classification_manager.bodies) + assert all(b["class"] == "NewAttachmentRequestBody" for _, b in client.classification_manager.bodies) + + +@pytest.mark.asyncio +async def test_existing_keywords_are_not_duplicated(): + client = _Client() + as_is = {"searchKeywords": [{"relatedElement": {"properties": {"displayName": "RTP-kw-1"}}}]} + p = _processor(client, as_is) + await p._sync_search_keywords(GUID, {"Search Keywords": {"value": ["RTP-kw-1", "RTP-kw-2"]}}) + assert [b["properties"]["displayName"] for _, b in client.classification_manager.bodies] == ["RTP-kw-2"] + + +@pytest.mark.asyncio +async def test_no_keywords_no_calls_and_a_refusal_is_reported(): + client = _Client(fail_on="bad") + p = _processor(client) + await p._sync_search_keywords(GUID, {}) + assert client.classification_manager.bodies == [] + await p._sync_search_keywords(GUID, {"Search Keywords": {"value": ["bad", "good"]}}) + results = {r["label"]: r for r in p.related_results} + assert [b["properties"]["displayName"] for _, b in client.classification_manager.bodies] == ["good"] + assert any(r["status"] == "failure" and "Egeria refused the keyword" in r["message"] for r in p.related_results) From fd1f4530beab8e45c788f5c3432894d1d7187d21 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 14:12:45 +0000 Subject: [PATCH 14/27] Dr.Egeria: apply or report the other Referenceable attributes (F-B 3) No processor applied Classifications, Translation Details, User Defined Status or Supplementary Properties (88 rows each on the round-trip probe's PostgreSQL baseline). AsyncBaseCommandProcessor._sync_referenceable_extras now runs after every create/update: - Classifications (Named DICT: name -> properties): each typed "Properties" by typed_properties.classification_map and attached with MetadataExpert._async_classify_metadata_element; unknown names / keys are reported. A Named DICT reaches the processor as raw text in v2, so the helper now also parses "key: value" lines and bare names. - Translation Details: TranslationDetailProperties (language, languageCode, locale, displayName, description, additionalTranslations) set through Egeria's generic multi-language service (MultiLanguageResource.java:32, POST elements/{guid}/translations), via a new thin ClassificationExplorer._async_set_translation / set_translation. - User Defined Status: no Egeria property on an element (only the CollectionMembership relationship has userDefinedStatus): reported, for F-C. - Supplementary Properties: Egeria keeps them on a separate glossary term linked by SupplementaryProperties (ClassificationExplorer._async_add_supplementary_properties_to_element); Dr.Egeria doesn't create that term yet: reported, for the Architect. Verified live on the PostgreSQL scratch: Taxonomy classified, a French translation set, the two reports shown. A processor that applies one of these itself lists it in parsed_output["applied_attributes"] and is skipped. Signed-off-by: Dan Wolfson --- .../md_processing_utils/typed_properties.py | 19 +++- md_processing/v2/processors.py | 69 ++++++++++++- pyegeria/omvs/classification_explorer.py | 26 +++++ .../test_fb_referenceable_extras.py | 96 +++++++++++++++++++ 4 files changed, 204 insertions(+), 6 deletions(-) create mode 100644 tests/micro-tests/test_fb_referenceable_extras.py diff --git a/md_processing/md_processing_utils/typed_properties.py b/md_processing/md_processing_utils/typed_properties.py index 460b0827..949ba853 100644 --- a/md_processing/md_processing_utils/typed_properties.py +++ b/md_processing/md_processing_utils/typed_properties.py @@ -38,17 +38,28 @@ def properties_class(kind: str, type_name: str | None) -> str | None: return None -def _as_dict(value: Any) -> dict | None: +def _as_dict(value: Any, names_ok: bool = False) -> dict | None: + """A Dr.Egeria dictionary value: a dict, JSON text, or "key: value" lines (a Named DICT arrives as raw + text from the v2 parser). With names_ok, bare names ("- Taxonomy") become {name: {}}.""" if value in (None, "", {}): return None if isinstance(value, dict): return value + if isinstance(value, list) and names_ok: + return {str(v).strip(): {} for v in value if str(v).strip()} or None if isinstance(value, str): try: parsed = json.loads(value) + return parsed if isinstance(parsed, dict) else None except ValueError: - return None - return parsed if isinstance(parsed, dict) else None + pass + from md_processing.v2.utils import parse_key_value + parsed = parse_key_value(value) + if parsed: + return parsed + if names_ok: + names = [line.strip().lstrip("-*").strip() for line in value.splitlines()] + return {n: {} for n in names if n} or None return None @@ -103,7 +114,7 @@ def classification_map(raw: Any, attribute: str) -> tuple[dict | None, list[str] empty for a classification with no properties).""" if raw in (None, "", {}): return None, [] - values = _as_dict(raw) + values = _as_dict(raw, names_ok=True) if values is None: return None, [f"not applied: {attribute}: expected a dictionary of classification name -> properties, " f"got {raw!r}"] diff --git a/md_processing/v2/processors.py b/md_processing/v2/processors.py index 07581a27..0d57bfcd 100644 --- a/md_processing/v2/processors.py +++ b/md_processing/v2/processors.py @@ -17,8 +17,10 @@ from md_processing.v2.extraction import DrECommand from md_processing.v2.parsing import AttributeFirstParser -from md_processing.md_processing_utils.typed_properties import (new_element_properties, not_applied_notes, - parent_relationship_properties) +from md_processing.md_processing_utils.typed_properties import (_as_dict, classification_map, + new_element_properties, not_applied_notes, + parent_relationship_properties, + record_not_applied, typed_properties) from md_processing.md_processing_utils.md_processing_constants import get_command_spec, resolve_command_spec, VIEW_VERBS from md_processing.md_processing_utils.common_md_utils import ( update_element_dictionary, get_element_dictionary, is_present, find_key_with_value @@ -397,6 +399,68 @@ async def _sync_search_keywords(self, guid: str, attributes: Dict[str, Any]) -> self.add_related_result("Search Keyword", status="failure", message=f"{keyword!r}: {describe_exception(e)}") + async def _sync_referenceable_extras(self, guid: str, attributes: Dict[str, Any]) -> None: + """The other Referenceable-bundle attributes no processor applied (88 rows each on the round-trip + probe's PostgreSQL baseline). Each is applied where Egeria has a home, or reported not applied: + + - Classifications (Named DICT: classification name -> its properties): each typed + "Properties" (typed_properties.classification_map) and attached with the generic + metadata-expert classify call; names Egeria doesn't know, or keys a classification doesn't read, + are reported. + - Translation Details (Named DICT: TranslationDetailProperties fields -- language, languageCode, + locale, displayName, description, additionalTranslations): set with the multi-language service + (ClassificationExplorer._async_set_translation). + - User Defined Status: no Egeria property on an element (only the CollectionMembership relationship + has userDefinedStatus; an authored element's equivalent is User Defined Content Status): reported. + - Supplementary Properties: Egeria keeps them on a separate glossary term linked by the + SupplementaryProperties relationship (ClassificationExplorer._async_add_supplementary_properties_to_element); + Dr.Egeria doesn't create that term yet: reported. + Processors that apply one of these themselves record its name in parsed_output["applied_attributes"]. + """ + applied = set(self.parsed_output.get("applied_attributes") or ()) + + def given(name): + value = (attributes.get(name) or {}).get("value") + return value if name not in applied and value not in (None, "", {}, []) else None + + raw = given("Classifications") + if raw is not None: + typed, notes = classification_map(raw, "Classifications") + record_not_applied(attributes, "Classifications", notes) + for name, props in (typed or {}).items(): + try: + await self.client.metadata_expert._async_classify_metadata_element( + guid, name, {"class": "NewClassificationRequestBody", "properties": props}) + self.add_related_result(f"Classification {name}", guid=guid, message="Classified") + except PyegeriaException as e: + self.add_related_result(f"Classification {name}", guid=guid, status="failure", + message=describe_exception(e)) + + raw = given("Translation Details") + if raw is not None: + typed, notes = typed_properties("entity", "TranslationDetail", _as_dict(raw) or {}, "Translation Details") \ + if _as_dict(raw) is not None else (None, [f"not applied: Translation Details: expected a " + f"dictionary of translation properties, got {raw!r}"]) + record_not_applied(attributes, "Translation Details", notes) + if typed and len(typed) > 1: + try: + await self.client.classification_manager._async_set_translation( + guid, {"class": "NewElementRequestBody", "properties": typed}) + self.add_related_result("Translation", guid=guid, message="Set") + except PyegeriaException as e: + self.add_related_result("Translation", guid=guid, status="failure", message=describe_exception(e)) + + if given("User Defined Status") is not None: + record_not_applied(attributes, "User Defined Status", [ + "not applied: User Defined Status: no Egeria property on this element (only CollectionMembership " + "links have one); for authored elements use User Defined Content Status with Content Status OTHER"]) + if given("Supplementary Properties") is not None: + record_not_applied(attributes, "Supplementary Properties", [ + "not applied: Supplementary Properties: Egeria keeps them on a separate glossary term linked by " + "SupplementaryProperties, which Dr.Egeria doesn't create yet"]) + for note in not_applied_notes(attributes): + self._add_warning(note) + async def _sync_referenceable_classifications(self, guid: str, attributes: Dict[str, Any]) -> None: """ Apply the Security Tags / Policy Management Point classifications when @@ -1342,6 +1406,7 @@ async def _execute(self) -> Dict[str, Any]: await self._sync_governance_classifications(guid, attributes) await self._sync_referenceable_classifications(guid, attributes) await self._sync_search_keywords(guid, attributes) + await self._sync_referenceable_extras(guid, attributes) deferred = bool(self.parsed_output.get("deferred")) and not self.context.get("final_round") diff --git a/pyegeria/omvs/classification_explorer.py b/pyegeria/omvs/classification_explorer.py index 11d96268..328a0d3a 100644 --- a/pyegeria/omvs/classification_explorer.py +++ b/pyegeria/omvs/classification_explorer.py @@ -13242,6 +13242,32 @@ def find_authored_elements_by_category( ) + @dynamic_catch + async def _async_set_translation(self, element_guid: str, body: dict, timeout: int = default_timeout) -> None: + """Set a translation (a TranslationDetail) for an element. Async version. + + Egeria's generic multi-language view service (MultiLanguageResource.java:32, odpi/egeria origin/main + 0b7ee0fb, `POST .../elements/{elementGUID}/translations` with a NewElementRequestBody), mounted under + every view service's URL marker. + + Sample body: + { + "class": "NewElementRequestBody", + "properties": { + "class": "TranslationDetailProperties", + "language": "French", "languageCode": "fr", "locale": "fr-FR", + "displayName": "...", "description": "...", "additionalTranslations": {"key": "value"} + } + } + """ + url = f"{self.classification_command_root}/elements/{element_guid}/translations" + await self._async_make_request("POST", url, body, timeout=timeout) + + @dynamic_catch + def set_translation(self, element_guid: str, body: dict, timeout: int = default_timeout) -> None: + """Set a translation (a TranslationDetail) for an element.""" + return run_sync(self._async_set_translation(element_guid, body, timeout)) + async def _async_add_supplementary_properties_to_element( self, element_guid: str, diff --git a/tests/micro-tests/test_fb_referenceable_extras.py b/tests/micro-tests/test_fb_referenceable_extras.py new file mode 100644 index 00000000..b4f60f56 --- /dev/null +++ b/tests/micro-tests/test_fb_referenceable_extras.py @@ -0,0 +1,96 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +"""F-B group 3: Classifications, Translation Details, User Defined Status, Supplementary Properties. + +No processor applied these Referenceable-bundle attributes (88 rows each on the round-trip probe's +PostgreSQL baseline). Classifications and Translation Details now go to their Egeria homes; the other two +have none that Dr.Egeria can use yet, and say so. +""" +from typing import Any, cast + +import pytest + +from md_processing.md_processing_utils.typed_properties import not_applied_notes +from md_processing.v2.extraction import DrECommand +from md_processing.v2.processors import AsyncBaseCommandProcessor + +GUID = "df9b80b5-5979-4ffa-9749-34c782fd11a2" + + +class _Recorder: + def __init__(self): + self.calls = [] + + def __getattr__(self, name): + async def call(*args, **kwargs): + self.calls.append((name, args)) + return None + return call + + +class _Client: + def __init__(self): + self.metadata_expert = _Recorder() + self.classification_manager = _Recorder() + + +class _P(AsyncBaseCommandProcessor): + async def apply_changes(self): + return "" + + +def _run_processor(): + client = _Client() + p = _P(client=cast(Any, client), command=DrECommand(verb="Create", object_type="Glossary", attributes={}, + raw_block="## Create Glossary"), context={}) + p.parsed_output = {"attributes": {}} + return p, client + + +@pytest.mark.asyncio +async def test_classifications_are_typed_and_classified(): + p, client = _run_processor() + attributes = {"Classifications": {"value": "- Taxonomy\n- NotAClassification"}} + await p._sync_referenceable_extras(GUID, attributes) + assert client.metadata_expert.calls == [ + ("_async_classify_metadata_element", + (GUID, "Taxonomy", {"class": "NewClassificationRequestBody", "properties": {"class": "TaxonomyProperties"}}))] + assert "not applied: Classifications: NotAClassification isn't an Egeria classification" in p.parsed_output["warnings"] + + +@pytest.mark.asyncio +async def test_translation_details_go_to_the_multi_language_service(): + p, client = _run_processor() + attributes = {"Translation Details": {"value": "language: French\nlocale: fr-FR\nrtpKey: x"}} + await p._sync_referenceable_extras(GUID, attributes) + assert client.classification_manager.calls == [ + ("_async_set_translation", (GUID, {"class": "NewElementRequestBody", "properties": { + "class": "TranslationDetailProperties", "language": "French", "locale": "fr-FR"}}))] + assert not_applied_notes(attributes) == ["not applied: Translation Details: rtpKey isn't a property of " + "TranslationDetail"] + + +@pytest.mark.asyncio +async def test_the_probes_arbitrary_translation_isnt_sent(): + p, client = _run_processor() + await p._sync_referenceable_extras(GUID, {"Translation Details": {"value": "rtpKey: RTP x"}}) + assert client.classification_manager.calls == [] + + +@pytest.mark.asyncio +async def test_user_defined_status_and_supplementary_properties_are_reported(): + p, client = _run_processor() + attributes = {"User Defined Status": {"value": "custom"}, "Supplementary Properties": {"value": "summary: s"}} + await p._sync_referenceable_extras(GUID, attributes) + notes = not_applied_notes(attributes) + assert notes[0].startswith("not applied: User Defined Status: no Egeria property on this element") + assert notes[1].startswith("not applied: Supplementary Properties: Egeria keeps them on a separate glossary term") + assert client.metadata_expert.calls == [] and client.classification_manager.calls == [] + + +@pytest.mark.asyncio +async def test_a_processor_that_applied_an_attribute_itself_is_skipped(): + p, client = _run_processor() + p.parsed_output["applied_attributes"] = {"Classifications"} + await p._sync_referenceable_extras(GUID, {"Classifications": {"value": "- Taxonomy"}}) + assert client.metadata_expert.calls == [] From 28dfc13fc66719a67b8f13dfec956dc198e9a17a Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 14:20:46 +0000 Subject: [PATCH 15/27] Dr.Egeria: send the bundle each type declares; report the rest (F-B 5) Processors that build their own (partial) properties dropped the Referenceable / Authored / Asset bundle (round-trip probe, PostgreSQL baseline: Identifier, Category, Legal, URL, Version Identifier, Authors, Content Status, Namespace Path, Source, Effective From/To ... 4-11 rows each). - common_md_utils.complete_bundle_properties(props, attributes): every bundle attribute given is sent when the properties class (properties_class_fields, from Egeria's Java) declares its key, and otherwise not sent and reported "not applied: : has no property" -- a key Egeria would only ignore is stripped. Status fields via element_status_properties; a written status attribute the type has no field for is reported (report_status_not_applied). set_element_prop_body ends with it, so every processor using the common builder gets it once. - Data Value Specification family (DVS, Measurement Spec, Data Class, Data Grain): data_designer._data_spec_fields adds dataType, units, matchPropertyNames, matchThreshold (Integer), specification(+Details), namespacePath and the Long uncertainties, then the bundle; Name Patterns has no Egeria property: reported. - Schema Type: namespace -> namespacePath, author -> authors (list); isDeprecated has no SchemaTypeProperties field: reported. - Solution Role: SolutionActorRoleProperties has scope but no domainIdentifier or title: those are reported instead of sent. - Dashboard Sheet keeps only heading/description/family/aliases/owner: the bundle attributes given are reported. - Blog/Journal/Activity Entry send a full typed body (situation, priority, effective dates, bundle); To-Do/Meeting/Review pass effective dates through a new my_profile extra_properties argument; Objective is reported where the type has none (only MeetingProperties does). Signed-off-by: Dan Wolfson --- .../md_processing_utils/common_md_utils.py | 92 +++++++++++++- md_processing/v2/actor_manager.py | 2 + md_processing/v2/dashboard_sheet.py | 12 ++ md_processing/v2/data_designer.py | 32 ++++- md_processing/v2/feedback.py | 16 ++- md_processing/v2/project.py | 2 + md_processing/v2/schema_maker.py | 21 ++-- pyegeria/omvs/my_profile.py | 18 ++- .../micro-tests/test_fb_bundle_properties.py | 113 ++++++++++++++++++ 9 files changed, 292 insertions(+), 16 deletions(-) create mode 100644 tests/micro-tests/test_fb_bundle_properties.py diff --git a/md_processing/md_processing_utils/common_md_utils.py b/md_processing/md_processing_utils/common_md_utils.py index 2a3f5f69..d4b5c45b 100644 --- a/md_processing/md_processing_utils/common_md_utils.py +++ b/md_processing/md_processing_utils/common_md_utils.py @@ -502,7 +502,88 @@ def set_element_prop_body(object_type: str, qualified_name: str, attributes: dic } # contentStatus / activityStatus / deploymentStatus, whichever this type has (ISSUE-113). body.update(element_status_properties(body["class"], attributes)) - return body + # The rest of the bundle the type declares (namespacePath, source, resourceName, ... for assets); a given + # bundle attribute the type has no property for is reported (F-B group 5). + return complete_bundle_properties(body, attributes) + +#: The Referenceable / Authored / Asset bundle attributes and the Egeria property each fills. +BUNDLE_PROPERTIES = { + "Description": "description", "Category": "category", "Identifier": "identifier", "URL": "url", + "Legal": "legal", "Version Identifier": "versionIdentifier", "Authors": "authors", + "User Defined Content Status": "userDefinedContentStatus", "Effective From": "effectiveFrom", + "Effective To": "effectiveTo", "Additional Properties": "additionalProperties", + "Namespace Path": "namespacePath", "Source": "source", "Resource Name": "resourceName", + "Deployed Implementation Type": "deployedImplementationType", +} + + +#: Attributes several types share under the same key but with other meanings elsewhere (e.g. Project Scope): +#: filled when the type declares the key, never reported when it doesn't. +BUNDLE_OPTIONAL = {"Scope": "scope", "Usage": "usage", "Purpose": "purpose"} + + +def complete_bundle_properties(props: dict, attributes: dict) -> dict: + """Fill in the bundle attributes a processor that builds its own properties left out (F-B group 5). + + For each BUNDLE_PROPERTIES attribute the document gives and `props` doesn't already set: sent when the + properties class (properties_class_fields, from Egeria's Java) declares the key, otherwise reported as + "not applied: : has no property". The type's status field is filled the same + way (element_status_properties). Values a processor set itself always win. + """ + from md_processing.md_processing_utils.properties_class_fields import PROPERTIES_CLASS_FIELDS + cls = props.get("class") or "" + fields = (PROPERTIES_CLASS_FIELDS.get(cls) or ("", None))[1] + for attribute, key in BUNDLE_PROPERTIES.items(): + value = (attributes.get(attribute) or {}).get("value") + if fields is not None and key not in fields: + # Egeria ignores a key its class doesn't declare: don't send it, and say so if it was given + if props.pop(key, None) not in (None, "", [], {}) or value not in (None, "", [], {}): + record_not_applied(attributes, attribute, [f"not applied: {attribute}: {cls} has no {key} property"]) + continue + if value in (None, "", [], {}) or props.get(key) not in (None, "", [], {}): + continue + props[key] = value + for attribute, key in BUNDLE_OPTIONAL.items(): # filled where the type declares them; never reported + value = (attributes.get(attribute) or {}).get("value") + if fields is not None and key in fields and value not in (None, "", [], {}) \ + and props.get(key) in (None, "", [], {}): + props[key] = value + for key, value in element_status_properties(cls, attributes).items(): + if props.get(key) in (None, ""): + props[key] = value + report_status_not_applied(cls, attributes) + return props + + +def person_action_extras(attributes: dict, properties_class: str) -> dict: + """The properties a my-profile create (To-Do, Meeting, Review) doesn't take as arguments: effective dates. + Objective is reported where the type has none (only MeetingProperties does). F-B group 5/6.""" + from md_processing.md_processing_utils.properties_class_fields import PROPERTIES_CLASS_FIELDS + fields = (PROPERTIES_CLASS_FIELDS.get(properties_class) or ("", ()))[1] + if (attributes.get("Objective") or {}).get("value") not in (None, "") and "objective" not in fields: + record_not_applied(attributes, "Objective", [f"not applied: Objective: {properties_class} has no objective property"]) + return {"effectiveFrom": (attributes.get("Effective From") or {}).get("value"), + "effectiveTo": (attributes.get("Effective To") or {}).get("value")} + + +def report_status_not_applied(properties_class: str, attributes: dict) -> None: + """A written status attribute the type has no field for is reported, not just logged (F-B group 6): + Content/Activity/Deployment Status by its own field, the generic Status when the type has none at all. + The header element status can't be set on create.""" + from md_processing.md_processing_utils.element_status import EXPLICIT_STATUS_ATTRIBUTES + from md_processing.md_processing_utils.element_status_fields import STATUS_FIELDS_BY_PROPERTIES_CLASS + if properties_class not in STATUS_FIELDS_BY_PROPERTIES_CLASS: + return + supported = STATUS_FIELDS_BY_PROPERTIES_CLASS[properties_class] + for attribute, field in EXPLICIT_STATUS_ATTRIBUTES.items(): + entry = attributes.get(attribute) or {} + if entry.get("value") not in (None, "") and not entry.get("is_default") and field not in supported: + record_not_applied(attributes, attribute, + [f"not applied: {attribute}: {properties_class} has no {field} property"]) + entry = attributes.get("Status") or {} + if entry.get("value") not in (None, "") and not entry.get("is_default") and not supported: + record_not_applied(attributes, "Status", [f"not applied: Status: {properties_class} has no status property"]) + def report_spec_microflow(attributes: dict) -> str | None: """The Report Spec's `Microflow` attribute as canonical microflow/1 text, or None if not given. @@ -656,9 +737,12 @@ def set_solution_architect_body(object_type: str, qualified_name: str, attribute }) if object_type in ("Solution Role", "SolutionRole", "SolutionActorRole"): - role_domain_id = attributes.get('Role Domain Identifier', {}).get('value') - resolved_domain = resolve_enum(GovernanceDomains, role_domain_id) - prop_bod["domainIdentifier"] = resolved_domain if resolved_domain is not None else role_domain_id + # SolutionActorRoleProperties (odpi/egeria origin/main 0b7ee0fb) has scope and actorRoleGroups but no + # domainIdentifier or title: those were sent and silently ignored (round-trip probe). + for attribute, key in (("Role Domain Identifier", "domainIdentifier"), ("Title", "title")): + if attributes.get(attribute, {}).get('value') not in (None, ""): + record_not_applied(attributes, attribute, + [f"not applied: {attribute}: SolutionActorRoleProperties has no {key} property"]) return prop_bod diff --git a/md_processing/v2/actor_manager.py b/md_processing/v2/actor_manager.py index b9e9a538..c9df08a6 100644 --- a/md_processing/v2/actor_manager.py +++ b/md_processing/v2/actor_manager.py @@ -5,6 +5,7 @@ from loguru import logger from pyegeria import PyegeriaException, NO_ELEMENTS_FOUND +from md_processing.md_processing_utils.common_md_utils import person_action_extras from md_processing.v2.processors import AsyncBaseCommandProcessor from md_processing.md_processing_utils.common_md_utils import ( set_actor_manager_prop_body, set_create_body, set_update_body, @@ -40,6 +41,7 @@ async def apply_changes(self) -> str: description=attributes.get('Description', {}).get('value'), situation=attributes.get('Situation', {}).get('value'), priority=attributes.get('Priority', {}).get('value', 0), + extra_properties=person_action_extras(attributes, "ToDoProperties"), # Without this, create_my_todo invents its own qualified name # (different casing plus a random timestamp suffix) - the real # stored element then never matches what Dr.Egeria reports diff --git a/md_processing/v2/dashboard_sheet.py b/md_processing/v2/dashboard_sheet.py index d65622d6..c79c4d6d 100644 --- a/md_processing/v2/dashboard_sheet.py +++ b/md_processing/v2/dashboard_sheet.py @@ -828,6 +828,18 @@ async def apply_changes(self) -> str: heading = attributes.get("Dashboard Sheet Heading", {}).get("value") or name description = attributes.get("Dashboard Sheet Description", {}).get("value") or "" family = attributes.get("Dashboard Sheet Family", {}).get("value") or None + # A sheet keeps its heading, description, family, aliases and owner (locally and on its Dashboard); + # the bundle attributes the command also offers are reported, not dropped (F-B group 5). + from md_processing.md_processing_utils.common_md_utils import BUNDLE_PROPERTIES + from md_processing.md_processing_utils.typed_properties import record_not_applied + for attribute in [*BUNDLE_PROPERTIES, "Status", "Content Status", "Purpose", "Parent Relationship Attributes"]: + entry = attributes.get(attribute) or {} + if entry.get("value") not in (None, "", [], {}) and not entry.get("is_default"): + if attribute == "Description" and attributes.get("Dashboard Sheet Description", {}).get("value"): + note = "the sheet's description is Dashboard Sheet Description" + else: + note = "a Dashboard Sheet keeps only its heading, description, family, aliases and owner" + record_not_applied(attributes, attribute, [f"not applied: {attribute}: {note}"]) path = _default_store_path() sheets = _load_store(path) diff --git a/md_processing/v2/data_designer.py b/md_processing/v2/data_designer.py index c9fca627..4afeff62 100644 --- a/md_processing/v2/data_designer.py +++ b/md_processing/v2/data_designer.py @@ -13,7 +13,7 @@ set_element_prop_body, set_create_body, set_update_body, set_rel_request_body, set_rel_prop_body, set_data_field_body, set_delete_rel_request_body, - update_element_dictionary, async_add_note_in_dr_e + update_element_dictionary, async_add_note_in_dr_e, complete_bundle_properties ) from pyegeria.core.utils import body_slimmer @@ -34,6 +34,31 @@ } +def _data_spec_fields(props: dict, attributes: dict) -> dict: + """The fields every DataValueSpecification subtype (Data Class, Data Grain, Measurement Specification) + reads (DataValueSpecificationProperties.java, odpi/egeria origin/main 0b7ee0fb), filled where the processor + left them out, then the Referenceable/Authored bundle (F-B group 5). Integer/Long fields are coerced or + refused with a sentence (matchThreshold Integer; absolute/relativeUncertainty Long).""" + simple = {"Data Type": "dataType", "Units": "units", "Match Property Names": "matchPropertyNames", + "Specification": "specification", "Specification Details": "specificationDetails", + "Namespace Path": "namespacePath"} + for attribute, key in simple.items(): + value = (attributes.get(attribute) or {}).get("value") + if value not in (None, "", [], {}) and props.get(key) in (None, "", [], {}): + props[key] = value + for attribute, key in (("Match Threshold", "matchThreshold"), ("Absolute Uncertainty", "absoluteUncertainty"), + ("Relative Uncertainty", "relativeUncertainty")): + if props.get(key) is None: + value, notes = long_value(attributes, attribute) + record_not_applied(attributes, attribute, notes) + if value is not None: + props[key] = value + if (attributes.get("Name Patterns") or {}).get("value") not in (None, "", []): + record_not_applied(attributes, "Name Patterns", [ + f"not applied: Name Patterns: {props.get('class')} has no namePatterns property"]) + return complete_bundle_properties(props, attributes) + + def _with_create_defaults(props: dict) -> dict: out = dict(props) for key, default in _DATA_VALUE_SPEC_CREATE_DEFAULTS.items(): @@ -103,6 +128,7 @@ async def apply_changes(self) -> str: "uncertaintyForm": attributes.get('Uncertainty Form', {}).get('value'), "absenceSentences": attributes.get('Absence Sentences', {}).get('value'), }) + _data_spec_fields(props, attributes) # "In Data Value Specification"/"Specializes Data Value Specification" # both describe the same DataValueHierarchy parent -- near-synonym @@ -598,6 +624,9 @@ async def apply_changes(self) -> str: "dataPatterns": attributes.get('Data Patterns', {}).get('value'), "additionalProperties": attributes.get('Additional Properties', {}).get('value') } + if props["namespacePath"] is None: + props.pop("namespacePath") # the spec's attribute is "Namespace Path"; filled below + _data_spec_fields(props, attributes) # 2. Relationships containing_dc_guids = set(attributes.get('Containing Data Class', {}).get('guid_list', [])) @@ -748,6 +777,7 @@ async def apply_changes(self) -> str: props_body["grainStatement"] = attributes.get('Grain Statement', {}).get('value') props_body["granularityBasis"] = attributes.get('Granularity Basis', {}).get('value') props_body["interval"] = attributes.get('Interval', {}).get('value') + _data_spec_fields(props_body, attributes) # "In Data Value Specification"/"Specializes Data Value Specification" # both describe the same DataValueHierarchy parent -- near-synonym diff --git a/md_processing/v2/feedback.py b/md_processing/v2/feedback.py index a94624f2..6c0c236f 100644 --- a/md_processing/v2/feedback.py +++ b/md_processing/v2/feedback.py @@ -7,6 +7,7 @@ from pyegeria import EgeriaTech, PyegeriaException, COMMENT_TYPES from pyegeria.core._exceptions import PyegeriaInvalidParameterException +from md_processing.md_processing_utils.common_md_utils import complete_bundle_properties, person_action_extras from md_processing.v2.processors import AsyncBaseCommandProcessor from md_processing.v2.multilink import async_link_or_update, update_body from md_processing.md_processing_utils.common_md_utils import ( @@ -85,7 +86,19 @@ async def apply_changes(self) -> str: "Activity Entry": self.client.my_profile._async_log_my_activity, "Blog Entry": self.client.my_profile._async_blog_my_activity, } - guid = await method_by_type[object_type](text=text, display_name=display_name) + # A full typed body, so situation, priority, effective dates and the rest of the bundle the entry's + # type declares are sent (F-B group 5/6), not just the text and name. + entry_type = object_type.replace(" ", "") + entry_props = complete_bundle_properties({ + "class": f"{entry_type}Properties", "typeName": entry_type, "qualifiedName": qualified_name, + "displayName": display_name, "description": text, + "situation": attributes.get('Situation', {}).get('value'), + "priority": attributes.get('Priority', {}).get('value'), + }, attributes) + guid = await method_by_type[object_type]( + text=text, display_name=display_name, qualified_name=qualified_name, + body={"class": "NewAttachmentRequestBody", + "properties": {k: v for k, v in entry_props.items() if v not in (None, "", [], {})}}) guid = self.extract_guid_or_raise(guid, f"Create {object_type}") if guid: self.parsed_output["guid"] = guid @@ -154,6 +167,7 @@ async def apply_changes(self) -> str: description=attributes.get('Description', {}).get('value'), situation=attributes.get('Situation', {}).get('value'), priority=attributes.get('Priority', {}).get('value', 0), + extra_properties=person_action_extras(attributes, "ReviewProperties"), # See actor_manager.py's Create ToDo branch for why this # matters - without it, the real stored qualifiedName never # matches what Dr.Egeria reports having created. diff --git a/md_processing/v2/project.py b/md_processing/v2/project.py index b8d9149c..8a0dd920 100644 --- a/md_processing/v2/project.py +++ b/md_processing/v2/project.py @@ -5,6 +5,7 @@ from loguru import logger from pyegeria import EgeriaTech, PyegeriaException +from md_processing.md_processing_utils.common_md_utils import person_action_extras from md_processing.v2.processors import AsyncBaseCommandProcessor from md_processing.md_processing_utils.md_processing_constants import get_command_spec from md_processing.md_processing_utils.common_md_utils import ( @@ -56,6 +57,7 @@ async def apply_changes(self) -> str: description=attributes.get('Description', {}).get('value'), situation=attributes.get('Situation', {}).get('value'), priority=attributes.get('Priority', {}).get('value', 0), + extra_properties=person_action_extras(attributes, "MeetingProperties"), # See actor_manager.py's Create ToDo branch for why this # matters - without it, the real stored qualifiedName never # matches what Dr.Egeria reports having created. diff --git a/md_processing/v2/schema_maker.py b/md_processing/v2/schema_maker.py index db4177cc..40378b15 100644 --- a/md_processing/v2/schema_maker.py +++ b/md_processing/v2/schema_maker.py @@ -11,7 +11,7 @@ from loguru import logger from md_processing.v2.processors import AsyncBaseCommandProcessor -from md_processing.md_processing_utils.common_md_utils import update_element_dictionary +from md_processing.md_processing_utils.common_md_utils import complete_bundle_properties, update_element_dictionary from md_processing.md_processing_utils.typed_properties import (classification_map, entity_properties, parent_relationship_properties, record_not_applied) @@ -114,12 +114,19 @@ async def apply_changes(self) -> str: else: props["inputField"] = _v(attributes, "Input Field") else: - props.update({ - "isDeprecated": _v(attributes, "Is Deprecated"), - "author": _v(attributes, "Author"), - "encodingStandard": _v(attributes, "Encoding Standard"), - "namespace": _v(attributes, "Namespace"), - }) + # SchemaTypeProperties (odpi/egeria origin/main 0b7ee0fb) has encodingStandard, namespacePath and + # authors (a list) -- no "namespace", "author" or "isDeprecated": those keys were sent and silently + # ignored (round-trip probe: Namespace / Author / Is Deprecated DROPPED, Egeria-side in shape only). + props["encodingStandard"] = _v(attributes, "Encoding Standard") + if _v(attributes, "Namespace") not in (None, ""): + props["namespacePath"] = _v(attributes, "Namespace") + author = _v(attributes, "Author") + if author not in (None, "", []) and not props.get("authors"): + props["authors"] = author if isinstance(author, list) else [author] + if _v(attributes, "Is Deprecated") not in (None, ""): + record_not_applied(attributes, "Is Deprecated", [ + "not applied: Is Deprecated: SchemaTypeProperties has no isDeprecated property"]) + complete_bundle_properties(props, attributes) if self.as_is_element: guid = self.as_is_element["elementHeader"]["guid"] diff --git a/pyegeria/omvs/my_profile.py b/pyegeria/omvs/my_profile.py index 14449cda..eac9b29e 100644 --- a/pyegeria/omvs/my_profile.py +++ b/pyegeria/omvs/my_profile.py @@ -1317,7 +1317,8 @@ async def _async_require_my_profile_guid(self, what: str) -> str: async def _async_create_my_todo(self, todo_name: str, activity_status: str = "REQUESTED", description:Optional[str]=None, situation: Optional[str]=None,priority:Optional[int]=0, - qualified_name: Optional[str] = None) -> str: + qualified_name: Optional[str] = None, + extra_properties: Optional[dict] = None) -> str: """Create a person action (Meeting, ToDo, Notification, Review). Async version. Parameters @@ -1394,6 +1395,9 @@ async def _async_create_my_todo(self, todo_name: str, activity_status: str = "RE "originatorGUID": self.my_profile_guid, "assignToActorGUID": self.my_profile_guid, } + # Further properties of the action (e.g. effectiveFrom/effectiveTo) the arguments don't cover. + if extra_properties: + body["properties"].update({k: v for k, v in extra_properties.items() if v is not None}) response = await super()._async_create_action(body) return response @@ -1448,7 +1452,8 @@ def create_my_todo(self, todo_name: str, activity_status: str = "REQUESTED", async def _async_create_meeting(self, meeting_name: str, activity_status: str = "REQUESTED", description:Optional[str]=None, situation: Optional[str]=None,priority:Optional[int]=0, - qualified_name: Optional[str] = None, objective: Optional[str] = None) -> str: + qualified_name: Optional[str] = None, objective: Optional[str] = None, + extra_properties: Optional[dict] = None) -> str: """Create a Meeting person action. Async version. Parameters @@ -1503,6 +1508,9 @@ async def _async_create_meeting(self, meeting_name: str, activity_status: str = "originatorGUID": self.my_profile_guid, "assignToActorGUID": self.my_profile_guid, } + # Further properties of the action (e.g. effectiveFrom/effectiveTo) the arguments don't cover. + if extra_properties: + body["properties"].update({k: v for k, v in extra_properties.items() if v is not None}) response = await super()._async_create_action(body) return response @@ -1541,7 +1549,8 @@ def create_meeting(self, meeting_name: str, activity_status: str = "REQUESTED", async def _async_create_review(self, review_name: str, activity_status: str = "REQUESTED", description:Optional[str]=None, situation: Optional[str]=None,priority:Optional[int]=0, - qualified_name: Optional[str] = None) -> str: + qualified_name: Optional[str] = None, + extra_properties: Optional[dict] = None) -> str: """Create a Review person action. Async version. Parameters @@ -1591,6 +1600,9 @@ async def _async_create_review(self, review_name: str, activity_status: str = "R "originatorGUID": self.my_profile_guid, "assignToActorGUID": self.my_profile_guid, } + # Further properties of the action (e.g. effectiveFrom/effectiveTo) the arguments don't cover. + if extra_properties: + body["properties"].update({k: v for k, v in extra_properties.items() if v is not None}) response = await super()._async_create_action(body) return response diff --git a/tests/micro-tests/test_fb_bundle_properties.py b/tests/micro-tests/test_fb_bundle_properties.py new file mode 100644 index 00000000..97b2fe0f --- /dev/null +++ b/tests/micro-tests/test_fb_bundle_properties.py @@ -0,0 +1,113 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +"""F-B group 5: the Referenceable/Authored/Asset bundle on processors that built partial bodies. + +On the round-trip probe's PostgreSQL baseline, Data Class / Data Grain / Data Value Specification / +Measurement Specification / Informal Tag / Solution Role / Schema Type / Dashboard Sheet and the my-profile +creates dropped bundle attributes (Identifier, Category, Legal, URL, Version Identifier, Authors, Content +Status, Effective From/To, Namespace Path, Source, ...). Each is now sent where the type's Java class +declares it, or reported "not applied" where it doesn't -- never sent to be silently ignored. +""" +from typing import Any, cast + +import pytest + +from md_processing.md_processing_utils.common_md_utils import ( + complete_bundle_properties, person_action_extras, set_element_prop_body, set_solution_architect_body) +from md_processing.md_processing_utils.typed_properties import not_applied_notes +from md_processing.v2.data_designer import _data_spec_fields +from md_processing.v2.extraction import DrECommand +from md_processing.v2.feedback import FeedbackProcessor + + +def _attrs(**kv): + return {k.replace("_", " "): {"value": v} for k, v in kv.items()} + + +def test_declared_bundle_keys_are_filled_and_processor_values_win(): + a = _attrs(Identifier="RTP id", Namespace_Path="RTP ns", Category="RTP cat", Status="DRAFT") + props = complete_bundle_properties({"class": "DataValueSpecificationProperties", "category": "kept"}, a) + assert props["identifier"] == "RTP id" and props["namespacePath"] == "RTP ns" and props["category"] == "kept" + assert props["contentStatus"] == "DRAFT" + assert not_applied_notes(a) == [] + + +def test_undeclared_bundle_keys_are_stripped_and_reported(): + a = _attrs(Authors=["a"], User_Defined_Content_Status="u", Scope="sc") + props = complete_bundle_properties({"class": "SolutionActorRoleProperties", "authors": ["a"], + "userDefinedContentStatus": "u"}, a) + assert "authors" not in props and "userDefinedContentStatus" not in props and props["scope"] == "sc" + assert not_applied_notes(a) == [ + "not applied: Authors: SolutionActorRoleProperties has no authors property", + "not applied: User Defined Content Status: SolutionActorRoleProperties has no userDefinedContentStatus property"] + + +def test_set_element_prop_body_completes_asset_fields(): + a = _attrs(Display_Name="RTP Report", Namespace_Path="RTP ns", Source="RTP src") + props = set_element_prop_body("Report", "RTP::Report", a) + assert props["namespacePath"] == "RTP ns" and props["source"] == "RTP src" + + +def test_solution_role_reports_its_missing_fields(): + a = _attrs(Display_Name="R", Role_Domain_Identifier="Data", Title="t", Content_Status="ACTIVE", Scope="sc") + props = set_solution_architect_body("SolutionActorRole", "QN", a) + assert "domainIdentifier" not in props and props["scope"] == "sc" + notes = not_applied_notes(a) + assert "not applied: Role Domain Identifier: SolutionActorRoleProperties has no domainIdentifier property" in notes + assert "not applied: Title: SolutionActorRoleProperties has no title property" in notes + assert "not applied: Content Status: SolutionActorRoleProperties has no contentStatus property" in notes + + +def test_data_spec_family_fields_and_coercions(): + a = _attrs(Data_Type="string", Units="kg", Match_Threshold="7", Absolute_Uncertainty="7.5", + Name_Patterns="x", Identifier="id", Namespace_Path="ns") + props = _data_spec_fields({"class": "DataGrainProperties"}, a) + assert props["dataType"] == "string" and props["units"] == "kg" and props["matchThreshold"] == 7 + assert props["identifier"] == "id" and props["namespacePath"] == "ns" and "absoluteUncertainty" not in props + notes = not_applied_notes(a) + assert "not applied: Name Patterns: DataGrainProperties has no namePatterns property" in notes + assert any(n.startswith("not applied: Absolute Uncertainty: '7.5' isn't a whole number") for n in notes) + + +def test_person_actions_get_effective_dates_and_objective_is_reported(): + a = _attrs(Effective_From="2020-01-02", Effective_To="2031-01-02", Objective="o") + assert person_action_extras(a, "ToDoProperties") == {"effectiveFrom": "2020-01-02", "effectiveTo": "2031-01-02"} + assert not_applied_notes(a) == ["not applied: Objective: ToDoProperties has no objective property"] + b = _attrs(Objective="o") + person_action_extras(b, "MeetingProperties") + assert not_applied_notes(b) == [] + + +class _MyProfile: + def __init__(self): + self.calls = [] + + def __getattr__(self, name): + async def create(**kwargs): + self.calls.append((name, kwargs)) + return "11831149-eed7-466a-9488-270d6164f442" + return create + + +class _Client: + def __init__(self): + self.my_profile = _MyProfile() + + +@pytest.mark.asyncio +async def test_blog_entry_sends_a_full_typed_body(): + client = _Client() + p = FeedbackProcessor(client=cast(Any, client), command=DrECommand( + verb="Create", object_type="Blog Entry", attributes={}, raw_block="## Create Blog Entry"), context={}) + p.parsed_output = {"qualified_name": "RTP::Blog", "attributes": _attrs( + Display_Name="RTP Blog", Description="text", Situation="RTP situation", Effective_From="2020-01-02", + Identifier="RTP id")} + + async def render(guid): + return guid + p.render_result_markdown = render + await p.apply_changes() + props = client.my_profile.calls[0][1]["body"]["properties"] + assert props["class"] == "BlogEntryProperties" and props["situation"] == "RTP situation" + assert props["effectiveFrom"] == "2020-01-02" and props["identifier"] == "RTP id" + assert props["qualifiedName"] == "RTP::Blog" From f59adf4abed88566ec1b463a1ae2abbcadfc2685 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 14:22:24 +0000 Subject: [PATCH 16/27] Dr.Egeria: Project attributes to their Egeria homes (F-B 7) PROJECT-ATTRIBUTES-MAPPING-2026-11-12 and the owner's decisions. ProjectProperties (odpi/egeria origin/main 0b7ee0fb) has none of projectIdentifier, purposes, projectType, projectScope, projectApproach, projectManagementStyle, projectResultsUsage -- all were sent and silently ignored (8 rows each on the round-trip probe's PostgreSQL baseline). - Project Identifier -> identifier (ReferenceableProperties). - Project Approach / Management Style / Results Usage -> the ProjectClassification classification (approach, managementStyle, resultsUsage): in initialClassifications on create, ProjectManager._async_add_project_classification on update. - Project Type -> its named classification (CampaignProperties, Task, ..., checked against the generated class table); an unknown type is reported. - Purposes: removed (owner, 2026-11-12) -- reported "not applied: Purposes: Project Purposes was removed" until F-C drops it from the spec. - Project Scope: no Egeria property (owner, 2026-11-12: use relationships such as governedBy or assignedTo) -- reported. Information Supply Chain: dataProcessingPurposes reads "Data Processing Purposes" or "Purposes" (F-C renames it); integrationStyle and estimatedVolumetrics, declared by InformationSupplyChainProperties, are now sent. Signed-off-by: Dan Wolfson --- md_processing/v2/project.py | 62 ++++++++++++-- md_processing/v2/solution_architect.py | 8 +- .../micro-tests/test_fb_project_attributes.py | 80 +++++++++++++++++++ 3 files changed, 141 insertions(+), 9 deletions(-) create mode 100644 tests/micro-tests/test_fb_project_attributes.py diff --git a/md_processing/v2/project.py b/md_processing/v2/project.py index 8a0dd920..9122f07a 100644 --- a/md_processing/v2/project.py +++ b/md_processing/v2/project.py @@ -5,8 +5,9 @@ from loguru import logger from pyegeria import EgeriaTech, PyegeriaException +from md_processing.md_processing_utils.typed_properties import properties_class, record_not_applied from md_processing.md_processing_utils.common_md_utils import person_action_extras -from md_processing.v2.processors import AsyncBaseCommandProcessor +from md_processing.v2.processors import AsyncBaseCommandProcessor, describe_exception from md_processing.md_processing_utils.md_processing_constants import get_command_spec from md_processing.md_processing_utils.common_md_utils import ( set_element_prop_body, set_create_body, set_update_body, @@ -92,16 +93,32 @@ async def apply_changes(self) -> str: "actualStartDate": attributes.get('Actual Start Date', {}).get('value'), "actualCompletionDate": attributes.get('Actual Completion Date', {}).get('value'), "mission": attributes.get('Mission', {}).get('value'), - "purposes": attributes.get('Purposes', {}).get('value', []), "priority": attributes.get('Priority', {}).get('value'), "successCriteria": attributes.get('Success Criteria', {}).get('value'), - "projectIdentifier": attributes.get('Project Identifier', {}).get('value'), - "projectType": attributes.get('Project Type', {}).get('value'), - "projectScope": attributes.get('Project Scope', {}).get('value'), - "projectApproach": attributes.get('Project Approach', {}).get('value'), - "projectManagementStyle": attributes.get('Project Management Style', {}).get('value'), - "projectResultsUsage": attributes.get('Project Results Usage', {}).get('value'), }) + # PROJECT-ATTRIBUTES-MAPPING-2026-11-12 + the owner's decisions (F-B group 7). ProjectProperties + # (odpi/egeria origin/main 0b7ee0fb) has no projectIdentifier / purposes / projectType / projectScope / + # project{Approach,ManagementStyle,ResultsUsage}: those keys were sent and silently ignored. + if attributes.get('Project Identifier', {}).get('value') and not prop_body.get("identifier"): + prop_body["identifier"] = attributes['Project Identifier']['value'] # ReferenceableProperties + if attributes.get('Purposes', {}).get('value'): + record_not_applied(attributes, "Purposes", [ + "not applied: Purposes: Project Purposes was removed (owner's decision, 2026-11-12)"]) + if attributes.get('Project Scope', {}).get('value'): + record_not_applied(attributes, "Project Scope", [ + "not applied: Project Scope: Project has no scope property in Egeria (owner's decision, 2026-11-12: " + "use relationships such as governedBy or assignedTo)"]) + project_classification = {k: attributes.get(a, {}).get('value') for a, k in ( + ("Project Approach", "approach"), ("Project Management Style", "managementStyle"), + ("Project Results Usage", "resultsUsage"))} + project_classification = {k: v for k, v in project_classification.items() if v not in (None, "")} + type_classification = None + project_type = attributes.get('Project Type', {}).get('value') + if project_type and project_type != "Project": + type_classification = properties_class("classification", project_type) + if type_classification is None: + record_not_applied(attributes, "Project Type", [ + f"not applied: Project Type: {project_type} isn't an Egeria project classification"]) if verb == "Update": guid = self.parsed_output.get("guid") or (self.as_is_element['elementHeader']['guid'] if self.as_is_element else None) @@ -112,6 +129,7 @@ async def apply_changes(self) -> str: self.last_body = body = set_update_body(base_type, attributes) body['properties'] = self.filter_update_properties(prop_body, body.get('mergeUpdate', True)) await self.client._async_update_project(project_guid=guid, body=body) + await self._apply_project_classifications(guid, project_classification, project_type, type_classification) sync_res = await self._sync_sub_projects(guid, sub_project_guids, not merge_update) if sync_res.get("added") or sync_res.get("removed"): @@ -135,6 +153,11 @@ async def apply_changes(self) -> str: self.last_body = body = set_create_body(base_type, attributes) # Apply classifications based on the actual object_type (e.g., Campaign) body["initialClassifications"] = set_object_classifications(object_type, attributes, project_types) + if project_classification: # approach / managementStyle / resultsUsage live on ProjectClassification + body["initialClassifications"]["ProjectClassification"] = { + "class": "ProjectClassificationProperties", **project_classification} + if type_classification: # Project Type names a classification (Campaign, Task, ...) + body["initialClassifications"].setdefault(project_type, {"class": type_classification}) body["properties"] = prop_body raw_guid = await self.client._async_create_project(body=body_slimmer(body)) @@ -164,6 +187,29 @@ async def apply_changes(self) -> str: return self.command.raw_block + async def _apply_project_classifications(self, guid: str, project_classification: dict, + project_type: Optional[str], type_classification: Optional[str]) -> None: + """On an update: ProjectClassification through ProjectManager._async_add_project_classification, and the + Project Type's named classification through the generic metadata-expert classify call.""" + if project_classification: + try: + await self.client._async_add_project_classification(guid, { + "class": "NewClassificationRequestBody", + "properties": {"class": "ProjectClassificationProperties", **project_classification}}) + self.add_related_result("Project Classification", guid=guid, message="Set") + except PyegeriaException as e: + self.add_related_result("Project Classification", guid=guid, status="failure", + message=describe_exception(e)) + if type_classification: + try: + await self.client.metadata_expert._async_classify_metadata_element( + guid, project_type, {"class": "NewClassificationRequestBody", + "properties": {"class": type_classification}}) + self.add_related_result(f"Classification {project_type}", guid=guid, message="Classified") + except PyegeriaException as e: + self.add_related_result(f"Classification {project_type}", guid=guid, status="failure", + message=describe_exception(e)) + async def _sync_sub_projects(self, guid: str, to_be_guids: Set[str], replace_all: bool, known_new: bool = False) -> Dict[str, Any]: """ Sync the ProjectHierarchy children declared via the embedded 'Sub-Projects' attribute. diff --git a/md_processing/v2/solution_architect.py b/md_processing/v2/solution_architect.py index fcc24e65..103cc20f 100644 --- a/md_processing/v2/solution_architect.py +++ b/md_processing/v2/solution_architect.py @@ -424,8 +424,14 @@ async def apply_changes(self) -> str: # were silently never persisted). Note the real wire property is "dataProcessingPurposes", # not "purposes" -- the compact spec's "Purposes" attribute has no property_name override, # so this can't be picked up generically; must be set explicitly here. - prop_body["dataProcessingPurposes"] = attributes.get('Purposes', {}).get('value') + # F-C renames the attribute "Data Processing Purposes" (keeping "Purposes" as an alternate): read either. + prop_body["dataProcessingPurposes"] = (attributes.get('Data Processing Purposes', {}).get('value') + or attributes.get('Purposes', {}).get('value')) prop_body["scope"] = attributes.get('Scope', {}).get('value') + # InformationSupplyChainProperties also declares integrationStyle and estimatedVolumetrics + # (odpi/egeria origin/main 0b7ee0fb); they were never read (round-trip probe: DROPPED). + prop_body["integrationStyle"] = attributes.get('Integration Style', {}).get('value') + prop_body["estimatedVolumetrics"] = attributes.get('Estimated Volumetrics', {}).get('value') in_sc_guids = set(attributes.get('In Information Supply Chain', {}).get('guid_list', [])) nested_sc_guids = set(attributes.get('Nested Information Supply Chains', {}).get('guid_list', [])) diff --git a/tests/micro-tests/test_fb_project_attributes.py b/tests/micro-tests/test_fb_project_attributes.py new file mode 100644 index 00000000..cc0206d7 --- /dev/null +++ b/tests/micro-tests/test_fb_project_attributes.py @@ -0,0 +1,80 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +"""F-B group 7: Project attributes go where Egeria keeps them (PROJECT-ATTRIBUTES-MAPPING-2026-11-12). + +ProjectProperties (odpi/egeria origin/main 0b7ee0fb) has no projectIdentifier / purposes / projectType / +projectScope / project{Approach,ManagementStyle,ResultsUsage}: all were sent and silently ignored. +- Project Identifier -> identifier (ReferenceableProperties); +- Approach / Management Style / Results Usage -> the ProjectClassification classification; +- Project Type -> its named classification (Campaign, Task, ...); +- Purposes (removed) and Project Scope (no Egeria property) -> reported with the owner's decisions. +""" +from typing import Any, cast + +import pytest + +from md_processing.md_processing_utils.typed_properties import not_applied_notes +from md_processing.v2.extraction import DrECommand +from md_processing.v2.project import ProjectProcessor + + +class _Client: + def __init__(self): + self.bodies = [] + + async def _async_create_project(self, body): + self.bodies.append(body) + return "3bd40b37-3d70-4caa-9733-91548ba0eee1" + + +async def _async_value(value): + return value + + +def _attrs(**kv): + return {k.replace("_", " "): {"value": v} for k, v in kv.items()} + + +async def _create(attributes, object_type="Project"): + client = _Client() + p = ProjectProcessor(client=cast(Any, client), command=DrECommand( + verb="Create", object_type=object_type, attributes={}, raw_block=f"## Create {object_type}"), context={}) + p.get_command_spec = lambda: {"OM_TYPE": "Project"} + p.parsed_output = {"qualified_name": "RTP::Project", "attributes": attributes} + p.as_is_element = None + p.render_result_markdown = lambda guid: _async_value(guid) + + async def no_subs(*a, **k): + return {} + p._sync_sub_projects = no_subs + await p.apply_changes() + return client.bodies[0], attributes + + +@pytest.mark.asyncio +async def test_project_attributes_go_to_their_egeria_homes(): + body, attributes = await _create(_attrs( + Display_Name="RTP Project", Project_Identifier="RTP-P-1", Project_Approach="agile", + Project_Management_Style="lean", Project_Results_Usage="internal", Project_Type="Campaign", + Purposes=["p1"], Project_Scope="everything")) + props = body["properties"] + for key in ("projectIdentifier", "purposes", "projectType", "projectScope", "projectApproach", + "projectManagementStyle", "projectResultsUsage"): + assert key not in props + assert props["identifier"] == "RTP-P-1" + classifications = body["initialClassifications"] + assert classifications["ProjectClassification"] == {"class": "ProjectClassificationProperties", + "approach": "agile", "managementStyle": "lean", + "resultsUsage": "internal"} + assert classifications["Campaign"] == {"class": "CampaignProperties"} + notes = not_applied_notes(attributes) + assert "not applied: Purposes: Project Purposes was removed (owner's decision, 2026-11-12)" in notes + assert any(n.startswith("not applied: Project Scope: Project has no scope property in Egeria") for n in notes) + + +@pytest.mark.asyncio +async def test_unknown_project_type_is_reported(): + body, attributes = await _create(_attrs(Display_Name="RTP Project", Project_Type="Moonshot")) + assert "Moonshot" not in body.get("initialClassifications", {}) + assert not_applied_notes(attributes) == [ + "not applied: Project Type: Moonshot isn't an Egeria project classification"] From 6ea62d62c110bb9fc35a2f6c54997e6d5a5e96ab Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 14:24:30 +0000 Subject: [PATCH 17/27] Dr.Egeria: glossary-term flags as Egeria classifications (F-B 1) In Egeria 6 the term flags are classifications (OpenMetadataType.java ~3245- 3366, odpi/egeria origin/main 0b7ee0fb), not GlossaryTermProperties; sent as properties they were silently ignored (round-trip probe, PostgreSQL baseline: Is Abstract Concept / Is Activity Description / Is Context / Is Data Value / Term Activity Type / Context Scope DROPPED; Context Description CHANGED, it read back the term's own description). glossary.term_properties_and_classifications, shared by Create/Update Glossary Term and Create Question: Is Abstract Concept -> AbstractConcept Is Activity Description + Term Activity Type -> ActivityDescription(activityType) Is Context + Context Description / Scope -> ContextDefinition(description, scope) Is Data Value -> DataValueMeaning in initialClassifications on create, the generic metadata-expert classify call on update. Aliases / Summary / Examples / Abbreviation / Usage (GlossaryTermProperties) are now set for Question too (they were dropped). The two ISSUE-162 tests now assert the classification behaviour; their intent holds: a flag the document doesn't mention isn't sent. The Class Word / Modifier / Prime Word naming classifications were already applied by _sync_term_naming_classifications; their DROPPED rows are a probe read-back location (fixed on the gate branch). Signed-off-by: Dan Wolfson --- md_processing/v2/glossary.py | 77 ++++++++++++++----- .../test_fb_term_classifications.py | 37 +++++++++ ...ue_162_update_does_not_reset_properties.py | 16 ++-- 3 files changed, 104 insertions(+), 26 deletions(-) create mode 100644 tests/micro-tests/test_fb_term_classifications.py diff --git a/md_processing/v2/glossary.py b/md_processing/v2/glossary.py index f1c2e421..94f96d08 100644 --- a/md_processing/v2/glossary.py +++ b/md_processing/v2/glossary.py @@ -5,7 +5,7 @@ from loguru import logger from pyegeria import EgeriaTech, PyegeriaException -from md_processing.v2.processors import AsyncBaseCommandProcessor +from md_processing.v2.processors import AsyncBaseCommandProcessor, describe_exception from md_processing.md_processing_utils.md_processing_constants import ( get_command_spec, APPLY_CLASSIFICATION_VERBS, REMOVE_CLASSIFICATION_VERBS, UPDATE_CLASSIFICATION_VERBS, @@ -16,6 +16,44 @@ async_add_note_in_dr_e ) +def term_properties_and_classifications(prop_body: dict, attributes: dict) -> dict: + """The glossary-term properties and the term-flag classifications (F-B group 1). + + GlossaryTermProperties (odpi/egeria origin/main 0b7ee0fb) has aliases, summary, examples, abbreviation and + usage; the flags are classifications in Egeria 6, not term properties (OpenMetadataType.java ~3245-3366): + Is Abstract Concept -> AbstractConcept + Is Activity Description + Term Activity Type -> ActivityDescription(activityType) + Is Context + Context Description / Scope -> ContextDefinition(description, scope) + Is Data Value -> DataValueMeaning + Sent as properties they were silently ignored. Returns {classification name: typed properties}. + """ + def value(name): + return (attributes.get(name) or {}).get("value") + + for attribute, key in (("Aliases", "aliases"), ("Summary", "summary"), ("Example", "examples"), + ("Abbreviation", "abbreviation"), ("Usage", "usage")): + if value(attribute) not in (None, "", []): + prop_body[key] = value(attribute) + classifications = {} + if value("Is Abstract Concept") is True: + classifications["AbstractConcept"] = {"class": "AbstractConceptProperties"} + if value("Is Activity Description") is True or value("Term Activity Type"): + props = {"class": "ActivityDescriptionProperties"} + if value("Term Activity Type"): + props["activityType"] = value("Term Activity Type") + classifications["ActivityDescription"] = props + if value("Is Context") is True or value("Context Description") or value("Context Scope"): + props = {"class": "ContextDefinitionProperties"} + if value("Context Description"): + props["description"] = value("Context Description") + if value("Context Scope"): + props["scope"] = value("Context Scope") + classifications["ContextDefinition"] = props + if value("Is Data Value") is True: + classifications["DataValueMeaning"] = {"class": "DataValueMeaningProperties"} + return classifications + + class GlossaryProcessor(AsyncBaseCommandProcessor): """ Processor for Glossary collections (Glossary, Taxonomy, CanonicalVocabulary). @@ -120,6 +158,17 @@ async def fetch_element(self, guid: str) -> Optional[Dict[str, Any]]: return None + async def _classify_term(self, guid: str, classifications: dict) -> None: + """On an update, attach the term-flag classifications with the generic metadata-expert classify call.""" + for name, props in classifications.items(): + try: + await self.client.metadata_expert._async_classify_metadata_element( + guid, name, {"class": "NewClassificationRequestBody", "properties": props}) + self.add_related_result(f"Classification {name}", guid=guid, message="Classified") + except PyegeriaException as e: + self.add_related_result(f"Classification {name}", guid=guid, status="failure", + message=describe_exception(e)) + async def apply_changes(self) -> str: verb = self.command.verb attributes = self.parsed_output["attributes"] @@ -134,19 +183,7 @@ async def apply_changes(self) -> str: # 1. Properties prop_body = set_element_prop_body(om_type or "GlossaryTerm", qualified_name, attributes) - prop_body["aliases"] = attributes.get('Aliases', {}).get('value', None) - prop_body["summary"] = attributes.get('Summary', {}).get('value', None) - prop_body["examples"] = attributes.get('Example', {}).get('value', None) - prop_body["abbreviation"] = attributes.get('Abbreviation', {}).get('value', None) - prop_body["usage"] = attributes.get('Usage', {}).get('value', None) - prop_body["user_defined_status"] = attributes.get('UserDefinedStatus', {}).get('value', None) - prop_body["contextDescription"] = attributes.get('Context Description', {}).get('value', None) - prop_body["contextScope"] = attributes.get('Context Scope', {}).get('value', None) - prop_body["isAbstractConcept"] = attributes.get('Is Abstract Concept', {}).get('value') - prop_body["isActivityDescription"] = attributes.get('Is Activity Description', {}).get('value') - prop_body["isContext"] = attributes.get('Is Context', {}).get('value') - prop_body["isDataValue"] = attributes.get('Is Data Value', {}).get('value') - prop_body["termActivityType"] = attributes.get('Term Activity Type', {}).get('value', None) + term_classifications = term_properties_and_classifications(prop_body, attributes) # 2. Extract collection GUIDs # We may have one or more collections listed (Glossary Name, Folders) @@ -178,6 +215,7 @@ async def apply_changes(self) -> str: # If merge_update is False, we synchronize (replace_all=True) await self._sync_term_memberships(guid, to_be_collection_guids, not merge_update) await self._sync_term_naming_classifications(guid, attributes) + await self._classify_term(guid, term_classifications) if journal_entry: try: @@ -193,12 +231,9 @@ async def apply_changes(self) -> str: elif verb == "Create": self.last_body = body = set_create_body(om_type or "GlossaryTerm", attributes) - # ISSUE-162: the term flags default to False only on create; on update an unset - # flag stays None so filter_update_properties drops it and Egeria keeps the value. - for flag in ("isAbstractConcept", "isActivityDescription", "isContext", "isDataValue"): - if prop_body.get(flag) is None: - prop_body[flag] = False body["properties"] = prop_body + if term_classifications: # the term flags are classifications (term_properties_and_classifications) + body["initialClassifications"] = {**(body.get("initialClassifications") or {}), **term_classifications} # Anchor Scope check anchor_scope_guid = attributes.get("Anchor Scope", {}).get('guid', None) @@ -473,10 +508,10 @@ async def apply_changes(self) -> str: om_type = spec.get("OM_TYPE", "GlossaryTerm") prop_body = set_element_prop_body(om_type, qualified_name, attributes) - prop_body["examples"] = attributes.get('Example', {}).get('value', None) + term_classifications = term_properties_and_classifications(prop_body, attributes) body = set_create_body(om_type, attributes) body["properties"] = prop_body - body["initialClassifications"] = {"Question": {"class": "QuestionProperties"}} + body["initialClassifications"] = {"Question": {"class": "QuestionProperties"}, **term_classifications} raw_guid = await self.client._async_create_question(body=body) guid = self.extract_guid_or_raise(raw_guid, "Create Question") diff --git a/tests/micro-tests/test_fb_term_classifications.py b/tests/micro-tests/test_fb_term_classifications.py new file mode 100644 index 00000000..6d9775c6 --- /dev/null +++ b/tests/micro-tests/test_fb_term_classifications.py @@ -0,0 +1,37 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +"""F-B group 1: the glossary-term flags are classifications in Egeria 6. + +Sent as GlossaryTerm properties they were silently ignored (round-trip probe, PostgreSQL baseline: Is +Abstract Concept / Is Activity Description / Is Context / Is Data Value / Term Activity Type / Context Scope +DROPPED, Context Description CHANGED -- it read back the term's own description). +""" +from md_processing.v2.glossary import term_properties_and_classifications + + +def _attrs(**kv): + return {k.replace("_", " "): {"value": v} for k, v in kv.items()} + + +def test_flags_become_typed_classifications(): + props = {"class": "GlossaryTermProperties"} + classifications = term_properties_and_classifications(props, _attrs( + Is_Abstract_Concept=True, Is_Activity_Description=True, Term_Activity_Type="ACTION", Is_Context=True, + Context_Description="RTP ctx", Context_Scope="RTP scope", Is_Data_Value=True, Summary="RTP sum", + Aliases=["a1"], Example="RTP ex", Abbreviation="RTP", Usage="RTP use")) + assert classifications == { + "AbstractConcept": {"class": "AbstractConceptProperties"}, + "ActivityDescription": {"class": "ActivityDescriptionProperties", "activityType": "ACTION"}, + "ContextDefinition": {"class": "ContextDefinitionProperties", "description": "RTP ctx", "scope": "RTP scope"}, + "DataValueMeaning": {"class": "DataValueMeaningProperties"}} + assert props == {"class": "GlossaryTermProperties", "aliases": ["a1"], "summary": "RTP sum", + "examples": "RTP ex", "abbreviation": "RTP", "usage": "RTP use"} + + +def test_false_or_absent_flags_classify_nothing(): + assert term_properties_and_classifications({}, _attrs(Is_Abstract_Concept=False, Is_Context=False)) == {} + + +def test_context_description_alone_implies_context_definition(): + c = term_properties_and_classifications({}, _attrs(Context_Description="d")) + assert c == {"ContextDefinition": {"class": "ContextDefinitionProperties", "description": "d"}} diff --git a/tests/micro-tests/test_issue_162_update_does_not_reset_properties.py b/tests/micro-tests/test_issue_162_update_does_not_reset_properties.py index 762817a1..2fbb793e 100644 --- a/tests/micro-tests/test_issue_162_update_does_not_reset_properties.py +++ b/tests/micro-tests/test_issue_162_update_does_not_reset_properties.py @@ -56,6 +56,8 @@ async def test_term_update_without_flags_sends_none_of_them(): async def test_term_update_sends_a_flag_the_document_sets(): + # F-B group 1: the flags are classifications in Egeria 6 (ContextDefinition, ...), not term properties; + # a flag the document sets is classified, one it doesn't mention isn't sent at all (ISSUE-162 intent). client = AsyncMock() client._async_get_related_elements.return_value = [] proc = _processor(TermProcessor, "Update", "Glossary Term", _term_attrs(**{"Is Context": {"value": True}}), @@ -63,20 +65,24 @@ async def test_term_update_sends_a_flag_the_document_sets(): await proc.apply_changes() props = client._async_update_glossary_term.call_args.args[1]["properties"] - assert props["isContext"] is True - assert "isAbstractConcept" not in props + for flag in TERM_FLAGS: + assert flag not in props + classified = [c.args[1] for c in client.metadata_expert._async_classify_metadata_element.call_args_list] + assert classified == ["ContextDefinition"] -async def test_term_create_still_defaults_flags_to_false(): +async def test_term_create_sends_no_flag_properties_and_no_unset_classification(): client = AsyncMock() client._async_create_glossary_term.return_value = GUID proc = _processor(TermProcessor, "Create", "Glossary Term", _term_attrs(), client) await proc.apply_changes() call = client._async_create_glossary_term.call_args - props = (call.kwargs.get("body") or call.args[0])["properties"] + body = call.kwargs.get("body") or call.args[0] for flag in TERM_FLAGS: - assert props[flag] is False, flag + assert flag not in body["properties"], flag + assert not set(body.get("initialClassifications") or {}) & {"AbstractConcept", "ActivityDescription", + "ContextDefinition", "DataValueMeaning"} def _dv_attrs(): From 07eba091bbfb1917206c8c97aeeeedafb1009d15 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 14:25:19 +0000 Subject: [PATCH 18/27] Dr.Egeria: Parent Relationship Attributes without a Parent ID say so (F-B 8) Processors that build their own create body (Data Class, Data Value Specification, Measurement Specification, Informal Tag, Solution Component) never looked at Parent Relationship Attributes: 6 rows DROPPED on the round-trip probe's PostgreSQL baseline. With a Parent ID, the base processor's typed _sync_parent_relationship (F-A 1) applies them; with none there is nothing to attach them to. AsyncBaseCommandProcessor._report_unapplied (run after every apply_changes, success or failure) now records "not applied: Parent Relationship Attributes: there is no Parent ID to attach them to" when no builder reported them already, and turns every recorded note into a command warning. Signed-off-by: Dan Wolfson --- md_processing/v2/processors.py | 18 ++++++-- .../test_fb_parent_attributes_reported.py | 41 +++++++++++++++++++ 2 files changed, 56 insertions(+), 3 deletions(-) create mode 100644 tests/micro-tests/test_fb_parent_attributes_reported.py diff --git a/md_processing/v2/processors.py b/md_processing/v2/processors.py index 0d57bfcd..2d79175b 100644 --- a/md_processing/v2/processors.py +++ b/md_processing/v2/processors.py @@ -365,6 +365,20 @@ async def _sync_governance_classifications(self, guid: str, attributes: Dict[str "Policy Management Point": "PolicyManagementPoint", } + def _report_unapplied(self) -> None: + """Every attribute a body builder couldn't send says so, success or not (F-A 1, F-B). + + Parent Relationship Attributes only mean something with a Parent ID: when there is none and no builder + said anything, say why they weren't sent (F-B group 8).""" + attrs = self.parsed_output.get("attributes", {}) + for name in ("Parent Relationship Attributes", "Parent Relationship Properties"): + entry = attrs.get(name) or {} + if entry.get("value") not in (None, "", {}) and not entry.get("not_applied") \ + and not (attrs.get("Parent ID") or {}).get("guid"): + record_not_applied(attrs, name, [f"not applied: {name}: there is no Parent ID to attach them to"]) + for note in not_applied_notes(attrs): + self._add_warning(note) + async def _sync_search_keywords(self, guid: str, attributes: Dict[str, Any]) -> None: """Attach a SearchKeyword per `Search Keywords` entry (the Referenceable bundle carries it on nearly every command; no processor applied it, round-trip probe 2026-11-12). Idempotent: a keyword the element @@ -1344,9 +1358,7 @@ async def _execute(self) -> Dict[str, Any]: try: output = await self.apply_changes() finally: - # Every attribute a body builder couldn't send says so, success or not. - for note in not_applied_notes(self.parsed_output.get("attributes", {})): - self._add_warning(note) + self._report_unapplied() except PyegeriaException as e: logger.error(f"Command String: {self.command.raw_block}") if self.last_body: diff --git a/tests/micro-tests/test_fb_parent_attributes_reported.py b/tests/micro-tests/test_fb_parent_attributes_reported.py new file mode 100644 index 00000000..02d4081c --- /dev/null +++ b/tests/micro-tests/test_fb_parent_attributes_reported.py @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +"""F-B group 8: Parent Relationship Attributes are never dropped silently. + +Processors that build their own create body (Data Class, Data Value Specification, Measurement +Specification, Informal Tag, Solution Component) never looked at them: 6 rows DROPPED on the round-trip +probe's PostgreSQL baseline. With no Parent ID there is nothing to attach them to, and the command now says +so; with a Parent ID the base processor's typed _sync_parent_relationship applies them (F-A 1). +""" +from typing import Any, cast + +import pytest + +from md_processing.v2.extraction import DrECommand +from md_processing.v2.processors import AsyncBaseCommandProcessor + + +class _P(AsyncBaseCommandProcessor): + async def apply_changes(self): + return "" + + +def test_parent_attributes_without_a_parent_are_reported(): + p = _P(client=cast(Any, object()), command=DrECommand(verb="Create", object_type="Data Class", attributes={}, + raw_block="## Create Data Class"), context={}) + p.parsed_output = {"qualified_name": "RTP::DC", "attributes": { + "Display Name": {"value": "RTP DC"}, + "Parent Relationship Attributes": {"value": {"rtpKey": "RTP"}}}} + p._report_unapplied() + warnings = p.parsed_output.get("warnings", []) + assert ("not applied: Parent Relationship Attributes: there is no Parent ID to attach them to" in warnings) + + +def test_with_a_parent_or_an_earlier_report_nothing_is_added(): + p = _P(client=cast(Any, object()), command=DrECommand(verb="Create", object_type="Data Class", attributes={}, + raw_block="## Create Data Class"), context={}) + p.parsed_output = {"attributes": { + "Parent ID": {"value": "x", "guid": "0d2c3c3e-0000-0000-0000-000000000001"}, + "Parent Relationship Attributes": {"value": {"k": "v"}}}} + p._report_unapplied() + assert p.parsed_output.get("warnings", []) == [] From 9cec95f5a983b7c027a5e75e3529cbe63321e381 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 14:29:27 +0000 Subject: [PATCH 19/27] Dr.Egeria: one-off attributes under Egeria's keys, or reported (F-B 6) The one-off drops on the round-trip probe's PostgreSQL baseline, each checked against the Java class (properties_class_fields, odpi/egeria origin/main 0b7ee0fb): - filled where the class declares the key: Implementation Description (the governance types that have implementationDescription), Headcount -> headCount, Working Set Disposition, Digital Product productName / maturity / serviceLife / introductionDate, Member Ordinal -> ordinal (Reference Data Value), plus Scope / Usage / Purpose; - renamed where a processor used a key the class doesn't declare: withdrawalDate -> withdrawDate, nextVersion -> nextVersionDate, headcount -> headCount; - reported where the class has no such property: Current Version, Coverage Category, Minimum/Maximum Cardinality and Position on Data Field, Is Default Member / Default Member (a property of the ValidValueMember link). The domain builders (collection manager, actor manager, solution architect, product, data field, governance) now end with complete_bundle_properties, so keys they add after the common builder are checked too. Status, Situation, Objective, Units and the Uncertainties were covered by group 5. Not changed here (probe read-back or spec metadata): Cited Document's publication dates are sent as firstPublicationDate / publicationDate (the spec's property_name says firstPubDate/pubDate: F-C); Report's analytic parameters travel inside reportParameters; Glossary Is Canonical / Is Taxonomy are classifications; Domain Identifier is sent as Egeria's number. Signed-off-by: Dan Wolfson --- .../md_processing_utils/common_md_utils.py | 46 +++++++++++++--- tests/micro-tests/test_fb_one_off_keys.py | 52 +++++++++++++++++++ 2 files changed, 91 insertions(+), 7 deletions(-) create mode 100644 tests/micro-tests/test_fb_one_off_keys.py diff --git a/md_processing/md_processing_utils/common_md_utils.py b/md_processing/md_processing_utils/common_md_utils.py index d4b5c45b..d20e3f00 100644 --- a/md_processing/md_processing_utils/common_md_utils.py +++ b/md_processing/md_processing_utils/common_md_utils.py @@ -519,7 +519,25 @@ def set_element_prop_body(object_type: str, qualified_name: str, attributes: dic #: Attributes several types share under the same key but with other meanings elsewhere (e.g. Project Scope): #: filled when the type declares the key, never reported when it doesn't. -BUNDLE_OPTIONAL = {"Scope": "scope", "Usage": "usage", "Purpose": "purpose"} +BUNDLE_OPTIONAL = { + "Scope": "scope", "Usage": "usage", "Purpose": "purpose", + # one-offs a processor left out (F-B group 6), under the key Egeria's class declares + "Headcount": "headCount", "Disposition": "disposition", "Implementation Description": "implementationDescription", + "Product Name": "productName", "Maturity": "maturity", "Service Life": "serviceLife", + "Introduction Date": "introductionDate", "Withdrawal Date": "withdrawDate", "Next Version Date": "nextVersionDate", + "Member Ordinal": "ordinal", +} + +#: One-off attributes with no property on most of the types that offer them: filled where the class declares +#: the key, reported where it doesn't (F-B group 6). +ONE_OFF_REPORTED = { + "Current Version": "currentVersion", "Coverage Category": "coverageCategory", + "Minimum Cardinality": "minCardinality", "Maximum Cardinality": "maxCardinality", "Position": "position", + "Is Default Member": "isDefaultMember", "Default Member": "defaultMember", +} + +#: Keys some processors send under a name the Java class doesn't declare, and the name it does. +KEY_RENAMES = {"withdrawalDate": "withdrawDate", "nextVersion": "nextVersionDate", "headcount": "headCount"} def complete_bundle_properties(props: dict, attributes: dict) -> dict: @@ -543,6 +561,20 @@ def complete_bundle_properties(props: dict, attributes: dict) -> dict: if value in (None, "", [], {}) or props.get(key) not in (None, "", [], {}): continue props[key] = value + if fields is not None: + for wrong, right in KEY_RENAMES.items(): + if wrong in props and wrong not in fields and right in fields: + value = props.pop(wrong) + if props.get(right) in (None, "", [], {}): + props[right] = value + for attribute, key in ONE_OFF_REPORTED.items(): + value = (attributes.get(attribute) or {}).get("value") + if value in (None, "", [], {}) or props.get(key) not in (None, "", [], {}): + continue + if fields is not None and key not in fields: + record_not_applied(attributes, attribute, [f"not applied: {attribute}: {cls} has no {key} property"]) + else: + props[key] = value for attribute, key in BUNDLE_OPTIONAL.items(): # filled where the type declares them; never reported value = (attributes.get(attribute) or {}).get("value") if fields is not None and key in fields and value not in (None, "", [], {}) \ @@ -666,7 +698,7 @@ def set_collection_manager_body(object_type: str, qualified_name: str, attribute "businessImplementationType": attributes.get('Business Implementation Type', {}).get('value', None), }) - return prop_bod + return complete_bundle_properties(prop_bod, attributes) # keys added after the common builder (F-B 6) def set_actor_manager_prop_body(object_type: str, qualified_name: str, attributes: dict) -> dict: @@ -708,7 +740,7 @@ def set_actor_manager_prop_body(object_type: str, qualified_name: str, attribute except (ValueError, TypeError): prop_bod["headCount"] = None - return prop_bod + return complete_bundle_properties(prop_bod, attributes) # keys added after the common builder (F-B 6) def set_solution_architect_body(object_type: str, qualified_name: str, attributes: dict) -> dict: @@ -744,7 +776,7 @@ def set_solution_architect_body(object_type: str, qualified_name: str, attribute record_not_applied(attributes, attribute, [f"not applied: {attribute}: SolutionActorRoleProperties has no {key} property"]) - return prop_bod + return complete_bundle_properties(prop_bod, attributes) # keys added after the common builder (F-B 6) def set_product_body(object_type: str, qualified_name: str, attributes: dict) -> dict: @@ -756,7 +788,7 @@ def set_product_body(object_type: str, qualified_name: str, attributes: dict) -> prop_bod["introductionDate"] = attributes.get('Introduction Date', {}).get('value', []) prop_bod["withdrawalDate"] = attributes.get('Withdrawal Date', {}).get('value', []) prop_bod["nextVersion"] = attributes.get('Next Version Date', {}).get('value', []) - return prop_bod + return complete_bundle_properties(prop_bod, attributes) # keys added after the common builder (F-B 6) def set_data_field_body(object_type: str, qualified_name: str, attributes: dict)->dict: prop_bod = set_element_prop_body(object_type, qualified_name, attributes) @@ -775,7 +807,7 @@ def set_data_field_body(object_type: str, qualified_name: str, attributes: dict) prop_bod["sortOrder"] = attributes.get('Sort Order', {}).get('value', None) prop_bod["isPartitionKey"] = attributes.get('Is Partition Key', {}).get('value', None) prop_bod["partitionKeyPosition"] = attributes.get('Partition Key Position', {}).get('value', None) - return prop_bod + return complete_bundle_properties(prop_bod, attributes) # keys added after the common builder (F-B 6) def set_update_status_body(object_type: str, attributes: dict)->dict: return { @@ -819,7 +851,7 @@ def set_gov_prop_body(object_type: str, qualified_name: str, attributes: dict)-> body = update_gov_body_for_type(object_type, prop_bod, attributes) - return body + return complete_bundle_properties(body, attributes) # keys added after the common builder (F-B 6) def update_gov_body_for_type(object_type: str, body: dict, attributes: dict) -> dict: diff --git a/tests/micro-tests/test_fb_one_off_keys.py b/tests/micro-tests/test_fb_one_off_keys.py new file mode 100644 index 00000000..91f68364 --- /dev/null +++ b/tests/micro-tests/test_fb_one_off_keys.py @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +"""F-B group 6: one-off attributes go under the key Egeria's class declares, or are reported. + +Round-trip probe, PostgreSQL baseline: Implementation Description (9 governance definitions), Headcount (3 +roles), Digital Product dates and names, Working Set Disposition, Member Ordinal, Data Field cardinalities / +position / coverage category, ... were dropped -- left out, or sent under a key the class doesn't declare +(withdrawalDate, nextVersion). +""" +from md_processing.md_processing_utils.common_md_utils import ( + complete_bundle_properties, set_actor_manager_prop_body, set_product_body) +from md_processing.md_processing_utils.typed_properties import not_applied_notes + + +def _attrs(**kv): + return {k.replace("_", " "): {"value": v} for k, v in kv.items()} + + +def test_declared_one_offs_are_filled(): + a = _attrs(Implementation_Description="RTP impl", Disposition="RTP disp", Member_Ordinal="7") + assert complete_bundle_properties({"class": "CertificationTypeProperties"}, a)["implementationDescription"] == "RTP impl" + assert complete_bundle_properties({"class": "WorkingSetProperties"}, a)["disposition"] == "RTP disp" + assert complete_bundle_properties({"class": "ReferenceDataValueProperties"}, a)["ordinal"] == "7" + # GovernancePolicyProperties declares none of them: not filled, and not reported (fill-only map) + props = complete_bundle_properties({"class": "GovernancePolicyProperties"}, a) + assert "implementationDescription" not in props + + +def test_digital_product_keys_are_egerias(): + a = _attrs(Display_Name="RTP P", Product_Name="RTP p", Maturity="m", Service_Life="s", + Introduction_Date="2020-01-02", Withdrawal_Date="2031-01-02", Next_Version_Date="2031-01-02", + Current_Version="2") + props = set_product_body("Digital Product", "RTP::P", a) + assert props["withdrawDate"] == "2031-01-02" and props["nextVersionDate"] == "2031-01-02" + assert "withdrawalDate" not in props and "nextVersion" not in props + assert props["productName"] == "RTP p" and props["maturity"] == "m" and props["serviceLife"] == "s" + assert "not applied: Current Version: DigitalProductProperties has no currentVersion property" in not_applied_notes(a) + + +def test_headcount_is_head_count(): + a = _attrs(Display_Name="RTP Role", Headcount="7") + props = set_actor_manager_prop_body("Governance Role", "RTP::Role", a) + assert props.get("headCount") in (7, "7") and "headcount" not in props + + +def test_data_field_one_offs_without_a_field_are_reported(): + a = _attrs(Coverage_Category="RTP", Minimum_Cardinality="1", Maximum_Cardinality="2", Position="3") + complete_bundle_properties({"class": "DataFieldProperties"}, a) + notes = not_applied_notes(a) + for attribute, key in (("Coverage Category", "coverageCategory"), ("Minimum Cardinality", "minCardinality"), + ("Maximum Cardinality", "maxCardinality"), ("Position", "position")): + assert f"not applied: {attribute}: DataFieldProperties has no {key} property" in notes From 428f2979497929b69ecc68bdaefd94f2ca7f93e5 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 14:40:44 +0000 Subject: [PATCH 20/27] Dr.Egeria: close the last silent drops the F-B gate run showed (F-B 5/6/7) From the F-B gate run (20261112T143304Z, PostgreSQL scratch): - complete_bundle_properties: a Scope/Usage/Purpose key a processor put in a body whose class doesn't declare it is stripped and reported (Schema Attribute / Display Data Container / Field sent `usage`, which SchemaAttributeProperties lacks). - Schema Maker: contentStatus comes from the status helper, so a written Status isn't overwritten by the parser's default Content Status. - Reference Data Value / Set: bundle completion after the type's own properties (Member Ordinal -> ordinal). - Create Informal Tag, the Asset Maker technology-type creates and Create CSV File take only a few arguments (a tag's name and description; a template's placeholders): every other bundle or status attribute given is reported (common_md_utils.report_unsent_bundle). - Project: when Identifier and Project Identifier are both given, Identifier wins and Project Identifier is reported. 3.13 micro suite: 3402 passed. Signed-off-by: Dan Wolfson --- .../md_processing_utils/common_md_utils.py | 19 ++++++++++++++++--- md_processing/v2/asset_maker.py | 8 ++++++++ .../v2/collection_manager_processor.py | 4 ++++ md_processing/v2/feedback.py | 5 ++++- md_processing/v2/project.py | 8 ++++++-- md_processing/v2/reference_data.py | 3 ++- md_processing/v2/schema_maker.py | 3 ++- .../micro-tests/test_fb_bundle_properties.py | 19 +++++++++++++++++++ .../micro-tests/test_fb_project_attributes.py | 9 +++++++++ 9 files changed, 70 insertions(+), 8 deletions(-) diff --git a/md_processing/md_processing_utils/common_md_utils.py b/md_processing/md_processing_utils/common_md_utils.py index d20e3f00..953e1605 100644 --- a/md_processing/md_processing_utils/common_md_utils.py +++ b/md_processing/md_processing_utils/common_md_utils.py @@ -575,10 +575,14 @@ def complete_bundle_properties(props: dict, attributes: dict) -> dict: record_not_applied(attributes, attribute, [f"not applied: {attribute}: {cls} has no {key} property"]) else: props[key] = value - for attribute, key in BUNDLE_OPTIONAL.items(): # filled where the type declares them; never reported + for attribute, key in BUNDLE_OPTIONAL.items(): # filled where the type declares them value = (attributes.get(attribute) or {}).get("value") - if fields is not None and key in fields and value not in (None, "", [], {}) \ - and props.get(key) in (None, "", [], {}): + if fields is not None and key not in fields: + # a processor put it in a body whose class doesn't declare it: Egeria would ignore it + if props.pop(key, None) not in (None, "", [], {}): + record_not_applied(attributes, attribute, [f"not applied: {attribute}: {cls} has no {key} property"]) + continue + if value not in (None, "", [], {}) and props.get(key) in (None, "", [], {}): props[key] = value for key, value in element_status_properties(cls, attributes).items(): if props.get(key) in (None, ""): @@ -587,6 +591,15 @@ def complete_bundle_properties(props: dict, attributes: dict) -> dict: return props +def report_unsent_bundle(attributes: dict, sent: set, reason: str) -> None: + """For a create whose client call takes only some arguments (an informal tag, a create-from-template): + every bundle or status attribute given that isn't in `sent` is reported "not applied: : ".""" + for attribute in [*BUNDLE_PROPERTIES, "Status", "Content Status", "Activity Status", "Deployment Status"]: + entry = attributes.get(attribute) or {} + if attribute not in sent and entry.get("value") not in (None, "", [], {}) and not entry.get("is_default"): + record_not_applied(attributes, attribute, [f"not applied: {attribute}: {reason}"]) + + def person_action_extras(attributes: dict, properties_class: str) -> dict: """The properties a my-profile create (To-Do, Meeting, Review) doesn't take as arguments: effective dates. Objective is reported where the type has none (only MeetingProperties does). F-B group 5/6.""" diff --git a/md_processing/v2/asset_maker.py b/md_processing/v2/asset_maker.py index 43b9ff5f..3cb8f4b2 100644 --- a/md_processing/v2/asset_maker.py +++ b/md_processing/v2/asset_maker.py @@ -15,6 +15,7 @@ from loguru import logger +from md_processing.md_processing_utils.common_md_utils import report_unsent_bundle from md_processing.v2.processors import AsyncBaseCommandProcessor from md_processing.md_processing_utils.common_md_utils import update_element_dictionary from md_processing.md_processing_utils.typed_properties import (classification_map, entity_properties, @@ -48,6 +49,13 @@ async def apply_changes(self) -> str: om_type = self.get_command_spec().get("OM_TYPE") command_key = self.command.object_type + if not (command_key == "Element" and not om_type): + # A technology-type create fills its template's placeholders only (name, host, description, + # version, ...): the bundle attributes the command also offers can't be sent (F-B group 5). + report_unsent_bundle(attributes, {"Description", "Version Identifier"}, + f"Create {command_key} is made from its technology type's template, which " + "takes only the template's placeholder values") + if command_key == "Element" and not om_type: # Generic 'Create Element' -- the raw TemplateRequestBody surface. # Egeria dropped initialStatus (ISSUE-113); the copy keeps the template's diff --git a/md_processing/v2/collection_manager_processor.py b/md_processing/v2/collection_manager_processor.py index e3ce8e2f..4077d6b6 100644 --- a/md_processing/v2/collection_manager_processor.py +++ b/md_processing/v2/collection_manager_processor.py @@ -4,6 +4,7 @@ from typing import Dict, Any, Optional from loguru import logger +from md_processing.md_processing_utils.common_md_utils import report_unsent_bundle from md_processing.v2.processors import AsyncBaseCommandProcessor from md_processing.md_processing_utils.common_md_utils import ( set_create_body, set_update_body, @@ -241,6 +242,9 @@ async def apply_changes(self) -> str: qualified_name = self.parsed_output["qualified_name"] display_name = attributes.get('Display Name', {}).get('value', qualified_name) + report_unsent_bundle(attributes, {"Description", "Version Identifier"}, + f"Create {self.command.object_type} is made from the CSV Data File template, which " + "takes only the template's placeholder values") # `Create CSV File` (Digital Product Manager) has no File Name / File Type of its own: the file is # named by its Display Name, and the type is the CSV data file the template creates. raw_guid = await self.client._async_get_create_csv_data_file_element_from_template( diff --git a/md_processing/v2/feedback.py b/md_processing/v2/feedback.py index 6c0c236f..8bbcd3e8 100644 --- a/md_processing/v2/feedback.py +++ b/md_processing/v2/feedback.py @@ -7,7 +7,8 @@ from pyegeria import EgeriaTech, PyegeriaException, COMMENT_TYPES from pyegeria.core._exceptions import PyegeriaInvalidParameterException -from md_processing.md_processing_utils.common_md_utils import complete_bundle_properties, person_action_extras +from md_processing.md_processing_utils.common_md_utils import (complete_bundle_properties, person_action_extras, + report_unsent_bundle) from md_processing.v2.processors import AsyncBaseCommandProcessor from md_processing.v2.multilink import async_link_or_update, update_body from md_processing.md_processing_utils.common_md_utils import ( @@ -203,6 +204,8 @@ async def apply_changes(self) -> str: return await self.client._async_get_tag_by_guid(guid, output_format='MD') elif verb == "Create": + report_unsent_bundle(attributes, {"Description"}, + "the informal-tag call takes only a name and a description") response = await self.client._async_create_informal_tag(display_name, description, qualified_name) guid = self.extract_guid_or_raise(response, "Create Informal Tag") if guid: diff --git a/md_processing/v2/project.py b/md_processing/v2/project.py index 9122f07a..29344b00 100644 --- a/md_processing/v2/project.py +++ b/md_processing/v2/project.py @@ -99,8 +99,12 @@ async def apply_changes(self) -> str: # PROJECT-ATTRIBUTES-MAPPING-2026-11-12 + the owner's decisions (F-B group 7). ProjectProperties # (odpi/egeria origin/main 0b7ee0fb) has no projectIdentifier / purposes / projectType / projectScope / # project{Approach,ManagementStyle,ResultsUsage}: those keys were sent and silently ignored. - if attributes.get('Project Identifier', {}).get('value') and not prop_body.get("identifier"): - prop_body["identifier"] = attributes['Project Identifier']['value'] # ReferenceableProperties + if attributes.get('Project Identifier', {}).get('value'): + if not prop_body.get("identifier"): + prop_body["identifier"] = attributes['Project Identifier']['value'] # ReferenceableProperties + elif prop_body["identifier"] != attributes['Project Identifier']['value']: + record_not_applied(attributes, "Project Identifier", [ + "not applied: Project Identifier: Identifier is also given, and both are Egeria's identifier"]) if attributes.get('Purposes', {}).get('value'): record_not_applied(attributes, "Purposes", [ "not applied: Purposes: Project Purposes was removed (owner's decision, 2026-11-12)"]) diff --git a/md_processing/v2/reference_data.py b/md_processing/v2/reference_data.py index 99d4b8ba..c8aced4e 100644 --- a/md_processing/v2/reference_data.py +++ b/md_processing/v2/reference_data.py @@ -19,7 +19,7 @@ async_add_note_in_dr_e, set_create_body, set_delete_rel_request_body, - set_element_prop_body, + set_element_prop_body, complete_bundle_properties, set_rel_request_body, set_update_body, update_element_dictionary, @@ -304,6 +304,7 @@ async def apply_changes(self) -> str: props = set_element_prop_body(object_type, qualified_name, attributes) props.update(_valid_value_props(attributes)) + complete_bundle_properties(props, attributes) # Member Ordinal -> ordinal, ... (F-B group 6) if verb == "Update": guid = self.parsed_output.get("guid") or ( diff --git a/md_processing/v2/schema_maker.py b/md_processing/v2/schema_maker.py index 40378b15..e728c5a0 100644 --- a/md_processing/v2/schema_maker.py +++ b/md_processing/v2/schema_maker.py @@ -79,7 +79,8 @@ async def apply_changes(self) -> str: "versionIdentifier": _v(attributes, "Version Identifier"), "url": _v(attributes, "URL"), "usage": _v(attributes, "Usage"), - "contentStatus": _v(attributes, "Content Status"), + # contentStatus comes from complete_bundle_properties (element_status_properties): a written Status + # or Content Status, not the parser's default for Content Status overriding a written Status. "authors": _v(attributes, "Authors"), "additionalProperties": _v(attributes, "Additional Properties"), "effectiveFrom": _v(attributes, "Effective From"), diff --git a/tests/micro-tests/test_fb_bundle_properties.py b/tests/micro-tests/test_fb_bundle_properties.py index 97b2fe0f..6922f1fc 100644 --- a/tests/micro-tests/test_fb_bundle_properties.py +++ b/tests/micro-tests/test_fb_bundle_properties.py @@ -111,3 +111,22 @@ async def render(guid): assert props["class"] == "BlogEntryProperties" and props["situation"] == "RTP situation" assert props["effectiveFrom"] == "2020-01-02" and props["identifier"] == "RTP id" assert props["qualifiedName"] == "RTP::Blog" + + +def test_an_optional_key_the_class_lacks_is_stripped_and_reported(): + a = _attrs(Usage="RTP usage") + props = complete_bundle_properties({"class": "SchemaAttributeProperties", "usage": "RTP usage"}, a) + if "usage" not in __import__("md_processing.md_processing_utils.properties_class_fields", + fromlist=["x"]).PROPERTIES_CLASS_FIELDS["SchemaAttributeProperties"][1]: + assert "usage" not in props + assert not_applied_notes(a) == ["not applied: Usage: SchemaAttributeProperties has no usage property"] + + +def test_template_and_tag_creates_report_the_bundle_they_cant_send(): + from md_processing.md_processing_utils.common_md_utils import report_unsent_bundle + a = _attrs(Description="d", Category="c", Identifier="i") + a["Content Status"] = {"value": "ACTIVE", "is_default": True} + report_unsent_bundle(a, {"Description"}, "the informal-tag call takes only a name and a description") + assert not_applied_notes(a) == [ + "not applied: Category: the informal-tag call takes only a name and a description", + "not applied: Identifier: the informal-tag call takes only a name and a description"] diff --git a/tests/micro-tests/test_fb_project_attributes.py b/tests/micro-tests/test_fb_project_attributes.py index cc0206d7..5ec96d98 100644 --- a/tests/micro-tests/test_fb_project_attributes.py +++ b/tests/micro-tests/test_fb_project_attributes.py @@ -78,3 +78,12 @@ async def test_unknown_project_type_is_reported(): assert "Moonshot" not in body.get("initialClassifications", {}) assert not_applied_notes(attributes) == [ "not applied: Project Type: Moonshot isn't an Egeria project classification"] + + +@pytest.mark.asyncio +async def test_identifier_and_project_identifier_both_given(): + body, attributes = await _create(_attrs(Display_Name="RTP Project", Identifier="RTP-id", + Project_Identifier="RTP-P-1")) + assert body["properties"]["identifier"] == "RTP-id" + assert not_applied_notes(attributes) == [ + "not applied: Project Identifier: Identifier is also given, and both are Egeria's identifier"] From 13733655fe535f1bcc0102d89f090e8eb808bf12 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 15:01:11 +0000 Subject: [PATCH 21/27] Dr.Egeria: schema attribute position/cardinality on its parent link (F-B) Architect read-back of 428f2979 (corrects the earlier "Egeria gap" reading): in Egeria 6, position / minCardinality / maxCardinality are properties of the AttributeForSchema / NestedSchemaAttribute relationships (AttributeForSchemaProperties, NestedSchemaAttributeProperties; types archive ~8386/8436, written by OpenMetadataRelationshipBuilder), and the entity's ordered flag is orderedValues (SchemaAttributeProperties). Dr.Egeria sent elementPosition / minCardinality / maxCardinality / isOrderedValues on the SchemaAttribute entity, where they were ignored. - Is Ordered Values -> orderedValues on the entity. - Element Position / Min / Max Cardinality (coerced to integers) go into the typed parentRelationshipProperties of the create when the attribute is linked by a Parent ID with Parent Relationship Type Name AttributeForSchema or NestedSchemaAttribute. - Otherwise -- no such parent link, or an Update (which doesn't change the link) -- each is reported "not applied" with that reason. Signed-off-by: Dan Wolfson --- md_processing/v2/schema_maker.py | 51 +++++++++++-- ...est_fb_schema_attribute_link_properties.py | 74 +++++++++++++++++++ 2 files changed, 118 insertions(+), 7 deletions(-) create mode 100644 tests/micro-tests/test_fb_schema_attribute_link_properties.py diff --git a/md_processing/v2/schema_maker.py b/md_processing/v2/schema_maker.py index e728c5a0..df02ffdd 100644 --- a/md_processing/v2/schema_maker.py +++ b/md_processing/v2/schema_maker.py @@ -12,7 +12,7 @@ from md_processing.v2.processors import AsyncBaseCommandProcessor from md_processing.md_processing_utils.common_md_utils import complete_bundle_properties, update_element_dictionary -from md_processing.md_processing_utils.typed_properties import (classification_map, entity_properties, +from md_processing.md_processing_utils.typed_properties import (classification_map, entity_properties, long_value, parent_relationship_properties, record_not_applied) @@ -25,11 +25,45 @@ def _guid(attributes: dict, name: str): return attributes.get(name, {}).get("guid") -def _outer_body(attributes: dict, properties: dict) -> dict: +#: Schema-attribute attributes that are properties of its link to the parent schema type / attribute in +#: Egeria 6 (AttributeForSchema, NestedSchemaAttribute; types archive ~8386/8436, written by +#: OpenMetadataRelationshipBuilder), not of the SchemaAttribute entity. +_LINK_PROPERTIES = {"Element Position": "position", "Min Cardinality": "minCardinality", + "Max Cardinality": "maxCardinality"} +_SCHEMA_LINKS = ("AttributeForSchema", "NestedSchemaAttribute") + + +def _schema_link_properties(attributes: dict, creating: bool) -> dict: + """{key: int} for the link properties given; each reported "not applied" when there is no link to put it on + (no Parent ID with an AttributeForSchema / NestedSchemaAttribute Parent Relationship Type Name, or an + update, which doesn't change the link).""" + values = {} + for attribute, key in _LINK_PROPERTIES.items(): + value, notes = long_value(attributes, attribute) + record_not_applied(attributes, attribute, notes) + if value is not None: + values[attribute] = (key, value) + if not values: + return {} + rel_type = _v(attributes, "Parent Relationship Type Name") + if creating and _guid(attributes, "Parent ID") and rel_type in _SCHEMA_LINKS: + return {key: value for key, value in values.values()} + reason = ("an update doesn't change the attribute's link to its parent" if not creating else + "it is a property of the attribute's AttributeForSchema / NestedSchemaAttribute link, and no Parent ID " + "with one of those Parent Relationship Type Names is given") + for attribute in values: + record_not_applied(attributes, attribute, [f"not applied: {attribute}: {reason}"]) + return {} + + +def _outer_body(attributes: dict, properties: dict, link_properties: dict | None = None) -> dict: """Build the NewElementRequestBody wrapper shared by Create Schema Type and Create Schema Attribute.""" parent_props, notes = parent_relationship_properties(attributes) record_not_applied(attributes, "Parent Relationship Attributes", notes) + if link_properties: + rel_type = _v(attributes, "Parent Relationship Type Name") + parent_props = {**(parent_props or {"class": f"{rel_type}Properties"}), **link_properties} classifications, notes = classification_map(_v(attributes, "Initial Classifications"), "Initial Classifications") record_not_applied(attributes, "Initial Classifications", notes) return { @@ -87,12 +121,12 @@ async def apply_changes(self) -> str: "effectiveTo": _v(attributes, "Effective To"), } if is_attribute: + # SchemaAttributeProperties' key is orderedValues (odpi/egeria origin/main 0b7ee0fb); position and + # the cardinalities are properties of the link to the parent (AttributeForSchemaProperties / + # NestedSchemaAttributeProperties), not of the attribute entity: see _schema_link_properties. props.update({ - "elementPosition": _v(attributes, "Element Position"), - "minCardinality": _v(attributes, "Min Cardinality"), - "maxCardinality": _v(attributes, "Max Cardinality"), "allowsDuplicateValues": _v(attributes, "Allows Duplicate Values"), - "isOrderedValues": _v(attributes, "Is Ordered Values"), + "orderedValues": _v(attributes, "Is Ordered Values"), }) # Egeria's SchemaAttributeProperties declares defaultValueOverride (SchemaAttributeProperties.java:52) # and its builder writes it (OpenMetadataElementBuilder.java:2225), but the repository's TypeDef @@ -131,6 +165,8 @@ async def apply_changes(self) -> str: if self.as_is_element: guid = self.as_is_element["elementHeader"]["guid"] + if is_attribute: + _schema_link_properties(attributes, creating=False) update_body = { "class": "UpdateElementRequestBody", "properties": self.filter_update_properties(props, _v(attributes, "Merge Update", True)), @@ -142,7 +178,8 @@ async def apply_changes(self) -> str: await client._async_update_schema_type(guid, update_body) verb_word = "Updated" else: - create_body = _outer_body(attributes, props) + create_body = _outer_body(attributes, props, + _schema_link_properties(attributes, creating=True) if is_attribute else None) if is_attribute: guid = await client._async_create_schema_attribute(create_body) else: diff --git a/tests/micro-tests/test_fb_schema_attribute_link_properties.py b/tests/micro-tests/test_fb_schema_attribute_link_properties.py new file mode 100644 index 00000000..99a6a2ff --- /dev/null +++ b/tests/micro-tests/test_fb_schema_attribute_link_properties.py @@ -0,0 +1,74 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +"""F-B follow-up: a schema attribute's position and cardinalities belong on its link to the parent. + +In Egeria 6 position / minCardinality / maxCardinality are properties of the AttributeForSchema / +NestedSchemaAttribute relationships (AttributeForSchemaProperties, NestedSchemaAttributeProperties; types +archive ~8386/8436, written by OpenMetadataRelationshipBuilder), and the entity's ordered flag is +`orderedValues`. Dr.Egeria sent elementPosition / minCardinality / maxCardinality / isOrderedValues on the +SchemaAttribute entity, where Egeria ignored them (round-trip probe: in the body, not stored). +""" +from typing import Any, cast + +import pytest + +from md_processing.md_processing_utils.typed_properties import not_applied_notes +from md_processing.v2.extraction import DrECommand +from md_processing.v2.schema_maker import SchemaElementProcessor + +PARENT = "7a1c2e5d-0000-0000-0000-00000000000a" + + +class _SchemaMaker: + def __init__(self): + self.bodies = [] + + async def _async_create_schema_attribute(self, body): + self.bodies.append(body) + return "aaaaaaaa-0000-0000-0000-000000000009" + + +class _Client: + def __init__(self): + self.schema_maker = _SchemaMaker() + + +async def _async_value(value): + return value + + +async def _create(attributes): + client = _Client() + p = SchemaElementProcessor(client=cast(Any, client), command=DrECommand( + verb="Create", object_type="Schema Attribute", attributes={}, raw_block="## Create Schema Attribute"), + context={}) + p.get_command_spec = lambda: {"OM_TYPE": "SchemaAttribute"} + p.parsed_output = {"qualified_name": "RTP::SA", "attributes": {"Display Name": {"value": "RTP SA"}, **attributes}} + p.as_is_element = None + p.render_result_markdown = lambda guid: _async_value(guid) + await p.apply_changes() + return client.schema_maker.bodies[0], p.parsed_output["attributes"] + + +@pytest.mark.asyncio +async def test_link_properties_go_on_the_parent_relationship(): + body, attributes = await _create({ + "Parent ID": {"value": "RTP::ST", "guid": PARENT}, + "Parent Relationship Type Name": {"value": "AttributeForSchema"}, + "Element Position": {"value": 7}, "Min Cardinality": {"value": "0"}, "Max Cardinality": {"value": 1}, + "Is Ordered Values": {"value": True}}) + props = body["properties"] + for key in ("elementPosition", "minCardinality", "maxCardinality", "isOrderedValues", "position"): + assert key not in props + assert props["orderedValues"] is True + assert body["parentRelationshipProperties"] == {"class": "AttributeForSchemaProperties", "position": 7, + "minCardinality": 0, "maxCardinality": 1} + assert not_applied_notes(attributes) == [] + + +@pytest.mark.asyncio +async def test_without_a_schema_link_they_are_reported(): + body, attributes = await _create({"Element Position": {"value": 7}, "Min Cardinality": {"value": 0}}) + assert body["parentRelationshipProperties"] is None + notes = not_applied_notes(attributes) + assert len(notes) == 2 and all("AttributeForSchema / NestedSchemaAttribute link" in n for n in notes) From acf9cf8238383504d9a7e356f8eb80e17f28e940 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 15:04:10 +0000 Subject: [PATCH 22/27] Dr.Egeria: no spec defaults when a Create resolves to an existing element Architect read-back residual: the parser fills in spec defaults for create verbs (Content Status ACTIVE, ...), and a Create that finds its element is processed as an update -- so those defaults could overwrite stored values the document never mentioned. AsyncBaseCommandProcessor now drops every attribute whose value came only from a default ("is_default") before applying, when the verb is a create-like one and the as-is element exists. Values the document wrote are kept. 3.13 micro suite: 3405 passed. Signed-off-by: Dan Wolfson --- md_processing/v2/processors.py | 12 +++++++++ .../test_fb_no_defaults_on_upsert.py | 25 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 tests/micro-tests/test_fb_no_defaults_on_upsert.py diff --git a/md_processing/v2/processors.py b/md_processing/v2/processors.py index 2d79175b..994f1540 100644 --- a/md_processing/v2/processors.py +++ b/md_processing/v2/processors.py @@ -365,6 +365,13 @@ async def _sync_governance_classifications(self, guid: str, attributes: Dict[str "Policy Management Point": "PolicyManagementPoint", } + def _drop_spec_defaults(self) -> None: + """Remove the attributes whose value came only from the spec's default (parsed_attributes "is_default"), + keeping everything the document wrote.""" + attrs = self.parsed_output.get("attributes") or {} + for name in [n for n, entry in attrs.items() if isinstance(entry, dict) and entry.get("is_default")]: + del attrs[name] + def _report_unapplied(self) -> None: """Every attribute a body builder couldn't send says so, success or not (F-A 1, F-B). @@ -1218,6 +1225,11 @@ async def _execute(self) -> Dict[str, Any]: "errors": errors, } + # A Create that found its element is an update (upsert): spec defaults the parser filled in for a + # create must not overwrite stored values the document never mentioned (Architect read-back of F-B). + if self.as_is_element and self.command.verb in ("Create", "Define", "Register", "Add", "Upsert"): + self._drop_spec_defaults() + # Check for blockers before applying changes if self.parsed_output.get("errors"): guid = self.parsed_output.get("guid") diff --git a/tests/micro-tests/test_fb_no_defaults_on_upsert.py b/tests/micro-tests/test_fb_no_defaults_on_upsert.py new file mode 100644 index 00000000..2dfdc0d1 --- /dev/null +++ b/tests/micro-tests/test_fb_no_defaults_on_upsert.py @@ -0,0 +1,25 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +"""A Create that resolves to an existing element is an update: the spec defaults the parser filled in for +a create (Content Status ACTIVE, ...) must not overwrite values the document never mentioned.""" +from typing import Any, cast + +from md_processing.v2.extraction import DrECommand +from md_processing.v2.processors import AsyncBaseCommandProcessor + + +class _P(AsyncBaseCommandProcessor): + async def apply_changes(self): + return "" + + +def test_spec_defaults_are_dropped_and_written_values_kept(): + p = _P(client=cast(Any, object()), command=DrECommand(verb="Create", object_type="Glossary", attributes={}, + raw_block="## Create Glossary"), context={}) + p.parsed_output = {"attributes": { + "Display Name": {"value": "RTP"}, + "Content Status": {"value": "ACTIVE", "is_default": True}, + "Description": {"value": "written"}, + "Merge Update": {"value": True, "is_default": True}}} + p._drop_spec_defaults() + assert set(p.parsed_output["attributes"]) == {"Display Name", "Description"} From 408f26f25fd016d23faff3ac6ec649a64b71e455 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 15:10:11 +0000 Subject: [PATCH 23/27] Dr.Egeria: schema link properties use the Architect's wording when not applied Read-back section 3(a), as amended: with no parent link, Element Position / Min Cardinality / Max Cardinality report "not applied: : belongs on the link to the parent; give a Parent ID (...)". Behaviour unchanged from 13733655: the three go in the typed AttributeForSchema / NestedSchemaAttribute parent-relationship properties as position / minCardinality / maxCardinality, never in the entity body; isOrderedValues is orderedValues on the entity. Signed-off-by: Dan Wolfson --- md_processing/v2/schema_maker.py | 6 +++--- .../micro-tests/test_fb_schema_attribute_link_properties.py | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/md_processing/v2/schema_maker.py b/md_processing/v2/schema_maker.py index df02ffdd..393c05fc 100644 --- a/md_processing/v2/schema_maker.py +++ b/md_processing/v2/schema_maker.py @@ -48,9 +48,9 @@ def _schema_link_properties(attributes: dict, creating: bool) -> dict: rel_type = _v(attributes, "Parent Relationship Type Name") if creating and _guid(attributes, "Parent ID") and rel_type in _SCHEMA_LINKS: return {key: value for key, value in values.values()} - reason = ("an update doesn't change the attribute's link to its parent" if not creating else - "it is a property of the attribute's AttributeForSchema / NestedSchemaAttribute link, and no Parent ID " - "with one of those Parent Relationship Type Names is given") + reason = ("belongs on the link to the parent, which an update doesn't change" if not creating else + "belongs on the link to the parent; give a Parent ID (Parent Relationship Type Name " + "AttributeForSchema or NestedSchemaAttribute)") for attribute in values: record_not_applied(attributes, attribute, [f"not applied: {attribute}: {reason}"]) return {} diff --git a/tests/micro-tests/test_fb_schema_attribute_link_properties.py b/tests/micro-tests/test_fb_schema_attribute_link_properties.py index 99a6a2ff..c2813b57 100644 --- a/tests/micro-tests/test_fb_schema_attribute_link_properties.py +++ b/tests/micro-tests/test_fb_schema_attribute_link_properties.py @@ -71,4 +71,8 @@ async def test_without_a_schema_link_they_are_reported(): body, attributes = await _create({"Element Position": {"value": 7}, "Min Cardinality": {"value": 0}}) assert body["parentRelationshipProperties"] is None notes = not_applied_notes(attributes) - assert len(notes) == 2 and all("AttributeForSchema / NestedSchemaAttribute link" in n for n in notes) + assert notes == [ + "not applied: Element Position: belongs on the link to the parent; give a Parent ID (Parent Relationship " + "Type Name AttributeForSchema or NestedSchemaAttribute)", + "not applied: Min Cardinality: belongs on the link to the parent; give a Parent ID (Parent Relationship " + "Type Name AttributeForSchema or NestedSchemaAttribute)"] From a52490fcf1ccc6e8d7ecaa6649f48c3b7e547747 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 15:23:56 +0000 Subject: [PATCH 24/27] Revert "Dr.Egeria: no spec defaults when a Create resolves to an existing element" This reverts commit acf9cf8238383504d9a7e356f8eb80e17f28e940. Architect read-back of 408f26f2: the existing _drop_create_defaults (#498) already handles a Create that resolves to an existing element, and keeps Merge Update (_KEEP_DEFAULTS_ON_UPDATE). The reverted _drop_spec_defaults dropped Merge Update too, so where reachable a processor that defaults it to False (data_designer.py ~416) would send a replace update that could wipe a Data Field. The "residual" it addressed didn't exist. Signed-off-by: Dan Wolfson --- md_processing/v2/processors.py | 12 --------- .../test_fb_no_defaults_on_upsert.py | 25 ------------------- 2 files changed, 37 deletions(-) delete mode 100644 tests/micro-tests/test_fb_no_defaults_on_upsert.py diff --git a/md_processing/v2/processors.py b/md_processing/v2/processors.py index 994f1540..2d79175b 100644 --- a/md_processing/v2/processors.py +++ b/md_processing/v2/processors.py @@ -365,13 +365,6 @@ async def _sync_governance_classifications(self, guid: str, attributes: Dict[str "Policy Management Point": "PolicyManagementPoint", } - def _drop_spec_defaults(self) -> None: - """Remove the attributes whose value came only from the spec's default (parsed_attributes "is_default"), - keeping everything the document wrote.""" - attrs = self.parsed_output.get("attributes") or {} - for name in [n for n, entry in attrs.items() if isinstance(entry, dict) and entry.get("is_default")]: - del attrs[name] - def _report_unapplied(self) -> None: """Every attribute a body builder couldn't send says so, success or not (F-A 1, F-B). @@ -1225,11 +1218,6 @@ async def _execute(self) -> Dict[str, Any]: "errors": errors, } - # A Create that found its element is an update (upsert): spec defaults the parser filled in for a - # create must not overwrite stored values the document never mentioned (Architect read-back of F-B). - if self.as_is_element and self.command.verb in ("Create", "Define", "Register", "Add", "Upsert"): - self._drop_spec_defaults() - # Check for blockers before applying changes if self.parsed_output.get("errors"): guid = self.parsed_output.get("guid") diff --git a/tests/micro-tests/test_fb_no_defaults_on_upsert.py b/tests/micro-tests/test_fb_no_defaults_on_upsert.py deleted file mode 100644 index 2dfdc0d1..00000000 --- a/tests/micro-tests/test_fb_no_defaults_on_upsert.py +++ /dev/null @@ -1,25 +0,0 @@ -# SPDX-License-Identifier: Apache-2.0 -# Copyright Contributors to the ODPi Egeria project. -"""A Create that resolves to an existing element is an update: the spec defaults the parser filled in for -a create (Content Status ACTIVE, ...) must not overwrite values the document never mentioned.""" -from typing import Any, cast - -from md_processing.v2.extraction import DrECommand -from md_processing.v2.processors import AsyncBaseCommandProcessor - - -class _P(AsyncBaseCommandProcessor): - async def apply_changes(self): - return "" - - -def test_spec_defaults_are_dropped_and_written_values_kept(): - p = _P(client=cast(Any, object()), command=DrECommand(verb="Create", object_type="Glossary", attributes={}, - raw_block="## Create Glossary"), context={}) - p.parsed_output = {"attributes": { - "Display Name": {"value": "RTP"}, - "Content Status": {"value": "ACTIVE", "is_default": True}, - "Description": {"value": "written"}, - "Merge Update": {"value": True, "is_default": True}}} - p._drop_spec_defaults() - assert set(p.parsed_output["attributes"]) == {"Display Name", "Description"} From c85528f80dcec761eaabc145885bcc7c2def95da Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 15:26:25 +0000 Subject: [PATCH 25/27] Test that a resolved Create keeps Merge Update when dropping spec defaults _drop_create_defaults (#498) removes the parser's create-time defaults when a Create resolves to an existing element, except Merge Update (_KEEP_DEFAULTS_ON_UPDATE): a processor that defaults it to False would send a replace update. Pins that, after the acf9cf82 revert. Signed-off-by: Dan Wolfson --- ...drop_create_defaults_keeps_merge_update.py | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/micro-tests/test_drop_create_defaults_keeps_merge_update.py diff --git a/tests/micro-tests/test_drop_create_defaults_keeps_merge_update.py b/tests/micro-tests/test_drop_create_defaults_keeps_merge_update.py new file mode 100644 index 00000000..138150e0 --- /dev/null +++ b/tests/micro-tests/test_drop_create_defaults_keeps_merge_update.py @@ -0,0 +1,27 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +"""A Create that resolves to an existing element drops the spec defaults the parser filled in (#498), +but keeps Merge Update: without it, a processor that defaults Merge Update to False would send a replace +update over the stored element.""" +from typing import Any, cast + +from md_processing.v2.extraction import DrECommand +from md_processing.v2.processors import AsyncBaseCommandProcessor + + +class _P(AsyncBaseCommandProcessor): + async def apply_changes(self): + return "" + + +def test_create_defaults_are_dropped_but_merge_update_is_kept(): + p = _P(client=cast(Any, object()), command=DrECommand(verb="Update", object_type="Data Field", attributes={}, + raw_block="## Update Data Field"), context={}) + p.parsed_output = {"attributes": { + "Display Name": {"value": "RTP"}, + "Is Nullable": {"value": True, "is_default": True}, + "Merge Update": {"value": True, "is_default": True}, + "Description": {"value": "written"}}} + p._drop_create_defaults() + assert set(p.parsed_output["attributes"]) == {"Display Name", "Merge Update", "Description"} + assert p.parsed_output["attributes"]["Merge Update"]["value"] is True From 195434f96ae659b178b84c71eba2d0e96ed53a3d Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 15:28:13 +0000 Subject: [PATCH 26/27] pyegeria 6.2.40: Dr.Egeria round-trip fixes (F-A, F-B) and report_spec_publish Release candidate: upstream main d757cb2c + fix/fa-broken-creates @f0f0c805 + fix/fb-unapplied-attributes @c85528f8 (acf9cf82 reverted) + Stage 1a (feat/report-spec-publish @2fdff9bc). Version bump and uv lock; release notes in docs/release-notes/6.2.40.md. F-C and MetadataExpert are not in this release. Signed-off-by: Dan Wolfson --- docs/release-notes/6.2.40.md | 61 ++++++++++++++++++++++++++++++++++++ pyproject.toml | 2 +- uv.lock | 2 +- 3 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 docs/release-notes/6.2.40.md diff --git a/docs/release-notes/6.2.40.md b/docs/release-notes/6.2.40.md new file mode 100644 index 00000000..54d5fe51 --- /dev/null +++ b/docs/release-notes/6.2.40.md @@ -0,0 +1,61 @@ +# pyegeria 6.2.40 + +pyegeria 6.2.40 is the release the Dr.Egeria round-trip probe built. Every property-style attribute of every +Dr.Egeria Create command was written to a scratch Egeria and read back; this release fixes what didn't come back +(F-A: creates that broke; F-B: attributes no processor applied). It also adds +`pyegeria.view.report_spec_publish`, the shared report-spec publish/withdraw helper (Stage 1a). + +Checked for this release: the 3.13 micro-tests, and the round-trip probe (branch `probe/release-gate`, not part of +this release) on a PostgreSQL scratch Egeria (757a5df0) against its baseline `757a5df0.json`, with 0 regressions. + +## Behaviour changes + +- **"not applied" output.** An attribute Dr.Egeria can't send is no longer dropped silently. The command's + warnings say `not applied: : ` -- a key the Egeria type doesn't declare, a value that isn't + a whole number for an integer field, a property with no Egeria home, a relationship property with no parent link. + Keys a type doesn't declare are no longer sent (Egeria ignored them). +- **Search Keywords are written.** After every create and update, each `Search Keywords` entry is attached as a + SearchKeyword (its text is `displayName`). Idempotent; keywords not listed are left in place. Most commands + never applied them before. +- **Glossary-term flags are classifications.** Is Abstract Concept, Is Activity Description (+ Term Activity + Type), Is Context (+ Context Description / Scope) and Is Data Value now classify the term AbstractConcept, + ActivityDescription(activityType), ContextDefinition(description, scope) and DataValueMeaning. They were sent as + term properties, which Egeria 6 ignores. Create Question gets the term properties too. +- **Schema attribute link properties.** Element Position, Min Cardinality and Max Cardinality are sent as + `position` / `minCardinality` / `maxCardinality` on the AttributeForSchema / NestedSchemaAttribute link to the + parent (Parent ID + Parent Relationship Type Name), never on the attribute; with no parent link they're reported. + Is Ordered Values is `orderedValues`. Default Value Override isn't sent (not in this Egeria's type system). +- **Refusals with a sentence.** Commands Dr.Egeria can't carry out say why and send nothing: Create Rating / + Create Like (use Attach Rating / Attach Like), Create Data Sharing Request (a ToDo subtype in Egeria), an Asset + Maker command with no template mapping ("not supported yet"), a To-Do / Meeting / Review for a user with no + personal profile, a technology type or template missing on the server. Every failure now prints its exception + type and message on one line, with Egeria's message id. +- **Opaque GUIDs.** GUIDs are treated as opaque strings. A server whose repository returns type-prefixed GUIDs + (`Glossary-`, Egeria's in-memory repository) no longer has nearly every Create reported as failed after + the element was made. Where a value may be a GUID or a name, a GUID is a UUID with at most one type prefix. +- **Typed bodies.** Parent Relationship Attributes, Template Properties and (Generic) Initial Classifications are + sent as their Egeria class (`Properties`) with only the keys it declares; sent raw they failed the whole + create (400). Absolute/Relative Uncertainty are sent as integers (Egeria's Long). +- **Project attributes.** Project Identifier -> `identifier`; Approach / Management Style / Results Usage -> + the ProjectClassification classification; Project Type -> its named classification. Purposes (removed) and + Project Scope (no Egeria property) are reported. Information Supply Chain reads Purposes or Data Processing + Purposes and now sends integrationStyle and estimatedVolumetrics. +- **Referenceable extras.** Classifications (Named DICT) are classified; Translation Details are set through + Egeria's multi-language service (new `ClassificationExplorer.set_translation`); User Defined Status and + Supplementary Properties are reported. +- **Commands that now run.** Create UC Server / Schema / Table Element, Create Subject Area, Create CSV File. + Create Blog / Journal / Activity Entry now report success (they created the entry, then failed to read it back). + +## Added + +- **`pyegeria.view.report_spec_publish`** (Stage 1a): `build_publish_document`, `build_withdraw_document`, + `check_zones`, `restricted_publish_status`, `held_in_egeria`, `document_digest` / `check_unchanged`, + `run_document`. App-neutral (no credentials, no web or app code, no cache I/O), so the Portal and Egeria Advisor + build and check the same Dr.Egeria documents. +- `scripts/gen_properties_class_fields.py` and the generated `md_processing_utils/properties_class_fields.py`: + every Egeria framework Properties class, its kind and the JSON names it reads, from Egeria's Java source. + +## Not in this release + +The spec-metadata fixes (F-C), the MetadataExpert family, and the round-trip probe / release gate itself +(`probe/release-gate`). diff --git a/pyproject.toml b/pyproject.toml index 6dd8127c..70c2f25c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ [project] name = "pyegeria" -version = "6.2.39" +version = "6.2.40" license = 'Apache-2.0' license-files = ["LICENSE"] authors = [{name = "Dan Wolfson", email = "dan.wolfson@pdr-associates.com"},] diff --git a/uv.lock b/uv.lock index a4c33d19..33e25881 100644 --- a/uv.lock +++ b/uv.lock @@ -2271,7 +2271,7 @@ sdist = { url = "https://files.pythonhosted.org/packages/f8/f6/8f49005d581cff883 [[package]] name = "pyegeria" -version = "6.2.39" +version = "6.2.40" source = { editable = "." } dependencies = [ { name = "altair" }, From e6fb2b6bdfa9ea52f39ada346f8d0d47875b0987 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Thu, 12 Nov 2026 16:28:35 +0000 Subject: [PATCH 27/27] Release notes 6.2.40: exact Link command names; Known issues Read-back of RC 195434f9 (section 1): the rating/like commands are Link Element->Rating / Link Element->Like; a Known issues section covers additionalProperties replaced as a whole map on upsert / merge update, the Egeria-side gaps (Regulators not stored, Authors lost on read for External References / Design Models, entity effective dates not returned, Default Value Override undeclared) and B5 on Egeria 8840035f (pageSize 1 find can miss an element after a same-named delete). Docs only. Signed-off-by: Dan Wolfson --- docs/release-notes/6.2.40.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/release-notes/6.2.40.md b/docs/release-notes/6.2.40.md index 54d5fe51..59250f2e 100644 --- a/docs/release-notes/6.2.40.md +++ b/docs/release-notes/6.2.40.md @@ -26,7 +26,7 @@ this release) on a PostgreSQL scratch Egeria (757a5df0) against its baseline `75 parent (Parent ID + Parent Relationship Type Name), never on the attribute; with no parent link they're reported. Is Ordered Values is `orderedValues`. Default Value Override isn't sent (not in this Egeria's type system). - **Refusals with a sentence.** Commands Dr.Egeria can't carry out say why and send nothing: Create Rating / - Create Like (use Attach Rating / Attach Like), Create Data Sharing Request (a ToDo subtype in Egeria), an Asset + Create Like (use **Link Element->Rating** / **Link Element->Like**), Create Data Sharing Request (a ToDo subtype in Egeria), an Asset Maker command with no template mapping ("not supported yet"), a To-Do / Meeting / Review for a user with no personal profile, a technology type or template missing on the server. Every failure now prints its exception type and message on one line, with Egeria's message id. @@ -46,6 +46,21 @@ this release) on a PostgreSQL scratch Egeria (757a5df0) against its baseline `75 - **Commands that now run.** Create UC Server / Schema / Table Element, Create Subject Area, Create CSV File. Create Blog / Journal / Activity Entry now report success (they created the entry, then failed to read it back). +## Known issues + +- **additionalProperties is replaced as a whole map.** On an upsert (a Create that finds its element) or any + merge update, Egeria replaces `additionalProperties` as one value, not key by key: keys the document leaves out + are removed. On laz a saved query's refresh keys were wiped this way. Give every key you want to keep. +- **Egeria-side gaps** (reported to the Egeria project; not fixable in pyegeria): + - Regulation **Regulators** are not stored. + - **Authors** are stored but lost on read for External References and Design Models (removed twice by the + property converter). + - Entity **Effective From / Effective To** are stored but not returned on read. + - **Default Value Override** is declared by Egeria's SchemaAttributeProperties but not by the repository type + definition, so Dr.Egeria doesn't send it ("not applied"). +- **B5, Egeria 8840035f:** a find with `pageSize` 1 can miss an element when a same-named element was deleted + ("No elements found" although a match exists). Use a larger page size for existence checks. + ## Added - **`pyegeria.view.report_spec_publish`** (Stage 1a): `build_publish_document`, `build_withdraw_document`,