I have a simple ontology which is structured that way:
| Cell
| CellFree
| CellTree
| CellPlayer
My app is using Stardog and I want to dynamically update the type of an individual which is at the beginning a Cell
and needs to be updated to one of the sub-classes.
My first approach was this one:
DELETE {?c rdf:type :Cell}
INSERT {?c rdf:type :CellFree}
WHERE {?c a :Cell . ?c :x 6 . ?c :y 3}
Unfortunately this deletes the cell but doesn't insert it back. How can I achieve this? Every Cell has properties and data so it's important to not lose them in the process (I'm new to SPARQL).