# Modelling changes to Graphs in OWL/RDF

**URL:** <https://forum.solidproject.org/t/modelling-changes-to-graphs-in-owl-rdf/3872>\
**Category:** General Discussion\
**Created:** [January 27, 2021, 1:33pm UTC](https://forum.solidproject.org/t/modelling-changes-to-graphs-in-owl-rdf/3872 "2021-01-27T13:33:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![calummackervoy](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/calummackervoy/32/2233_2.png) [@calummackervoy](https://forum.solidproject.org/u/calummackervoy)\
**Post date:** [January 27, 2021, 1:33pm UTC](https://forum.solidproject.org/t/modelling-changes-to-graphs-in-owl-rdf/3872/1 "2021-01-27T13:33:30Z")

</div>

Background: I have a node `Character`, which can have a `Task` (of type `time:Interval`). Upon the completion of the task I want to model an `EndState` representing the changes that will be made to the game state

The initial objective is to create a Task of subtype `Transit`, which should model an EndState changing the Character’s location (a simple pointer to a resource, I’m avoiding lat/lng)

Fantastic reference on the topic: [Supporting Change Propagation in RDF](https://www.w3.org/2009/12/rdf-ws/papers/ws07)

> Another task is that of remote editing of an RDF graph. Here, changes are sent to the graph

Any insight into the problem (even in other domains) is greatly appreciated, also opening this up for general discussion

(I’m aiming to build an open-source platform for creating and playing federated Multi User Domains. It’s very early days but I’ve made a start. Interested on working on this project with me ?)

My initial attraction is to [Delta](https://www.w3.org/DesignIssues/Diff), because I think it makes the problem simple and easy to visualise for my use case

> They propose an ontology that handles a change to a graph at the triple level captured as a set of triples to be deleted and a set of triples to be added

---

<div class="post-metadata">

**Author:** ![calummackervoy](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/calummackervoy/32/2233_2.png) [@calummackervoy](https://forum.solidproject.org/u/calummackervoy)\
**Post date:** [January 27, 2021, 7:26pm UTC](https://forum.solidproject.org/t/modelling-changes-to-graphs-in-owl-rdf/3872/2 "2021-01-27T19:26:00Z")

</div>

I’m planning to store `EndState` as a collection of triples representing the consequences of a `Task`. There may be complexities I suppose as Tasks become more complex but at the moment that looks okay 🙂

---

<div class="post-metadata">

**Author:** ![jeffz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/jeffz/32/600_2.png) [@jeffz](https://forum.solidproject.org/u/jeffz)\
**Post date:** [January 27, 2021, 7:47pm UTC](https://forum.solidproject.org/t/modelling-changes-to-graphs-in-owl-rdf/3872/3 "2021-01-27T19:47:18Z")

</div>

Are you familiar with the Solid Terms ontology? It supports this kind of usage:

```auto
@prefix solid: <http://www.w3.org/ns/solid/terms#>.
@prefix log: <http://www.w3.org/2000/10/swap/log#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.

[
  a solid:Patch;
  solid:patches rdfs:Resource;
  solid:deletes log:Formula;
  solid:inserts log:Formula;
  solid:where log:Formula
].

```

---

<div class="post-metadata">

**Author:** ![calummackervoy](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/calummackervoy/32/2233_2.png) [@calummackervoy](https://forum.solidproject.org/u/calummackervoy)\
**Post date:** [January 27, 2021, 7:50pm UTC](https://forum.solidproject.org/t/modelling-changes-to-graphs-in-owl-rdf/3872/4 "2021-01-27T19:50:03Z")

</div>

I wasn’t but this is perfect ! Thanks 🙂

---

<div class="post-metadata">

**Author:** ![calummackervoy](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/calummackervoy/32/2233_2.png) [@calummackervoy](https://forum.solidproject.org/u/calummackervoy)\
**Post date:** [January 27, 2021, 8:03pm UTC](https://forum.solidproject.org/t/modelling-changes-to-graphs-in-owl-rdf/3872/5 "2021-01-27T20:03:00Z")

</div>

> [@jeffz](#):
>
> `http://www.w3.org/2000/10/swap/log`

Actually I also just discovered SWAP

I found this one tool [https://lov.linkeddata.es/](https://lov.linkeddata.es/) but discovering ontologies for the first time is still often difficult 😅

---

<div class="post-metadata">

**Author:** ![jeffz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/jeffz/32/600_2.png) [@jeffz](https://forum.solidproject.org/u/jeffz)\
**Post date:** [January 27, 2021, 8:05pm UTC](https://forum.solidproject.org/t/modelling-changes-to-graphs-in-owl-rdf/3872/6 "2021-01-27T20:05:12Z")

</div>

Yep, ontologies can be difficult to find. Here’s another ontology search tool: [https://lod-cloud.net/](https://lod-cloud.net/).

---

<div class="post-metadata">

**Author:** ![jeffz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/jeffz/32/600_2.png) [@jeffz](https://forum.solidproject.org/u/jeffz)\
**Post date:** [January 27, 2021, 8:09pm UTC](https://forum.solidproject.org/t/modelling-changes-to-graphs-in-owl-rdf/3872/7 "2021-01-27T20:09:16Z")

</div>

Also [https://www.ebi.ac.uk/ols/ontologies](https://www.ebi.ac.uk/ols/ontologies) and asking in the gitter chatroom [https://gitter.im/linkeddata/chat](https://gitter.im/linkeddata/chat) can be quite handy,.

---

<div class="post-metadata">

**Author:** ![jeffz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/jeffz/32/600_2.png) [@jeffz](https://forum.solidproject.org/u/jeffz)\
**Post date:** [January 27, 2021, 8:13pm UTC](https://forum.solidproject.org/t/modelling-changes-to-graphs-in-owl-rdf/3872/8 "2021-01-27T20:13:35Z")

</div>

The Nepomuk ontologies might by useful for your state descriptions, see [https://www.semanticdesktop.org/ontologies/2007/01/19/nie/](https://www.semanticdesktop.org/ontologies/2007/01/19/nie/)
