<?xml version="1.0" encoding="utf-8"?><!-- generator="b2evolution/7.2.3-stable" -->
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Properties</title>
		<link>https://hcmc.uvic.ca/blogs/index.php?blog=46</link>
		<atom:link rel="self" type="application/rss+xml" href="https://hcmc.uvic.ca/blogs/index.php?blog=46&#38;tempskin=_rss2" />
		<description>A database project to collect historical data on properties and titles.</description>
		<language>en-CA</language>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=7.2.3-stable"/>
		<ttl>60</ttl>
				<item>
			<title>Transaction-chain processing script</title>
			<link>https://hcmc.uvic.ca/blogs/index.php/transaction_chain_processing_script?blog=46</link>
			<pubDate>Thu, 05 Jul 2012 19:27:51 +0000</pubDate>			<dc:creator>Martin</dc:creator>
			<category domain="main">Activity log</category>			<guid isPermaLink="false">9839@https://hcmc.uvic.ca/blogs/</guid>
						<description>&lt;p&gt;Just for the record:&lt;/p&gt;

&lt;p&gt;There is a file called properties/xml/process_properties_201-07.sh, which when invoked at the command line with a parameter which is the XML dump of the db will run two XSLT transformations (so far) to produce &quot;complete, enhanced&quot; output in the form of another XML file, which includes transaction chains and lots of other stuff.&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;https://hcmc.uvic.ca/blogs/index.php/transaction_chain_processing_script?blog=46&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>Just for the record:</p>

<p>There is a file called properties/xml/process_properties_201-07.sh, which when invoked at the command line with a parameter which is the XML dump of the db will run two XSLT transformations (so far) to produce "complete, enhanced" output in the form of another XML file, which includes transaction chains and lots of other stuff.</p><div class="item_footer"><p><small><a href="https://hcmc.uvic.ca/blogs/index.php/transaction_chain_processing_script?blog=46">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>https://hcmc.uvic.ca/blogs/index.php/transaction_chain_processing_script?blog=46#comments</comments>
			<wfw:commentRss>https://hcmc.uvic.ca/blogs/index.php?blog=46&#38;tempskin=_rss2&#38;disp=comments&#38;p=9839</wfw:commentRss>
		</item>
				<item>
			<title>Early results from transaction-chain processing</title>
			<link>https://hcmc.uvic.ca/blogs/index.php/early_results_from_transaction_chain_pro?blog=46</link>
			<pubDate>Thu, 05 Jul 2012 18:52:02 +0000</pubDate>			<dc:creator>Martin</dc:creator>
			<category domain="main">Activity log</category>			<guid isPermaLink="false">9838@https://hcmc.uvic.ca/blogs/</guid>
						<description>&lt;p&gt;These are some of the results coming out of the generation of transaction-chains through XSLT:&lt;/p&gt;
&lt;p&gt;
This is an example of what I&#039;m pulling out so far, and the sorts of oddities that are being revealed:
&lt;/p&gt;
&lt;pre&gt;
&amp;lt;transaction-chain&amp;gt;
&amp;lt;title key=&quot;206&quot; property-id=&quot;101&quot; property-name=&quot;B:103 L:003&quot;/&amp;gt;
  &amp;lt;transaction-chain&amp;gt;
     &amp;lt;title key=&quot;249&quot; property-id=&quot;101&quot; property-name=&quot;B:103 L:003&quot;/&amp;gt;
     &amp;lt;title key=&quot;204&quot; property-id=&quot;101&quot; property-name=&quot;B:103 L:003&quot;/&amp;gt;
     &amp;lt;title key=&quot;157&quot; property-id=&quot;101&quot; property-name=&quot;B:103 L:003&quot;/&amp;gt;
     &amp;lt;title key=&quot;25&quot; property-id=&quot;71&quot; property-name=&quot;B:011 L:026&quot;/&amp;gt;
  &amp;lt;/transaction-chain&amp;gt;
  &amp;lt;transaction-chain&amp;gt;
     &amp;lt;title key=&quot;157&quot; property-id=&quot;101&quot; property-name=&quot;B:103 L:003&quot;/&amp;gt;
     &amp;lt;title key=&quot;25&quot; property-id=&quot;71&quot; property-name=&quot;B:011 L:026&quot;/&amp;gt;
  &amp;lt;/transaction-chain&amp;gt;
