Comments (8)
Thanks @bs-jokri for raising this. We will have a look at it.
from aas4j.
I'm not sure if this is a bug related to AAS4J. In the schema location, pairs of namespaces as well as their respective schema location are provided. Thus, xsi:schemaLocation="https://admin-shell.io/aas/3/0/AAS.xsd" does not make much sense due to the file itself missing (i.e., the second entry in the schemaLocation tag). Nevertheless, it would make more sense to replace AAS.xsd with https://github.com/admin-shell-io/aas-specs/blob/V3.0.7/schemas/xml/AAS.xsd
Can you provide an error log of the AASX Package Explorer of an unsuccessful load?
from aas4j.
I was not able to reproduce the described behaviour with AASX Package Explorer v2023-09-12.
However, what I did find out:
- This minimal example can be loaded by the Package Explorer:
<?xml version='1.0' encoding='UTF-8'?>
<aas:environment xmlns:aas="https://admin-shell.io/aas/3/0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://admin-shell.io/aas/3/0 AAS.xsd">
<aas:assetAdministrationShells>
<aas:assetAdministrationShell>
<aas:id>AssetAdministrationShell---2CEBD072</aas:id>
<aas:assetInformation>
<aas:assetKind>Instance</aas:assetKind>
</aas:assetInformation>
</aas:assetAdministrationShell>
</aas:assetAdministrationShells>
<aas:submodels />
<aas:conceptDescriptions />
</aas:environment>
- AAS4J serialises this here (note the missing aas:submodels and aas:conceptDescriptions), which leads to an error:
<?xml version='1.0' encoding='UTF-8'?>
<aas:environment xmlns:aas="https://admin-shell.io/aas/3/0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://admin-shell.io/aas/3/0 AAS.xsd">
<aas:assetAdministrationShells>
<aas:assetAdministrationShell>
<aas:id>AssetAdministrationShell---2CEBD072</aas:id>
<aas:assetInformation>
<aas:assetKind>Instance</aas:assetKind>
</aas:assetInformation>
</aas:assetAdministrationShell>
</aas:assetAdministrationShells>
</aas:environment>
from aas4j.
As https://github.com/admin-shell-io/aas-specs/blob/2fe82a66ca502f9c5aea1ef0de0baaa729469faf/schemas/xml/AAS.xsd#L327 states that, e.g., submodels
is optional but must not be empty, I see this as a bug in the Package Explorer.
from aas4j.
@FrankSchnicke can you follow my arguments? If so, can you add it to the bug you have already opened in the Package Explorer?
from aas4j.
(Remark: I had only a limited environment available for my tests, I was able to use v2023-09-12 but without needed .NET Core libraries - no permissions to install on my VM. Therefore, I am not 100% sure whether my Package Explorer behaves identical to others.)
from aas4j.
@sebbader-sap I added your findings to the ticket over at the AASX PE Repo: admin-shell-io/aasx-package-explorer#653.
@bs-jokri since @sebbader-sap could not reproduce the issue, I will close this ticket. For the general overview of compatibility issues related to bugs with AAS4J but also with AASX PE see #158
from aas4j.
@sebbader-sap @FrankSchnicke thanks to both of you looking into the issue. I also tested again and can second @sebbader-sap observations. My test model also missed some optional elements, which might caused the problem not the schemaLocation. Thus, fine with me closing the issue
from aas4j.
Related Issues (20)
- EmbeddedDataSpecifications inside XML SubmodelElements are not deserialised
- Trigger Final Release via Eclipse Foundations HOT 1
- Get Parent of Referable HOT 1
- Capitalization of class & method names changing back and forth HOT 3
- AASX containing Submodels with Files referencing files that are external to the AASX lead to a crash
- Enforce AASd-108
- interface attribute does not follow the naming pattern in Endpoint
- Allow mixed-type equals HOT 3
- Thumbnail images are not properly referenced when writing AASX files HOT 1
- File paths are written to AASX with file:// URI scheme HOT 4
- Provide formatter configuration for AAS4J HOT 1
- Opening a `.aasx` file generated by this library creates a `.aasx.cpgz` file on MacOS HOT 1
- Reading Template Asset Interfaces Description is not possible HOT 4
- Support for JSON by AASXDeserializer HOT 1
- Validation of XML UTF-8 BOM file fails
- Relationship targets do not follow the OPC HOT 3
- Make IDTA-published submodel templates loadable HOT 3
- Consider Bugfix release IDTA-01003-a: Data Spec IDs of IEC61360 template changed HOT 1
- Implement Bugfix release IDTA-0100x HOT 1
- [BUG] SAMM2AASX - incorrect serialization of Entities in Set HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aas4j.