Comments (6)
I have also tried sending according to my example the key ["assetAdministrationShells"][0]
from the json dictionary and I get the following error:
'{"success":false,
"isException":true,
"messages":[{"messageType":6,
"code":"400",
"text":"MalformedRequestException: Given newValue map has not the correct ModelType"}]}'
from basyx-python-sdk.
The API you linked is the registry API, used to register AssetAdministrationShells and other objects by their identifier and endpoint via Descriptor
objects. This is not equivalent to the usual AssetAdministrationShell
/ Submodel
objects as the descriptor objects don't contain all the data of an AssetAdministrationShell
or Submodel
object.
Descriptor
objects are currently not supported by the basyx-python-sdk, they'll maybe be implemented when the HTTP API component is implemented.
If you want to store the entire AssetAdministrationShell
or Submodel
object via an HTTP API you'll need an application that implements https://app.swaggerhub.com/apis/BaSyx/BaSyx_Registry_API/v1. I'm not familiar with the software currently available for that, so I can't recommend you any.
BTW: The two different interfaces (AAS and Registry) are specified in this document in Chapter 4 and 5 respectively: https://www.plattform-i40.de/IP/Redaktion/EN/Downloads/Publikation/Details_of_the_Asset_Administration_Shell_Part2_V1.html
from basyx-python-sdk.
Thanks for info. I will check the spec. part 2. My use case is that I want to dynamically add assets to the server and remove them if they are not online anymore.
If you want to store the entire AssetAdministrationShell or Submodel object via an HTTP API you'll need an application that implements https://app.swaggerhub.com/apis/BaSyx/BaSyx_Registry_API/v1.
So does this mean that the implementation of the Basyx Registry does not have this option at the moment ... or would that mean I have to implement (for example) the API PutAssetAdministrationShell
(section 4.2.3) and use the swaggerhub API from basyx as backend. Sorry if I am asking something redundant but I am still getting to know the spec.
from basyx-python-sdk.
If you want to store the entire AssetAdministrationShell or Submodel object via an HTTP API you'll need an application that implements https://app.swaggerhub.com/apis/BaSyx/BaSyx_Registry_API/v1.
So does this mean that the implementation of the Basyx Registry does not have this option at the moment ... or would that mean I have to implement (for example) the API
PutAssetAdministrationShell
(section 4.2.3) and use the swaggerhub API from basyx as backend. Sorry if I am asking something redundant but I am still getting to know the spec.
Ah sorry, I linked the wrong spec. I meant to link: https://app.swaggerhub.com/apis/BaSyx/basyx_asset_administration_shell_repository_http_rest_api/v1
from basyx-python-sdk.
Ah sorry, I linked the wrong spec. I meant to link: https://app.swaggerhub.com/apis/BaSyx/basyx_asset_administration_shell_repository_http_rest_api/v1
Are there any plans to implement this REST spec? Or would I have to implement it on my own as the author of this issue currently is?
from basyx-python-sdk.
Ah sorry, I linked the wrong spec. I meant to link: https://app.swaggerhub.com/apis/BaSyx/basyx_asset_administration_shell_repository_http_rest_api/v1
Are there any plans to implement this REST spec? Or would I have to implement it on my own as the author of this issue currently is?
There are no plans to implement the linked API, as it is specific to the BaSyx project. Once #18 is finalized though, we plan to implement https://app.swaggerhub.com/apis/Plattform_i40/Entire-API-Collection/V1.0RC03 in an HTTP server and an HTTP client.
from basyx-python-sdk.
Related Issues (20)
- Misleading error message in case of non-existent file HOT 1
- Update `Development Status` classifier in `setup.py` HOT 1
- Integer value is not accepted for Double value type HOT 4
- aasx: Add failsafe for writing and reading AASX files HOT 1
- Convert primitive types into string when creating a property of type string HOT 2
- Logo: Change logo to the original version
- AAS with submodel/type: "ExternalReference" not supported HOT 7
- Reading published AAS Submodel Templates from aasx HOT 11
- Unable to add SubmodelElementCollection to SubmodelElementList HOT 9
- Concept Description missing from AAS (AASX-file) when External Reference is used. HOT 5
- Remove schema files from repository HOT 1
- Attaching files with spaces in the file name causes a ValueError when writing the AASX HOT 6
- Missing 'aasx-spec' document in AASX HOT 9
- RELATIONSHIP_TYPE_AASX_ORIGIN strings do not match those in the submodel templates from IDTA HOT 2
- model: Allow empty strings in SubmodelElement.value HOT 1
- How to generate unique IDs? HOT 4
- Does a property lose its reference to a concept description when reading an AASX file? HOT 6
- Log a warning if no AAS files are read within an AASX package
- aas:adapter Unable to read aasx file, because of dead links HOT 10
- convert json into aasx fails 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 basyx-python-sdk.