&amp;lt;/transaction-chain&amp;gt;
&lt;/pre&gt;
&lt;p&gt;This shows nesting chains. Title 206 is the start of the initial chain; 249 is then split from it (while presumably 206 continues?). 249 becomes 204, then the split is re-joined: 157 has both 206 and 204 as preceding-titles.&lt;/p&gt;

&lt;p&gt;
I don&#039;t know if this makes sense -- can a title be split into itself and another title, as seems to be the case here with 206? There do seem to be lots of examples of this in the database.&lt;/p&gt;

&lt;p&gt;My system currently captures splits like this well, but it doesn&#039;t yet unify chains which come back together again (so the two interior chains in the above example both have 157 -&amp;gt; 25). A subsequent transformation could easily detect such merges and represent them somehow, but it&#039;s not clear how. If we don&#039;t do that, then you would end up with two distinct chains:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;206 -&amp;gt; 249 -&amp;gt; 204 -&amp;gt; 157 -&amp;gt; 25&lt;/li&gt;

  &lt;li&gt;206 -&amp;gt; 157 -&amp;gt; 25&lt;/li&gt;
&lt;/ul&gt;



&lt;p&gt;This would be problematic if you were doing stats which depend on the number of transactions. We could, alternatively, collapse all chains of which one is a reduced subset of the other, so you would end up with just one here:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;206 -&amp;gt; 249 -&amp;gt; 204 -&amp;gt; 157 -&amp;gt; 25&lt;/li&gt;
&lt;/ul&gt;



&lt;p&gt;
However, this would ignore the fact that 157 has 206 as a preceding title. It&#039;s also not clear what should happen with chains which diverge but never re-unite, such as this:&lt;/p&gt;

&lt;pre&gt;
&amp;lt;transaction-chain&amp;gt;
  &amp;lt;title key=&quot;606&quot; property-id=&quot;211&quot; property-name=&quot;B:039 L:005&quot;/&amp;gt;
  &amp;lt;transaction-chain&amp;gt;
     &amp;lt;title key=&quot;507&quot; property-id=&quot;211&quot; property-name=&quot;B:039 L:005&quot;/&amp;gt;
     &amp;lt;title key=&quot;421&quot; property-id=&quot;211&quot; property-name=&quot;B:039 L:005&quot;/&amp;gt;
  &amp;lt;/transaction-chain&amp;gt;
  &amp;lt;transaction-chain&amp;gt;
     &amp;lt;title key=&quot;510&quot; property-id=&quot;214&quot; property-name=&quot;B:039 L:008&quot;/&amp;gt;
     &amp;lt;title key=&quot;422&quot; property-id=&quot;214&quot; property-name=&quot;B:039 L:008&quot;/&amp;gt;
  &amp;lt;/transaction-chain&amp;gt;
&amp;lt;/transaction-chain&amp;gt;
&lt;/pre&gt;
&lt;p&gt;Here you would conceivably have two distinct chains:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;606 -&amp;gt; 507 -&amp;gt; 421&lt;/li&gt;
  &lt;li&gt;606 -&amp;gt; 510 -&amp;gt; 422&lt;/li&gt;
&lt;/ul&gt;



&lt;p&gt;and any stats based on these would end up counting the sale of 606 twice (which might well be legitimate, because it is split, so there are arguably two transactions).&lt;/p&gt;
&lt;p&gt;
It&#039;s worth noting that in most of the complex chains I&#039;m seeing, an initial split into two or more titles is then followed by their being re-united very quickly.&lt;/p&gt;

&lt;p&gt;Some quick stats:&lt;/p&gt;

