<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dev.simantics.org/index.php?action=history&amp;feed=atom&amp;title=Inverse_Relations</id>
	<title>Inverse Relations - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dev.simantics.org/index.php?action=history&amp;feed=atom&amp;title=Inverse_Relations"/>
	<link rel="alternate" type="text/html" href="https://dev.simantics.org/index.php?title=Inverse_Relations&amp;action=history"/>
	<updated>2026-04-06T00:31:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://dev.simantics.org/index.php?title=Inverse_Relations&amp;diff=1740&amp;oldid=prev</id>
		<title>Juha Kortelainen at 15:55, 28 January 2011</title>
		<link rel="alternate" type="text/html" href="https://dev.simantics.org/index.php?title=Inverse_Relations&amp;diff=1740&amp;oldid=prev"/>
		<updated>2011-01-28T15:55:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:55, 28 January 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l6&quot;&gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  WriteGraph.claim(Resource subject, Resource predicate, Resource inverse, Resource object)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  WriteGraph.claim(Resource subject, Resource predicate, Resource inverse, Resource object)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;with a &amp;lt;code&amp;gt;null&amp;lt;/code&amp;gt; inverse relation argument to create the sensitive statements such as &amp;#039;&amp;#039;InstanceOf&amp;#039;&amp;#039;-relations.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;with a &amp;lt;code&amp;gt;null&amp;lt;/code&amp;gt; inverse relation argument to create the sensitive statements such as &amp;#039;&amp;#039;InstanceOf&amp;#039;&amp;#039;-relations.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category: Database Development]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Juha Kortelainen</name></author>
	</entry>
	<entry>
		<id>https://dev.simantics.org/index.php?title=Inverse_Relations&amp;diff=557&amp;oldid=prev</id>
		<title>Tuukka Lehtonen at 16:39, 7 October 2010</title>
		<link rel="alternate" type="text/html" href="https://dev.simantics.org/index.php?title=Inverse_Relations&amp;diff=557&amp;oldid=prev"/>
		<updated>2010-10-07T16:39:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:39, 7 October 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;According to [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Layer0_ontology&lt;/del&gt;|Layer0]] semantics, relations &amp;lt;em&amp;gt;can&amp;lt;/em&amp;gt; have inverse relations. For the database and client this means that when claiming new statements &amp;lt;code&amp;gt;(s, p, o)&amp;lt;/code&amp;gt; using&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;According to [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;:Media:Layer0.pdf&lt;/ins&gt;|Layer0]] semantics, relations &amp;lt;em&amp;gt;can&amp;lt;/em&amp;gt; have inverse relations. For the database and client this means that when claiming new statements &amp;lt;code&amp;gt;(s, p, o)&amp;lt;/code&amp;gt; using&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  WriteGraph.claim(Resource subject, Resource predicate, Resource object)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  WriteGraph.claim(Resource subject, Resource predicate, Resource object)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;an inverse statement &amp;lt;code&amp;gt;(o, inv(p), s)&amp;lt;/code&amp;gt; will be automatically claimed into the database. Some statements are such that they tend to raise the degree of the resource (amount of incoming/outgoing relations) to very large numbers. The database is not built to efficiently handle such resources. One such relation is &amp;#039;&amp;#039;InstanceOf&amp;#039;&amp;#039; which is a statement that pretty much each and every resource in the database has. It does not have an inverse relation, but considering it had one like &amp;#039;&amp;#039;HasInstance&amp;#039;&amp;#039;, here&amp;#039;s what would happen. For example, for each &amp;#039;&amp;#039;L0.String&amp;#039;&amp;#039; instance created an inverse statement would be added &amp;lt;code&amp;gt;(L0.String, L0.HasInstance, :L0.String)&amp;lt;/code&amp;gt; statement into the database, thereby enlarging the degree of &amp;#039;&amp;#039;L0.String&amp;#039;&amp;#039;. When working with larger databases this would most likely become a problem.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;an inverse statement &amp;lt;code&amp;gt;(o, inv(p), s)&amp;lt;/code&amp;gt; will be automatically claimed into the database. Some statements are such that they tend to raise the degree of the resource (amount of incoming/outgoing relations) to very large numbers. The database is not built to efficiently handle such resources. One such relation is &amp;#039;&amp;#039;InstanceOf&amp;#039;&amp;#039; which is a statement that pretty much each and every resource in the database has. It does not have an inverse relation, but considering it had one like &amp;#039;&amp;#039;HasInstance&amp;#039;&amp;#039;, here&amp;#039;s what would happen. For example, for each &amp;#039;&amp;#039;L0.String&amp;#039;&amp;#039; instance created an inverse statement would be added &amp;lt;code&amp;gt;(L0.String, L0.HasInstance, :L0.String)&amp;lt;/code&amp;gt; statement into the database, thereby enlarging the degree of &amp;#039;&amp;#039;L0.String&amp;#039;&amp;#039;. When working with larger databases this would most likely become a problem.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tuukka Lehtonen</name></author>
	</entry>
	<entry>
		<id>https://dev.simantics.org/index.php?title=Inverse_Relations&amp;diff=240&amp;oldid=prev</id>
		<title>Tuukka Lehtonen at 12:41, 29 September 2010</title>
		<link rel="alternate" type="text/html" href="https://dev.simantics.org/index.php?title=Inverse_Relations&amp;diff=240&amp;oldid=prev"/>
		<updated>2010-09-29T12:41:14Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:41, 29 September 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;According to [[Layer0_ontology|Layer0]] semantics, relations &amp;lt;em&amp;gt;can&amp;lt;/em&amp;gt; have inverse relations. For the database and client this means that when claiming new statements &amp;lt;code&amp;gt;(s, p, o)&amp;lt;/code&amp;gt; using&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;According to [[Layer0_ontology|Layer0]] semantics, relations &amp;lt;em&amp;gt;can&amp;lt;/em&amp;gt; have inverse relations. For the database and client this means that when claiming new statements &amp;lt;code&amp;gt;(s, p, o)&amp;lt;/code&amp;gt; using&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  WriteGraph.claim(Resource subject, Resource predicate, Resource object)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  WriteGraph.claim(Resource subject, Resource predicate, Resource object)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;an inverse statement &amp;lt;code&amp;gt;(o, inv(p), s)&amp;lt;/code&amp;gt; will be automatically claimed into the database. Some statements are such that they tend to raise the degree of the resource (amount of incoming/outgoing relations) to very large numbers. The database is not built to efficiently handle such resources. One such relation is &#039;&#039;InstanceOf&#039;&#039; which is a statement that pretty much each and every resource in the database has. It does not have an inverse relation, but considering it had one like &#039;&#039;HasInstance&#039;&#039;, here&#039;s what would happen. For example, for each &#039;&#039;L0.String&#039;&#039; instance created an inverse statement would be added &amp;lt;code&amp;gt;(L0.String, L0.HasInstance, :L0.String)&amp;lt;/code&amp;gt; statement into the database, thereby enlarging the degree &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;of statements &lt;/del&gt;of &#039;&#039;L0.String&#039;&#039;. When working with larger databases this would most likely become a problem.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;an inverse statement &amp;lt;code&amp;gt;(o, inv(p), s)&amp;lt;/code&amp;gt; will be automatically claimed into the database. Some statements are such that they tend to raise the degree of the resource (amount of incoming/outgoing relations) to very large numbers. The database is not built to efficiently handle such resources. One such relation is &#039;&#039;InstanceOf&#039;&#039; which is a statement that pretty much each and every resource in the database has. It does not have an inverse relation, but considering it had one like &#039;&#039;HasInstance&#039;&#039;, here&#039;s what would happen. For example, for each &#039;&#039;L0.String&#039;&#039; instance created an inverse statement would be added &amp;lt;code&amp;gt;(L0.String, L0.HasInstance, :L0.String)&amp;lt;/code&amp;gt; statement into the database, thereby enlarging the degree of &#039;&#039;L0.String&#039;&#039;. When working with larger databases this would most likely become a problem.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To make it possible to optimize this situation we provide the possibility to skip adding of inverse relations when claiming statements into the database by using&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To make it possible to optimize this situation we provide the possibility to skip adding of inverse relations when claiming statements into the database by using&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  WriteGraph.claim(Resource subject, Resource predicate, Resource inverse, Resource object)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  WriteGraph.claim(Resource subject, Resource predicate, Resource inverse, Resource object)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;with a &amp;lt;code&amp;gt;null&amp;lt;/code&amp;gt; inverse relation argument to create the sensitive statements such as &amp;#039;&amp;#039;InstanceOf&amp;#039;&amp;#039;-relations.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;with a &amp;lt;code&amp;gt;null&amp;lt;/code&amp;gt; inverse relation argument to create the sensitive statements such as &amp;#039;&amp;#039;InstanceOf&amp;#039;&amp;#039;-relations.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tuukka Lehtonen</name></author>
	</entry>
	<entry>
		<id>https://dev.simantics.org/index.php?title=Inverse_Relations&amp;diff=239&amp;oldid=prev</id>
		<title>Tuukka Lehtonen at 12:40, 29 September 2010</title>
		<link rel="alternate" type="text/html" href="https://dev.simantics.org/index.php?title=Inverse_Relations&amp;diff=239&amp;oldid=prev"/>
		<updated>2010-09-29T12:40:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:40, 29 September 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;According to [[Layer0_ontology|Layer0]] semantics, relations &amp;lt;em&amp;gt;can&amp;lt;/em&amp;gt; have inverse relations. For the database and client this means that when claiming new statements &amp;lt;code&amp;gt;(s, p, o)&amp;lt;/code&amp;gt; using&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;According to [[Layer0_ontology|Layer0]] semantics, relations &amp;lt;em&amp;gt;can&amp;lt;/em&amp;gt; have inverse relations. For the database and client this means that when claiming new statements &amp;lt;code&amp;gt;(s, p, o)&amp;lt;/code&amp;gt; using&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  WriteGraph.claim(Resource subject, Resource predicate, Resource object)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  WriteGraph.claim(Resource subject, Resource predicate, Resource object)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;an inverse statement &amp;lt;code&amp;gt;(o, inv(p), s)&amp;lt;/code&amp;gt; will be automatically claimed into the database. Some statements are such that they tend to raise the degree of the resource (amount of incoming/outgoing relations) to very large numbers. The database is not built to efficiently handle such resources. One such relation is &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;code&amp;gt;&lt;/del&gt;InstanceOf&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/code&amp;gt; &lt;/del&gt;which is a statement that pretty much each and every resource in the database has. It does not have an inverse relation, but considering it had one, here&#039;s what would happen. For example, for each &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;code&amp;gt;&lt;/del&gt;L0.String&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/code&amp;gt; &lt;/del&gt;instance created an inverse statement would be added &amp;lt;code&amp;gt;(L0.String, L0.HasInstance, :L0.String)&amp;lt;/code&amp;gt; statement into the database, thereby enlarging the degree of statements of &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;code&amp;gt;&lt;/del&gt;L0.String&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/code&amp;gt;&lt;/del&gt;. When working with larger databases this would most likely become a problem.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;an inverse statement &amp;lt;code&amp;gt;(o, inv(p), s)&amp;lt;/code&amp;gt; will be automatically claimed into the database. Some statements are such that they tend to raise the degree of the resource (amount of incoming/outgoing relations) to very large numbers. The database is not built to efficiently handle such resources. One such relation is &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&lt;/ins&gt;InstanceOf&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039; &lt;/ins&gt;which is a statement that pretty much each and every resource in the database has. It does not have an inverse relation, but considering it had one &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;like &#039;&#039;HasInstance&#039;&#039;&lt;/ins&gt;, here&#039;s what would happen. For example, for each &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&lt;/ins&gt;L0.String&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039; &lt;/ins&gt;instance created an inverse statement would be added &amp;lt;code&amp;gt;(L0.String, L0.HasInstance, :L0.String)&amp;lt;/code&amp;gt; statement into the database, thereby enlarging the degree of statements of &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&lt;/ins&gt;L0.String&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&lt;/ins&gt;. When working with larger databases this would most likely become a problem.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To make it possible to optimize this situation we provide the possibility to skip adding of inverse relations when claiming statements into the database by using&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To make it possible to optimize this situation we provide the possibility to skip adding of inverse relations when claiming statements into the database by using&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  WriteGraph.claim(Resource subject, Resource predicate, Resource inverse, Resource object)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  WriteGraph.claim(Resource subject, Resource predicate, Resource inverse, Resource object)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;with a &amp;lt;code&amp;gt;null&amp;lt;/code&amp;gt; inverse relation argument to create the sensitive statements such as InstanceOf-relations.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;with a &amp;lt;code&amp;gt;null&amp;lt;/code&amp;gt; inverse relation argument to create the sensitive statements such as &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&lt;/ins&gt;InstanceOf&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&lt;/ins&gt;-relations.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tuukka Lehtonen</name></author>
	</entry>
	<entry>
		<id>https://dev.simantics.org/index.php?title=Inverse_Relations&amp;diff=238&amp;oldid=prev</id>
		<title>Tuukka Lehtonen at 12:39, 29 September 2010</title>
		<link rel="alternate" type="text/html" href="https://dev.simantics.org/index.php?title=Inverse_Relations&amp;diff=238&amp;oldid=prev"/>
		<updated>2010-09-29T12:39:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:39, 29 September 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;According to [[Layer0_ontology|Layer0]] semantics, relations &amp;lt;em&amp;gt;can&amp;lt;/em&amp;gt; have inverse relations. For the database and client this means that when claiming new statements &amp;lt;code&amp;gt;(s, p, o)&amp;lt;/code&amp;gt; using&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;According to [[Layer0_ontology|Layer0]] semantics, relations &amp;lt;em&amp;gt;can&amp;lt;/em&amp;gt; have inverse relations. For the database and client this means that when claiming new statements &amp;lt;code&amp;gt;(s, p, o)&amp;lt;/code&amp;gt; using&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  WriteGraph.claim(Resource subject, Resource predicate, Resource object)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  WriteGraph.claim(Resource subject, Resource predicate, Resource object)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;an inverse statement &amp;lt;code&amp;gt;(o, inv(p), s)&amp;lt;/code&amp;gt; will be automatically claimed into the database. Some statements are such that they tend to raise the degree of the resource (amount of incoming/outgoing relations) to very large numbers. The database is not built to efficiently handle such resources. One such relation&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/inverse relation pair &lt;/del&gt;is &amp;lt;code&amp;gt;InstanceOf&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/HasInstance&lt;/del&gt;&amp;lt;/code&amp;gt; which is a statement that pretty much each and every resource in the database has. For example, for each &amp;lt;code&amp;gt;L0.String&amp;lt;/code&amp;gt; instance created &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;will add a new &lt;/del&gt;&amp;lt;code&amp;gt;(L0.String, L0.HasInstance, :L0.String)&amp;lt;/code&amp;gt; statement into the database, thereby enlarging the degree of &amp;lt;code&amp;gt;L0.String&amp;lt;/code&amp;gt;. When working with larger databases this &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;will &lt;/del&gt;most likely become a problem.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;an inverse statement &amp;lt;code&amp;gt;(o, inv(p), s)&amp;lt;/code&amp;gt; will be automatically claimed into the database. Some statements are such that they tend to raise the degree of the resource (amount of incoming/outgoing relations) to very large numbers. The database is not built to efficiently handle such resources. One such relation is &amp;lt;code&amp;gt;InstanceOf&amp;lt;/code&amp;gt; which is a statement that pretty much each and every resource in the database has&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. It does not have an inverse relation, but considering it had one, here&#039;s what would happen&lt;/ins&gt;. For example, for each &amp;lt;code&amp;gt;L0.String&amp;lt;/code&amp;gt; instance created &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;an inverse statement would be added &lt;/ins&gt;&amp;lt;code&amp;gt;(L0.String, L0.HasInstance, :L0.String)&amp;lt;/code&amp;gt; statement into the database, thereby enlarging the degree &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;of statements &lt;/ins&gt;of &amp;lt;code&amp;gt;L0.String&amp;lt;/code&amp;gt;. When working with larger databases this &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;would &lt;/ins&gt;most likely become a problem.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To make it possible to optimize this situation we provide the possibility to skip adding of inverse relations when claiming statements into the database by using&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To make it possible to optimize this situation we provide the possibility to skip adding of inverse relations when claiming statements into the database by using&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  WriteGraph.claim(Resource subject, Resource predicate, Resource inverse, Resource object)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  WriteGraph.claim(Resource subject, Resource predicate, Resource inverse, Resource object)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;with a &amp;lt;code&amp;gt;null&amp;lt;/code&amp;gt; inverse relation argument to create the sensitive statements such as InstanceOf-relations.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;with a &amp;lt;code&amp;gt;null&amp;lt;/code&amp;gt; inverse relation argument to create the sensitive statements such as InstanceOf-relations.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tuukka Lehtonen</name></author>
	</entry>
	<entry>
		<id>https://dev.simantics.org/index.php?title=Inverse_Relations&amp;diff=204&amp;oldid=prev</id>
		<title>Toni Kalajainen: Created page with &#039;According to Layer0 semantics, relations &lt;em&gt;can&lt;/em&gt; have inverse relations. For the database and client this means that when claiming new statements &lt;code&gt;(...&#039;</title>
		<link rel="alternate" type="text/html" href="https://dev.simantics.org/index.php?title=Inverse_Relations&amp;diff=204&amp;oldid=prev"/>
		<updated>2010-09-29T11:19:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;According to &lt;a href=&quot;/index.php?title=Layer0_ontology&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Layer0 ontology (page does not exist)&quot;&gt;Layer0&lt;/a&gt; semantics, relations &amp;lt;em&amp;gt;can&amp;lt;/em&amp;gt; have inverse relations. For the database and client this means that when claiming new statements &amp;lt;code&amp;gt;(...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;According to [[Layer0_ontology|Layer0]] semantics, relations &amp;lt;em&amp;gt;can&amp;lt;/em&amp;gt; have inverse relations. For the database and client this means that when claiming new statements &amp;lt;code&amp;gt;(s, p, o)&amp;lt;/code&amp;gt; using&lt;br /&gt;
 WriteGraph.claim(Resource subject, Resource predicate, Resource object)&lt;br /&gt;
an inverse statement &amp;lt;code&amp;gt;(o, inv(p), s)&amp;lt;/code&amp;gt; will be automatically claimed into the database. Some statements are such that they tend to raise the degree of the resource (amount of incoming/outgoing relations) to very large numbers. The database is not built to efficiently handle such resources. One such relation/inverse relation pair is &amp;lt;code&amp;gt;InstanceOf/HasInstance&amp;lt;/code&amp;gt; which is a statement that pretty much each and every resource in the database has. For example, for each &amp;lt;code&amp;gt;L0.String&amp;lt;/code&amp;gt; instance created will add a new &amp;lt;code&amp;gt;(L0.String, L0.HasInstance, :L0.String)&amp;lt;/code&amp;gt; statement into the database, thereby enlarging the degree of &amp;lt;code&amp;gt;L0.String&amp;lt;/code&amp;gt;. When working with larger databases this will most likely become a problem.&lt;br /&gt;
&lt;br /&gt;
To make it possible to optimize this situation we provide the possibility to skip adding of inverse relations when claiming statements into the database by using&lt;br /&gt;
 WriteGraph.claim(Resource subject, Resource predicate, Resource inverse, Resource object)&lt;br /&gt;
with a &amp;lt;code&amp;gt;null&amp;lt;/code&amp;gt; inverse relation argument to create the sensitive statements such as InstanceOf-relations.&lt;/div&gt;</summary>
		<author><name>Toni Kalajainen</name></author>
	</entry>
</feed>