X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=docs%2FDeveloper%2FDatabase%2FVirtualGraphs.md;h=98a2f44bb4a605b54d35fa6c43da7254af863390;hp=66c20ee85b4c95593d765713d3a4a8bd79ae6f94;hb=cc48f111d9d7b053693c0c988b9caeef8e445ade;hpb=107a72960d307d614a1e165dbe3dc1316b286c86 diff --git a/docs/Developer/Database/VirtualGraphs.md b/docs/Developer/Database/VirtualGraphs.md index 66c20ee85..98a2f44bb 100644 --- a/docs/Developer/Database/VirtualGraphs.md +++ b/docs/Developer/Database/VirtualGraphs.md @@ -13,18 +13,20 @@ Virtual graphs are manipulated via the following interfaces ## Specification -A write request has a single graph into which it writes. This is determined by *WriteTraits* and usually as a parameter to *WriteRequest*. If null is provided, the client applies modifications into the persistent graph. The following rules apply: +A write request has a single graph into which it writes. This is determined by *WriteTraits* and usually as a parameter to *WriteRequest*. If null is provided, the client applies modifications into the persistent graph. + +The following rules apply: * New resources are created into the given virtual graph * Claim statements are added into the given virtual graph * Value changes are applied into the given virtual graph * When the virtual graph provided to the WriteRequest is: -** **null**: -*** For denied statements the location of the statement is determined and the statement is removed from that virtual graph. If the denied statement is not a part of any virtual graph, it is removed from the persistent graph. -** **non-null**: -*** Statements are only removed from the virtual graph specified for the write request + * **null**: + * For denied statements the location of the statement is determined and the statement is removed from that virtual graph. If the denied statement is not a part of any virtual graph, it is removed from the persistent graph. + * **non-null**: + * Statements are only removed from the virtual graph specified for the write request -The user can perform modifications into multiple virtual graphs within a single transaction. This is accomplished by issuing a new synchronous modification (WriteGraph.sync) into a new virtual graph. +The user can perform modifications into multiple virtual graphs within a single transaction. This is accomplished by issuing a new synchronous modification `WriteGraph.sync[Request]` into a new virtual graph. ## Examples @@ -114,8 +116,8 @@ public class VirtualGraphExample { ## Debugging The standard Simantics Graph Debugger view shows for every statement which virtual graph it belongs to. This information is visible on the *Graph* column of the statement table. The Graph column will show: -;DB: when the statement is in the persistent graph -;'name' (W): when the statement is in a named workspace-persistent virtual graph -;'name' (M): when the statement is in a named memory-persistent (transient) virtual graph +* **DB**: when the statement is in the persistent graph +* **name (W)**: when the statement is in a named workspace-persistent virtual graph +* **name (M)**: when the statement is in a named memory-persistent (transient) virtual graph -[[Image:GraphDebuggerVG.png|frame|center|Graph debugger example with statements in virtual graphs.]] +![Graph debugger example with statements in virtual graphs](Images/GraphDebuggerVG.png) \ No newline at end of file