&lt;ul&gt;

  &lt;li&gt;713 primary chains exist (meaning that there are 713 chains which start from a title which has no preceding-title).&lt;/li&gt;

  &lt;li&gt;411 of these primary chains go nowhere (in other words, there is no subsequent title, so no transactions take place other than the primary title purchase).&lt;/li&gt;


  &lt;li&gt;Therefore there are 302 instances of actual usable chains involving one or more sale.&lt;/li&gt;


  &lt;li&gt;253 of those chains are simple, in that there are no splits. (There could be unions, though, because I&#039;m not detecting those yet).&lt;/li&gt;


  &lt;li&gt;53 of the chains split into sub-chains.&lt;/li&gt;


  &lt;li&gt;28 of the chains involve more than one property.&lt;/li&gt;


  &lt;li&gt;186 titles appear in more than one root transaction chain (suggesting there may be up to 100 merges between root chains, something distinct from the examples above where a root chain splits and then merges again).&lt;/li&gt;


  &lt;li&gt;40 root chains feature the same title more than once (meaning that the chain splits, then merges again at some point). &lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;https://hcmc.uvic.ca/blogs/index.php/early_results_from_transaction_chain_pro?blog=46&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>These are some of the results coming out of the generation of transaction-chains through XSLT:</p>
<p>
This is an example of what I'm pulling out so far, and the sorts of oddities that are being revealed:
</p>
<pre>
&lt;transaction-chain&gt;
&lt;title key="206" property-id="101" property-name="B:103 L:003"/&gt;
  &lt;transaction-chain&gt;
     &lt;title key="249" property-id="101" property-name="B:103 L:003"/&gt;
     &lt;title key="204" property-id="101" property-name="B:103 L:003"/&gt;
     &lt;title key="157" property-id="101" property-name="B:103 L:003"/&gt;
     &lt;title key="25" property-id="71" property-name="B:011 L:026"/&gt;
  &lt;/transaction-chain&gt;
  &lt;transaction-chain&gt;
     &lt;title key="157" property-id="101" property-name="B:103 L:003"/&gt;
     &lt;title key="25" property-id="71" property-name="B:011 L:026"/&gt;
  &lt;/transaction-chain&gt;
&lt;/transaction-chain&gt;
</pre>
<p>This shows nesting chains. Title 206 is the start of the initial chain; 249 is then split from it (while presumably 206 continues?). 249 becomes 204, then the split is re-joined: 157 has both 206 and 204 as preceding-titles.</p>

<p>
I don't know if this makes sense -- can a title be split into itself and another title, as seems to be the case here with 206? There do seem to be lots of examples of this in the database.</p>

<p>My system currently captures splits like this well, but it doesn't yet unify chains which come back together again (so the two interior chains in the above example both have 157 -&gt; 25). A subsequent transformation could easily detect such merges and represent them somehow, but it's not clear how. If we don't do that, then you would end up with two distinct chains:</p>

<ul>
  <li>206 -&gt; 249 -&gt; 204 -&gt; 157 -&gt; 25</li>

  <li>206 -&gt; 157 -&gt; 25</li>
</ul>



<p>This would be problematic if you were doing stats which depend on the number of transactions. We could, alternatively, collapse all chains of which one is a reduced subset of the other, so you would end up with just one here:</p>
<ul>
  <li>206 -&gt; 249 -&gt; 204 -&gt; 157 -&gt; 25</li>
</ul>



<p>
However, this would ignore the fact that 157 has 206 as a preceding title. It's also not clear what should happen with chains which diverge but never re-unite, such as this:</p>

<pre>
&lt;transaction-chain&gt;
  &lt;title key="606" property-id="211" property-name="B:039 L:005"/&gt;
  &lt;transaction-chain&gt;
     &lt;title key="507" property-id="211" property-name="B:039 L:005"/&gt;
     &lt;title key="421" property-id="211" property-name="B:039 L:005"/&gt;
  &lt;/transaction-chain&gt;
  &lt;transaction-chain&gt;
     &lt;title key="510" property-id="214" property-name="B:039 L:008"/&gt;
     &lt;title key="422" property-id="214" property-name="B:039 L:008"/&gt;
  &lt;/transaction-chain&gt;
&lt;/transaction-chain&gt;
</pre>
<p>Here you would conceivably have two distinct chains:</p>

<ul>
  <li>606 -&gt; 507 -&gt; 421</li>
  <li>606 -&gt; 510 -&gt; 422</li>
</ul>



<p>and any stats based on these would end up counting the sale of 606 twice (which might well be legitimate, because it is split, so there are arguably two transactions).</p>
<p>
It's worth noting that in most of the complex chains I'm seeing, an initial split into two or more titles is then followed by their being re-united very quickly.</p>

<p>Some quick stats:</p>

<ul>

  <li>713 primary chains exist (meaning that there are 713 chains which start from a title which has no preceding-title).</li>

  <li>411 of these primary chains go nowhere (in other words, there is no subsequent title, so no transactions take place other than the primary title purchase).</li>


  <li>Therefore there are 302 instances of actual usable chains involving one or more sale.</li>


  <li>253 of those chains are simple, in that there are no splits. (There could be unions, though, because I'm not detecting those yet).</li>


  <li>53 of the chains split into sub-chains.</li>


  <li>28 of the chains involve more than one property.</li>


  <li>186 titles appear in more than one root transaction chain (suggesting there may be up to 100 merges between root chains, something distinct from the examples above where a root chain splits and then merges again).</li>


  <li>40 root chains feature the same title more than once (meaning that the chain splits, then merges again at some point). </li>
</ul>

<div class="item_footer"><p><small><a href="https://hcmc.uvic.ca/blogs/index.php/early_results_from_transaction_chain_pro?blog=46">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>https://hcmc.uvic.ca/blogs/index.php/early_results_from_transaction_chain_pro?blog=46#comments</comments>
			<wfw:commentRss>https://hcmc.uvic.ca/blogs/index.php?blog=46&#38;tempskin=_rss2&#38;disp=comments&#38;p=9838</wfw:commentRss>
		</item>
				<item>
			<title>Processing chain and transaction-chain-building progress</title>
			<link>https://hcmc.uvic.ca/blogs/index.php/processing_chain_and_transaction_chain_b?blog=46</link>
			<pubDate>Wed, 04 Jul 2012 19:59:21 +0000</pubDate>			<dc:creator>Martin</dc:creator>
			<category domain="main">Activity log</category>			<guid isPermaLink="false">9831@https://hcmc.uvic.ca/blogs/</guid>
						<description>&lt;p&gt;Today I have:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Written a basic script to run the two saxon transforms on my original source data. This script will have more transformations added to it eventually, forming a full process from db output XML to CSV file for JS-R.&lt;/li&gt;
  &lt;li&gt;Added detection of liquidated properties and liquidated property controls (although I&#039;m still working on data that doesn&#039;t have the required identification of purchasers to allow detection of actual liquidations -- still waiting on JS-R to add that to the db).&lt;/li&gt;
  &lt;li&gt;Implemented basic transaction-chain detection. This is remarkably slow, but does appear to be working. So far it&#039;s listing all titles in a single-title transaction chain. Next I need to do something when I reach a fork in the chain (perhaps generate a nested chain, which could be un-nested in the next transformation).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Moving forward. Tomorrow I should be able to finish transaction chains, and presumably get some idea from JS-R of what kind of output format he would like.&lt;/p&gt;

&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;https://hcmc.uvic.ca/blogs/index.php/processing_chain_and_transaction_chain_b?blog=46&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>Today I have:</p>

<ul>
  <li>Written a basic script to run the two saxon transforms on my original source data. This script will have more transformations added to it eventually, forming a full process from db output XML to CSV file for JS-R.</li>
  <li>Added detection of liquidated properties and liquidated property controls (although I'm still working on data that doesn't have the required identification of purchasers to allow detection of actual liquidations -- still waiting on JS-R to add that to the db).</li>
  <li>Implemented basic transaction-chain detection. This is remarkably slow, but does appear to be working. So far it's listing all titles in a single-title transaction chain. Next I need to do something when I reach a fork in the chain (perhaps generate a nested chain, which could be un-nested in the next transformation).</li>
</ul>

<p>Moving forward. Tomorrow I should be able to finish transaction chains, and presumably get some idea from JS-R of what kind of output format he would like.</p>

<div class="item_footer"><p><small><a href="https://hcmc.uvic.ca/blogs/index.php/processing_chain_and_transaction_chain_b?blog=46">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>https://hcmc.uvic.ca/blogs/index.php/processing_chain_and_transaction_chain_b?blog=46#comments</comments>
			<wfw:commentRss>https://hcmc.uvic.ca/blogs/index.php?blog=46&#38;tempskin=_rss2&#38;disp=comments&#38;p=9831</wfw:commentRss>
		</item>
				<item>
			<title>Enhancing the complete data XML</title>
			<link>https://hcmc.uvic.ca/blogs/index.php/enhancing_the_complete_data_xml?blog=46</link>
			<pubDate>Tue, 03 Jul 2012 21:29:44 +0000</pubDate>			<dc:creator>Martin</dc:creator>
			<category domain="main">Activity log</category>			<guid isPermaLink="false">9822@https://hcmc.uvic.ca/blogs/</guid>
						<description>&lt;p&gt;I&#039;m now working on a second transform to be applied to the result of the first. This one already detects sale-to-self situations (although it doesn&#039;t find any -- waiting for some known data from JS-R to see why) and possible family sales. I&#039;m now working on building the transaction chains, but I&#039;m not sure whether this can actually be done with XSLT or not, because you need to keep a tally of which items have already been processed, and I can&#039;t yet figure out a way to do that.&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;https://hcmc.uvic.ca/blogs/index.php/enhancing_the_complete_data_xml?blog=46&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>I'm now working on a second transform to be applied to the result of the first. This one already detects sale-to-self situations (although it doesn't find any -- waiting for some known data from JS-R to see why) and possible family sales. I'm now working on building the transaction chains, but I'm not sure whether this can actually be done with XSLT or not, because you need to keep a tally of which items have already been processed, and I can't yet figure out a way to do that.</p><div class="item_footer"><p><small><a href="https://hcmc.uvic.ca/blogs/index.php/enhancing_the_complete_data_xml?blog=46">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>https://hcmc.uvic.ca/blogs/index.php/enhancing_the_complete_data_xml?blog=46#comments</comments>
			<wfw:commentRss>https://hcmc.uvic.ca/blogs/index.php?blog=46&#38;tempskin=_rss2&#38;disp=comments&#38;p=9822</wfw:commentRss>
		</item>
				<item>
			<title>Next stage: first day's programming</title>
			<link>https://hcmc.uvic.ca/blogs/index.php/next_stage_first_day_s_programming?blog=46</link>
			<pubDate>Fri, 29 Jun 2012 22:13:05 +0000</pubDate>			<dc:creator>Martin</dc:creator>
			<category domain="main">Activity log</category>			<guid isPermaLink="false">9817@https://hcmc.uvic.ca/blogs/</guid>
						<description>&lt;p&gt;In between other things, I&#039;ve made a good start on the next stage (based on the notes &lt;a href=&quot;http://hcmc.uvic.ca/blogs/index.php?blog=46&amp;amp;p=9608&quot;&gt;here&lt;/a&gt;). I&#039;ve coded a transform which does the following (so far):&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Expands each owner to include full ethnicity information inside the owner element.&lt;/li&gt;
  &lt;li&gt;Expands each title to include a full property element inside it, as well as a list of expanded owners, and a list of preceding titles.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is already a long way towards creating the sort of big flat file that will make it easy to trace transaction-chains back in time. &lt;/p&gt;

&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;https://hcmc.uvic.ca/blogs/index.php/next_stage_first_day_s_programming?blog=46&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>In between other things, I've made a good start on the next stage (based on the notes <a href="http://hcmc.uvic.ca/blogs/index.php?blog=46&amp;p=9608">here</a>). I've coded a transform which does the following (so far):</p>

<ul>
  <li>Expands each owner to include full ethnicity information inside the owner element.</li>
  <li>Expands each title to include a full property element inside it, as well as a list of expanded owners, and a list of preceding titles.</li>
</ul>

<p>This is already a long way towards creating the sort of big flat file that will make it easy to trace transaction-chains back in time. </p>

<div class="item_footer"><p><small><a href="https://hcmc.uvic.ca/blogs/index.php/next_stage_first_day_s_programming?blog=46">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>https://hcmc.uvic.ca/blogs/index.php/next_stage_first_day_s_programming?blog=46#comments</comments>
			<wfw:commentRss>https://hcmc.uvic.ca/blogs/index.php?blog=46&#38;tempskin=_rss2&#38;disp=comments&#38;p=9817</wfw:commentRss>
		</item>
				<item>
			<title>Long discussion: next stage</title>
			<link>https://hcmc.uvic.ca/blogs/index.php/long_discussion_next_stage?blog=46</link>
			<pubDate>Tue, 15 May 2012 21:41:11 +0000</pubDate>			<dc:creator>Martin</dc:creator>
			<category domain="main">Activity log</category>			<guid isPermaLink="false">9608@https://hcmc.uvic.ca/blogs/</guid>
						<description>&lt;p&gt;JS-R is able to work with the current spreadsheet for the May presentation, but would like some more elaborate output for the next phase. These are the details we&#039;ve discussed:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;The initial db XML output should go through a transformation which basically takes all the information encoded in relations and makes it explicit on individual records. So, for instance, all owners should have explicit ethnicities realized on the owner record; each title should have complete copies of all its owners; and so on. This will make it much easier, and faster, to generate other views of the data.&lt;/li&gt;

&lt;li&gt;This output also needs to include some new boolean flags on titles:
&lt;ul&gt;
  &lt;li&gt;Sale to self (as currently created during the spreadsheet transaction transform).&lt;/li&gt;
  &lt;li&gt;Possible family sale (ditto).&lt;/li&gt;
  &lt;li&gt;liquidated property: properties sold by a Japanese owner to custodians or the state between beginning 1943 and end 1946. The custodian category would be set as an institution type by JS-R.&lt;/li&gt;
  &lt;li&gt;Control for liquidated property: any title which is not flagged as above, nor is it a family transaction or a sale to self, which takes place from 1943-01-01 through 1946-12-12.&lt;/li&gt;
&lt;/ul&gt;

&lt;/li&gt;

  &lt;li&gt;We need a view which constitutes a chain of transactions, constructed by preceding title. The way to construct the chains is:
&lt;ul&gt;

  &lt;li&gt;Order titles by date ascending.&lt;/li&gt;

  &lt;li&gt;Start from the first.&lt;/li&gt;

  &lt;li&gt;Look for another title which as this one as its preceding title. Add that to the chain, and continue.&lt;/li&gt;

  &lt;li&gt;Every time you add a title to a chain, flag the title as having been used.&lt;/li&gt;

  &lt;li&gt;If you find two titles with the current title as preceding, then you have a fork. Annotate the end of the current chain to point to those two titles, and start new chains from each of those titles. Annotate the first link in the new chains to point back to the fork title.&lt;/li&gt;

  &lt;li&gt;If your current chain hits a title which has already been used, then you have a merge. In that case, split the previously-constructed chain into two, and annotate the break points, and stop your current chain, annotating the end of it, so that you end up with two chains which end, pointing to another single chain which continues.&lt;/li&gt;&lt;/ul&gt;

This view will have to be realized in XML (although it&#039;s not clear whether XSLT can be used to create it -- probably) because it&#039;s not a 2-dimensional matrix. Since it&#039;s in XML, each title can bring along a full copy of all its data, including flags such as LIQ and LIQ_CONTROL, and we can then generate matrix views of the chains which are flattened in various ways. Titles in this view have an inherent generation number, which can be output to spreadsheets.

&lt;/li&gt;

  &lt;li&gt;In the current spreadsheet output, the LIQ and LIQ_CONTROL flags would be output, along with a generation number for any title which has one of these flags, constituting the count of transactions subsequent to the custodian transaction (in the case of LIQ titles), or the first transaction following 1943-01-01 (in the case of LIQ_CONTROL properties).  &lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;https://hcmc.uvic.ca/blogs/index.php/long_discussion_next_stage?blog=46&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>JS-R is able to work with the current spreadsheet for the May presentation, but would like some more elaborate output for the next phase. These are the details we've discussed:</p>

<ul>
  <li>The initial db XML output should go through a transformation which basically takes all the information encoded in relations and makes it explicit on individual records. So, for instance, all owners should have explicit ethnicities realized on the owner record; each title should have complete copies of all its owners; and so on. This will make it much easier, and faster, to generate other views of the data.</li>

<li>This output also needs to include some new boolean flags on titles:
<ul>
  <li>Sale to self (as currently created during the spreadsheet transaction transform).</li>
  <li>Possible family sale (ditto).</li>
  <li>liquidated property: properties sold by a Japanese owner to custodians or the state between beginning 1943 and end 1946. The custodian category would be set as an institution type by JS-R.</li>
  <li>Control for liquidated property: any title which is not flagged as above, nor is it a family transaction or a sale to self, which takes place from 1943-01-01 through 1946-12-12.</li>
</ul>

</li>

  <li>We need a view which constitutes a chain of transactions, constructed by preceding title. The way to construct the chains is:
<ul>

  <li>Order titles by date ascending.</li>

  <li>Start from the first.</li>

  <li>Look for another title which as this one as its preceding title. Add that to the chain, and continue.</li>

  <li>Every time you add a title to a chain, flag the title as having been used.</li>

  <li>If you find two titles with the current title as preceding, then you have a fork. Annotate the end of the current chain to point to those two titles, and start new chains from each of those titles. Annotate the first link in the new chains to point back to the fork title.</li>

  <li>If your current chain hits a title which has already been used, then you have a merge. In that case, split the previously-constructed chain into two, and annotate the break points, and stop your current chain, annotating the end of it, so that you end up with two chains which end, pointing to another single chain which continues.</li></ul>

This view will have to be realized in XML (although it's not clear whether XSLT can be used to create it -- probably) because it's not a 2-dimensional matrix. Since it's in XML, each title can bring along a full copy of all its data, including flags such as LIQ and LIQ_CONTROL, and we can then generate matrix views of the chains which are flattened in various ways. Titles in this view have an inherent generation number, which can be output to spreadsheets.

</li>

  <li>In the current spreadsheet output, the LIQ and LIQ_CONTROL flags would be output, along with a generation number for any title which has one of these flags, constituting the count of transactions subsequent to the custodian transaction (in the case of LIQ titles), or the first transaction following 1943-01-01 (in the case of LIQ_CONTROL properties).  </li>
</ul>

<div class="item_footer"><p><small><a href="https://hcmc.uvic.ca/blogs/index.php/long_discussion_next_stage?blog=46">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>https://hcmc.uvic.ca/blogs/index.php/long_discussion_next_stage?blog=46#comments</comments>
			<wfw:commentRss>https://hcmc.uvic.ca/blogs/index.php?blog=46&#38;tempskin=_rss2&#38;disp=comments&#38;p=9608</wfw:commentRss>
		</item>
				<item>
			<title>Added a new field</title>
			<link>https://hcmc.uvic.ca/blogs/index.php/added_a_new_field?blog=46</link>
			<pubDate>Mon, 14 May 2012 15:25:07 +0000</pubDate>			<dc:creator>Martin</dc:creator>
			<category domain="main">Activity log</category>			<guid isPermaLink="false">9600@https://hcmc.uvic.ca/blogs/</guid>
						<description>&lt;p&gt;At JS-R&#039;s request, added a new &quot;Description&quot; field to the Ethnicities table.&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;https://hcmc.uvic.ca/blogs/index.php/added_a_new_field?blog=46&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>At JS-R's request, added a new "Description" field to the Ethnicities table.</p><div class="item_footer"><p><small><a href="https://hcmc.uvic.ca/blogs/index.php/added_a_new_field?blog=46">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>https://hcmc.uvic.ca/blogs/index.php/added_a_new_field?blog=46#comments</comments>
			<wfw:commentRss>https://hcmc.uvic.ca/blogs/index.php?blog=46&#38;tempskin=_rss2&#38;disp=comments&#38;p=9600</wfw:commentRss>
		</item>
				<item>
			<title>Generated output spreadsheet</title>
			<link>https://hcmc.uvic.ca/blogs/index.php/generated_output_spreadsheet?blog=46</link>
			<pubDate>Fri, 11 May 2012 21:20:45 +0000</pubDate>			<dc:creator>Martin</dc:creator>
			<category domain="main">Activity log</category>
<category domain="alt">Tasks</category>			<guid isPermaLink="false">9596@https://hcmc.uvic.ca/blogs/</guid>
						<description>&lt;p&gt;Generated output for JS-R, who&#039;s finished the current batch of edits. Also He&#039;s asked for a large Notes field on the Owners table or the Ethnicity table (not clear yet which).&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;https://hcmc.uvic.ca/blogs/index.php/generated_output_spreadsheet?blog=46&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>Generated output for JS-R, who's finished the current batch of edits. Also He's asked for a large Notes field on the Owners table or the Ethnicity table (not clear yet which).</p><div class="item_footer"><p><small><a href="https://hcmc.uvic.ca/blogs/index.php/generated_output_spreadsheet?blog=46">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>https://hcmc.uvic.ca/blogs/index.php/generated_output_spreadsheet?blog=46#comments</comments>
			<wfw:commentRss>https://hcmc.uvic.ca/blogs/index.php?blog=46&#38;tempskin=_rss2&#38;disp=comments&#38;p=9596</wfw:commentRss>
		</item>
			</channel>
</rss>
