Skip to content

Commit

Permalink
Remove the www. subdomain in AASX namespace (#122)
Browse files Browse the repository at this point in the history
Needed to be compliant to the spec V3.0. 

Fixes #96 

---------

Co-authored-by: s-heppner <s.heppner@plt.rwth-aachen.de>
  • Loading branch information
zrgt and s-heppner authored Oct 10, 2023
1 parent ef66f3e commit 25adeca
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions basyx/aas/adapter/aasx.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@

logger = logging.getLogger(__name__)

RELATIONSHIP_TYPE_AASX_ORIGIN = "http://www.admin-shell.io/aasx/relationships/aasx-origin"
RELATIONSHIP_TYPE_AAS_SPEC = "http://www.admin-shell.io/aasx/relationships/aas-spec"
RELATIONSHIP_TYPE_AAS_SPEC_SPLIT = "http://www.admin-shell.io/aasx/relationships/aas-spec-split"
RELATIONSHIP_TYPE_AAS_SUPL = "http://www.admin-shell.io/aasx/relationships/aas-suppl"
RELATIONSHIP_TYPE_AASX_ORIGIN = "http://admin-shell.io/aasx/relationships/aasx-origin"
RELATIONSHIP_TYPE_AAS_SPEC = "http://admin-shell.io/aasx/relationships/aas-spec"
RELATIONSHIP_TYPE_AAS_SPEC_SPLIT = "http://admin-shell.io/aasx/relationships/aas-spec-split"
RELATIONSHIP_TYPE_AAS_SUPL = "http://admin-shell.io/aasx/relationships/aas-suppl"


class AASXReader:
Expand Down
2 changes: 1 addition & 1 deletion basyx/aas/adapter/xml/xml_deserialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def _element_pretty_identifier(element: etree.Element) -> str:
If the prefix is known, the namespace in the element tag is replaced by the prefix.
If additionally also the sourceline is known, is is added as a suffix to name.
For example, instead of "{http://www.admin-shell.io/aas/3/0}assetAdministrationShell" this function would return
For example, instead of "{https://admin-shell.io/aas/3/0}assetAdministrationShell" this function would return
"aas:assetAdministrationShell on line $line", if both, prefix and sourceline, are known.
:param element: The xml element.
Expand Down
Binary file modified test/compliance_tool/files/test_demo_full_example_json.aasx
Binary file not shown.
Binary file modified test/compliance_tool/files/test_demo_full_example_xml.aasx
Binary file not shown.
Binary file not shown.
Binary file modified test/compliance_tool/files/test_empty.aasx
Binary file not shown.

0 comments on commit 25adeca

Please sign in to comment.