Interface DTKGEngine
- All Superinterfaces:
DTKGEngineReader
- All Known Implementing Classes:
JenaDTKGEngine
This interface models the DTKGEngine component of the Abstract Architecture in a compatible way with Ditto.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addActionId
(String actionId) Add an available action on the Digital Twin Knowledge Graph.void
addDigitalTwinPropertyUpdate
(RdfProperty property, Node newValue) Add or update a Digital Twin property within the Digital Twin Knowledge Graph.void
addDTKGObserver
(DTKGObserver observer) Add aDTKGObserver
that will be notified for each DTKG update.void
addRelationship
(RdfProperty relationshipPredicate, Individual targetIndividual) Add a relationship with another Digital Twin.boolean
removeActionId
(String actionId) Remove an action from the Digital Twin Knowledge Graph.void
Method that allows to signal the deletion or the stop of the underlying Digital Twin.boolean
removeProperty
(RdfProperty property) Remove a Digital Twin property within the Digital Twin Knowledge Graph.boolean
removeRelationship
(RdfProperty relationshipPredicate) Delete all the occurrences of a relationship with another Digital Twin.boolean
removeRelationship
(RdfProperty relationshipPredicate, Individual targetIndividual) Delete an existing relationship with another Digital Twin.Methods inherited from interface io.github.webbasedwodt.DTKGEngine.api.DTKGEngineReader
getCurrentDigitalTwinKnowledgeGraph
-
Method Details
-
removeDigitalTwin
void removeDigitalTwin()Method that allows to signal the deletion or the stop of the underlying Digital Twin. -
addDigitalTwinPropertyUpdate
Add or update a Digital Twin property within the Digital Twin Knowledge Graph.- Parameters:
property
- the property to add/updatenewValue
- the value of the property.
-
removeProperty
Remove a Digital Twin property within the Digital Twin Knowledge Graph.- Parameters:
property
- the property to delete.- Returns:
- true if deleted, false if not-existent.
-
addRelationship
Add a relationship with another Digital Twin.- Parameters:
relationshipPredicate
- the associated predicatetargetIndividual
- the target individual
-
removeRelationship
Delete an existing relationship with another Digital Twin.- Parameters:
relationshipPredicate
- the associated predicatetargetIndividual
- the target individual.- Returns:
- true if correctly deleted, false if the relationship doesn't exist
-
removeRelationship
Delete all the occurrences of a relationship with another Digital Twin.- Parameters:
relationshipPredicate
- the associated predicate- Returns:
- true if correctly deleted, false if the relationship doesn't exist
-
addActionId
Add an available action on the Digital Twin Knowledge Graph.- Parameters:
actionId
- the action identifier to identify the available action.
-
removeActionId
Remove an action from the Digital Twin Knowledge Graph.- Parameters:
actionId
- the action identifier to remove- Returns:
- true if correctly deleted, false if the action id doesn't exist
-
addDTKGObserver
Add aDTKGObserver
that will be notified for each DTKG update.- Parameters:
observer
- the observer to add.
-