You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Create New Asset Dialog, i added an extra field and trying to pass the value of that field as an additional property, since from the latest updates i can't add a new property by myself.
After i press the create button, in onSave() in the AssetCreateDialogComponent i can see the post request that is created with the additional property value inside. Also i can verify that the request is being sent to the backend ,from the dev's browser's console. (200 status)
The problem is that the property doesnt exist inside the postgress.
To be honest, i can't understand how additional properties really work and what they are for. From the AssetMapperTest.java in connector backend, there is a test: test_buildAssetDto() that builds the asset from a json file (example-asset.jsonld) . There the additional properies are along with the rest properties.
The text was updated successfully, but these errors were encountered:
mpr13129
added
the
kind/bug
Something isn't working. The software does not behave as expected or specified.
label
Nov 17, 2023
The trouble of dealing with JSON-LD is not small at all, as it is a format that needs to be semantically interpreted.
Unfortunately, we did not get to decide on this. Our own UI API handles all the semantic JSON-LD Mapping in the backend. We left the additionalProperties and additionalJsonProperties fields so if people want to both use our API Wrapper that tries to follow the DCAT standard, but also read or write other parts of the Asset JSON-LD.
To get closest to "just let me use JSON" would be something along the lines of
constcustomProperties={"this-property": "should not be affected by JSON-LD compaction / expansion""some-array": ["do not compact this"]}constasset: UiAsset={assetId: 'my-asset',// [...]additionalProperties: {// Stored as string, because otherwise JSON-LD compaction and expansion // or the requirement of URL properties would ruin the JSON'http://unknown/customPropertiesJson': JSON.stringify(customProperties)}}
Description
In the Create New Asset Dialog, i added an extra field and trying to pass the value of that field as an additional property, since from the latest updates i can't add a new property by myself.
After i press the create button, in onSave() in the AssetCreateDialogComponent i can see the post request that is created with the additional property value inside. Also i can verify that the request is being sent to the backend ,from the dev's browser's console. (200 status)
The problem is that the property doesnt exist inside the postgress.
To be honest, i can't understand how additional properties really work and what they are for. From the AssetMapperTest.java in connector backend, there is a test: test_buildAssetDto() that builds the asset from a json file (example-asset.jsonld) . There the additional properies are along with the rest properties.
The text was updated successfully, but these errors were encountered: