<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Phil Dawes' Stuff - Latest Comments in Some ideas for static triple indexing</title><link>http://phildawesstuff.disqus.com/</link><description></description><language>en</language><lastBuildDate>Tue, 01 May 2007 03:15:27 -0000</lastBuildDate><item><title>Re: Some ideas for static triple indexing</title><link>http://www.phildawes.net/blog/2007/04/30/some-ideas-for-static-triple-indexing/#comment-2753584</link><description>Hi Nick,&lt;br&gt;&lt;br&gt;Opaque subject identifiers are even easier to index because they can be picked to be sequential in the index. I.e. subject 3 is at position 3.&lt;br&gt;&lt;br&gt;Re. number of indexes: I think I'll need at least the following.&lt;br&gt;&lt;br&gt;s-&amp;gt;p-&amp;gt;o&lt;br&gt;p-&amp;gt;o-&amp;gt;s&lt;br&gt;o-&amp;gt;s-&amp;gt;p&lt;br&gt;&lt;br&gt;So 3 index hierarchies for searches. The subject-id-in-the-object-position mentioned above is a special case, and will probably require its own (relatively small) index o-&amp;gt;sp.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Phil Dawes</dc:creator><pubDate>Tue, 01 May 2007 03:15:27 -0000</pubDate></item><item><title>Re: Some ideas for static triple indexing</title><link>http://www.phildawes.net/blog/2007/04/30/some-ideas-for-static-triple-indexing/#comment-2753585</link><description>Hi Drew,&lt;br&gt;&lt;br&gt;The latter. Subject identifiers aren't exposed to the client so there's no way to make statements using them specificially. Instead to join data from two subjects in different graphs you must use identity by discription (i.e. the subject that has these property values..) and the person/agent doing the query must know about them. &lt;br&gt;Internally the subject IDs can be in the 'object' position to support things like containment. E.g. the XML:&lt;br&gt;&lt;br&gt;&amp;lt;pre&amp;gt;&lt;code&gt;&lt;br&gt;&amp;lt;person&amp;gt;&lt;br&gt;  &amp;lt;name&amp;gt;Phil Dawes&amp;lt;/name&amp;gt;&lt;br&gt;  &amp;lt;email&amp;gt;phil@example.com&amp;lt;/email&amp;gt;&lt;br&gt;  &amp;lt;knows&amp;gt;&lt;br&gt;     &amp;lt;person&amp;gt; &lt;br&gt;         &amp;lt;name&amp;gt;Steve&amp;lt;/name&amp;gt;&lt;br&gt;         &amp;lt;email&amp;gt;s@example.com&amp;lt;/email&amp;gt;&lt;br&gt;     &amp;lt;/person&amp;gt;&lt;br&gt;  &amp;lt;/knows&amp;gt;&lt;br&gt;&amp;lt;/person&amp;gt;&lt;br&gt;&lt;/code&gt;&amp;lt;/pre&amp;gt;&lt;br&gt;&lt;br&gt;Internally indexed as:&lt;br&gt;&amp;lt;pre&amp;gt;&lt;code&gt;&lt;br&gt;#1 name "Phil Dawes"&lt;br&gt;#1 tag Person&lt;br&gt;#1 knows #2&lt;br&gt;#2 name Steve&lt;br&gt;#2 email &lt;a href="mailto:steve@example.com" rel="nofollow"&gt;steve@example.com&lt;/a&gt;&lt;br&gt;#2 tag Person&lt;br&gt;&lt;/code&gt;&amp;lt;/pre&amp;gt;&lt;br&gt;&lt;br&gt;but externally you can't refer to them. Does that make sense?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Phil Dawes</dc:creator><pubDate>Tue, 01 May 2007 03:13:37 -0000</pubDate></item><item><title>Re: Some ideas for static triple indexing</title><link>http://www.phildawes.net/blog/2007/04/30/some-ideas-for-static-triple-indexing/#comment-2753583</link><description>Good point about the even distribution of the hashes. I'll have to remember that one. :)&lt;br&gt;&lt;br&gt;Didn't you say that at least the subject will be a sequential identifier, though, and so not susceptible to that optimisation?&lt;br&gt;&lt;br&gt;How many actual indexes will you need to efficiently support that set of queries, given your heirarchial index structure? Only 3?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nick Johnson</dc:creator><pubDate>Mon, 30 Apr 2007 20:08:48 -0000</pubDate></item><item><title>Re: Some ideas for static triple indexing</title><link>http://www.phildawes.net/blog/2007/04/30/some-ideas-for-static-triple-indexing/#comment-2753582</link><description>Your subject-id-range context trick doesn't sound like it has the same capabilities as other context systems. Does yours have a way to store 's1 p1 o1' in one context and 's1 p2 o2' in another? Or do you have to make some other statement to link the ids of the first s1 and the second s1?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">http://drewp.pip.verisignlabs.</dc:creator><pubDate>Mon, 30 Apr 2007 19:07:55 -0000</pubDate></item></channel></rss>