diff --git a/docs/release-notes/6.2.40.md b/docs/release-notes/6.2.40.md new file mode 100644 index 00000000..59250f2e --- /dev/null +++ b/docs/release-notes/6.2.40.md @@ -0,0 +1,76 @@ +# 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 **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. +- **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). + +## 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`, + `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/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/common_md_utils.py b/md_processing/md_processing_utils/common_md_utils.py index 811a37cb..953e1605 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']] @@ -494,7 +502,133 @@ 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", + # 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: + """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 + 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 + value = (attributes.get(attribute) or {}).get("value") + 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, ""): + props[key] = value + report_status_not_applied(cls, attributes) + 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.""" + 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. @@ -577,7 +711,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: @@ -619,7 +753,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: @@ -648,11 +782,14 @@ 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 + 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: @@ -664,7 +801,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) @@ -683,7 +820,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 { @@ -727,7 +864,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/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/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..949ba853 --- /dev/null +++ b/md_processing/md_processing_utils/typed_properties.py @@ -0,0 +1,208 @@ +# 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, 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: + 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 + + +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, names_ok=True) + 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/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/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/asset_maker.py b/md_processing/v2/asset_maker.py index 8870885b..3cb8f4b2 100644 --- a/md_processing/v2/asset_maker.py +++ b/md_processing/v2/asset_maker.py @@ -15,8 +15,11 @@ 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, + parent_relationship_properties) def _v(attributes: dict, name: str, default=None): @@ -46,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 @@ -54,13 +64,21 @@ 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) + # 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"), @@ -68,7 +86,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"), } @@ -146,7 +164,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"), @@ -165,7 +183,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"), @@ -175,7 +193,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"), @@ -214,8 +232,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/md_processing/v2/collection_manager_processor.py b/md_processing/v2/collection_manager_processor.py index 94a10168..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,9 +242,14 @@ 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( - 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 +257,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/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 f7fd6fcb..4afeff62 100644 --- a/md_processing/v2/data_designer.py +++ b/md_processing/v2/data_designer.py @@ -7,12 +7,13 @@ 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, 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 @@ -33,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(): @@ -59,6 +85,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 +106,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'), @@ -94,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 @@ -589,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', [])) @@ -739,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/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/feedback.py b/md_processing/v2/feedback.py index b6de03c1..8bbcd3e8 100644 --- a/md_processing/v2/feedback.py +++ b/md_processing/v2/feedback.py @@ -7,6 +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, + 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 ( @@ -85,14 +87,28 @@ 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 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, @@ -152,6 +168,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. @@ -187,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/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/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/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 78ead735..2d79175b 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 @@ -16,6 +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 (_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 @@ -39,6 +44,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).""" @@ -100,9 +140,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 @@ -326,6 +365,116 @@ 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 + 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_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 @@ -505,10 +654,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 +681,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 +1355,10 @@ 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: + self._report_unapplied() except PyegeriaException as e: logger.error(f"Command String: {self.command.raw_block}") if self.last_body: @@ -1215,14 +1369,15 @@ 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, "display_name": self.parsed_output.get("display_name"), "qualified_name": self.parsed_output.get("qualified_name"), "found": self.parsed_output.get("exists", False), - "errors": [str(e)] + "warnings": self.parsed_output.get("warnings", []), + "errors": [describe_exception(e)] } except Exception as e: logger.error(f"Command String: {self.command.raw_block}") @@ -1233,14 +1388,15 @@ 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, "display_name": self.parsed_output.get("display_name"), "qualified_name": self.parsed_output.get("qualified_name"), "found": self.parsed_output.get("exists", False), - "errors": [str(e)] + "warnings": self.parsed_output.get("warnings", []), + "errors": [describe_exception(e)] } # 10. Post-execution: Update the cache on success @@ -1261,6 +1417,8 @@ 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) + await self._sync_referenceable_extras(guid, attributes) deferred = bool(self.parsed_output.get("deferred")) and not self.context.get("final_round") @@ -1271,6 +1429,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" @@ -1517,12 +1678,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/md_processing/v2/project.py b/md_processing/v2/project.py index b8d9149c..29344b00 100644 --- a/md_processing/v2/project.py +++ b/md_processing/v2/project.py @@ -5,7 +5,9 @@ from loguru import logger from pyegeria import EgeriaTech, PyegeriaException -from md_processing.v2.processors import AsyncBaseCommandProcessor +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, 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, @@ -56,6 +58,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. @@ -90,16 +93,36 @@ 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'): + 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)"]) + 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) @@ -110,6 +133,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"): @@ -133,6 +157,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)) @@ -162,6 +191,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/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 ab0c96a2..393c05fc 100644 --- a/md_processing/v2/schema_maker.py +++ b/md_processing/v2/schema_maker.py @@ -11,7 +11,10 @@ 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, long_value, + parent_relationship_properties, + record_not_applied) def _v(attributes: dict, name: str, default=None): @@ -22,18 +25,56 @@ 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 = ("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 {} + + +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 { "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": _v(attributes, "Parent Relationship Attributes"), + "parentRelationshipProperties": parent_props, "parentAtEnd1": _v(attributes, "Parent at End1", True), "properties": properties, } @@ -72,21 +113,28 @@ 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"), "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"), - "defaultValueOverride": _v(attributes, "Default Value Override"), + "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 + # (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. @@ -101,15 +149,24 @@ 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"] + if is_attribute: + _schema_link_properties(attributes, creating=False) update_body = { "class": "UpdateElementRequestBody", "properties": self.filter_update_properties(props, _v(attributes, "Merge Update", True)), @@ -121,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: @@ -151,11 +209,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/md_processing/v2/solution_architect.py b/md_processing/v2/solution_architect.py index bf215c87..103cc20f 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) @@ -422,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/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/pyegeria/core/utils.py b/pyegeria/core/utils.py index 69942bf2..aea01921 100644 --- a/pyegeria/core/utils.py +++ b/pyegeria/core/utils.py @@ -528,3 +528,34 @@ 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) + + +# 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 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/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/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/pyegeria/omvs/my_profile.py b/pyegeria/omvs/my_profile.py index 3163c725..eac9b29e 100644 --- a/pyegeria/omvs/my_profile.py +++ b/pyegeria/omvs/my_profile.py @@ -1301,9 +1301,24 @@ 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: + qualified_name: Optional[str] = None, + extra_properties: Optional[dict] = None) -> str: """Create a person action (Meeting, ToDo, Notification, Review). Async version. Parameters @@ -1355,9 +1370,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", @@ -1382,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 @@ -1436,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 @@ -1471,9 +1488,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", @@ -1493,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 @@ -1531,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 @@ -1562,9 +1581,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", @@ -1583,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/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/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/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/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_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 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 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 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" 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" 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"] 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..25ea41a7 --- /dev/null +++ b/tests/micro-tests/test_fa_type_prefixed_guids.py @@ -0,0 +1,92 @@ +# 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), + # 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 + + +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 + + +@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 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"] 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" 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..6922f1fc --- /dev/null +++ b/tests/micro-tests/test_fb_bundle_properties.py @@ -0,0 +1,132 @@ +# 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" + + +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_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"] 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 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", []) == [] 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..5ec96d98 --- /dev/null +++ b/tests/micro-tests/test_fb_project_attributes.py @@ -0,0 +1,89 @@ +# 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"] + + +@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"] 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 == [] 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..c2813b57 --- /dev/null +++ b/tests/micro-tests/test_fb_schema_attribute_link_properties.py @@ -0,0 +1,78 @@ +# 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 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)"] 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) 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(): 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"] 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 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" },