Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

model.base: Rename GlobalReference to ExternalReference #106

Merged
merged 8 commits into from
Aug 24, 2023

Conversation

s-heppner
Copy link
Contributor

@s-heppner s-heppner commented Aug 11, 2023

Version 3.0 of the spec renames ReferenceTypes/GlobalReference to
ReferenceTypes/ExternalReference to avoid confusion with
KeyTypes/GlobalReference.

Todo: Adapt the examples in test/compliance_tool/files.

@s-heppner s-heppner changed the title model.base: Rename GlobalReference to ExternalReference WIP: model.base: Rename GlobalReference to ExternalReference Aug 11, 2023
README.md Outdated
id_short='ExampleProperty', # Identifying string of the element within the submodel namespace
value_type=model.datatypes.String, # Data type of the value
value='exampleValue', # Value of the property
semantic_id=semantic_reference # set the semantic reference
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why have these lines been re-indented with 2 spaces instead of 4?

Copy link
Contributor Author

@s-heppner s-heppner Aug 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have honestly no idea. Must have been PyCharm during rebasing. I reverted the indentation.

@jkhsjdhjs
Copy link
Contributor

This should be rebased after #107 is merged and changed such that it replaces the new occurances of GlobalReference as well.

@s-heppner
Copy link
Contributor Author

I've updated this branch to the newest changes in improve/V30.
Sadly, the files

  • test_demo_full_example_xml_wrong_attribute.aasx
  • test_demo_full_example_json.aasx

still need to be adapted manually. @jkhsjdhjs could you do this?

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@@ -777,7 +777,7 @@ class Reference(metaclass=abc.ABCMeta):
A reference is an ordered list of keys, each key referencing an element. The complete list of keys may for
example be concatenated to a path that then gives unique access to an element or entity.

This is the abstract superclass of GlobalReference and ModelReference, which implements common attributes and
This is the abstract superclass of External and ModelReference, which implements common attributes and
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This External should be changed to ExternalReference, as it references the class.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I introduced this change 😂

@jkhsjdhjs jkhsjdhjs force-pushed the Rename/GlobalReference branch 2 times, most recently from 0bc0134 to 1081a70 Compare August 23, 2023 16:03
@s-heppner s-heppner changed the title WIP: model.base: Rename GlobalReference to ExternalReference model.base: Rename GlobalReference to ExternalReference Aug 24, 2023
@s-heppner s-heppner merged commit d360723 into eclipse-basyx:improve/V30 Aug 24, 2023
5 of 6 checks passed
@s-heppner s-heppner deleted the Rename/GlobalReference branch August 24, 2023 07:29
@s-heppner s-heppner added the v3.0 label Nov 21, 2023
Frosty2500 pushed a commit to rwth-iat/basyx-python-sdk that referenced this pull request Aug 22, 2024
…ence

Version 3.0 of the spec renames ReferenceTypes/GlobalReference to
ReferenceTypes/ExternalReference to avoid confusion with
KeyTypes/GlobalReference.

This merge implements these changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants