Problem
When algorithms relations are modified topics with the body such as
{ "id": "6fa13e6c-cf29-4930-a15a-d759229767a0", "sourceAlgorithm": { "id": "6f25b1f0-f79d-4cbc-a16b-4622420aee3c" }, "targetAlgorithm": { "id": "af3cf40b-c6b1-4f77-b8ca-77e21d0713d2" }, "algorithmRelationType": { "id": "f418379f-296e-4b3c-b925-4f9073ba365c", "name": "uses", "inverseTypeName": "is used by" }, "description": "test description" }
are sended.
Since the storage of the additional information about relations between two concepts (in this case target and source algorithms) in the Virtuoso Triple Store is not available, we can not identify the modified relation by its id.
If a relation is modified, our component (semantic services) can not identify which exactly relation it is, so the data becomes inconsistent.
Possible solution
Each algorithm has attribute 'sourceAlgorithmRelations'. When a relation is create/modified or deleted, the value of the attribute sourceAlgorithmRelations of the source algorithm and its id is contained in the topic body.
But we are also open for alternatives and discussion.
Problem When algorithms relations are modified topics with the body such as
{ "id": "6fa13e6c-cf29-4930-a15a-d759229767a0", "sourceAlgorithm": { "id": "6f25b1f0-f79d-4cbc-a16b-4622420aee3c" }, "targetAlgorithm": { "id": "af3cf40b-c6b1-4f77-b8ca-77e21d0713d2" }, "algorithmRelationType": { "id": "f418379f-296e-4b3c-b925-4f9073ba365c", "name": "uses", "inverseTypeName": "is used by" }, "description": "test description" }
are sended.Since the storage of the additional information about relations between two concepts (in this case target and source algorithms) in the Virtuoso Triple Store is not available, we can not identify the modified relation by its id.
If a relation is modified, our component (semantic services) can not identify which exactly relation it is, so the data becomes inconsistent.
Possible solution Each algorithm has attribute 'sourceAlgorithmRelations'. When a relation is create/modified or deleted, the value of the attribute sourceAlgorithmRelations of the source algorithm and its id is contained in the topic body.
But we are also open for alternatives and discussion.