<?xml version="1.0" encoding="iso-8859-1"?>
<module name="Ft.Rdf.Drivers.MySQL" file="/work/a/ports/textproc/py-4suite/work/4Suite-1.0b1/build/lib.freebsd-8.0-RELEASE-p2-i386-2.4/Ft/Rdf/Drivers/MySQL.py">
  <modification-date>2005-04-11 03:17:51</modification-date>
  <abstract>A persistent RDF model driver using MySQL with InnoDB</abstract>
  <description>Copyright 2005 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/</description>
  <classes>
    <class name="DbAdapter" public="yes">
      <bases>
        <base documented="yes" class="SqlAdapter" module="Ft.Rdf.Drivers.SQL"/>
      </bases>
      <abstract/>
      <description/>
      <method-resolution-order>
        <base name="DbAdapter" module="Ft.Rdf.Drivers.MySQL"/>
        <base name="SqlAdapter" module="Ft.Rdf.Drivers.SQL"/>
      </method-resolution-order>
      <methods documented="yes" class="DbAdapter" module="Ft.Rdf.Drivers.MySQL" inherited="no">
        <method public="no" name="__init__" id="DbAdapter-__init__">
          <abstract/>
          <description/>
          <arguments>
            <arg name="self"/>
            <arg name="connString"/>
            <arg default="'default'" name="modelName"/>
            <arg default="None" name="db"/>
          </arguments>
          <overrides name="SqlAdapter" module="Ft.Rdf.Drivers.SQL"/>
        </method>
        <method public="yes" name="begin" id="DbAdapter-begin">
          <abstract/>
          <description/>
          <arguments>
            <arg name="self"/>
          </arguments>
          <overrides name="SqlAdapter" module="Ft.Rdf.Drivers.SQL"/>
        </method>
        <method public="yes" name="commit" id="DbAdapter-commit">
          <abstract/>
          <description/>
          <arguments>
            <arg name="self"/>
          </arguments>
          <overrides name="SqlAdapter" module="Ft.Rdf.Drivers.SQL"/>
        </method>
        <method public="yes" name="rollback" id="DbAdapter-rollback">
          <abstract/>
          <description/>
          <arguments>
            <arg name="self"/>
          </arguments>
          <overrides name="SqlAdapter" module="Ft.Rdf.Drivers.SQL"/>
        </method>
      </methods>
      <methods documented="yes" class="SqlAdapter" module="Ft.Rdf.Drivers.SQL" inherited="yes">
        <member-reference name="add" public="yes"/>
        <member-reference name="bind" public="yes"/>
        <member-reference name="complete" public="yes"/>
        <member-reference name="contains" public="yes"/>
        <member-reference name="has_key" public="yes"/>
        <member-reference name="isResource" public="yes"/>
        <member-reference name="keys" public="yes"/>
        <member-reference name="lookup" public="yes"/>
        <member-reference name="objectsFromSubAndPreds" public="yes"/>
        <member-reference name="objectsFromSubsAndPred" public="yes"/>
        <member-reference name="objectsFromSubsAndPredNonDistinct" public="yes"/>
        <member-reference name="remove" public="yes"/>
        <member-reference name="removePattern" public="yes"/>
        <member-reference name="resources" public="yes"/>
        <member-reference name="size" public="yes"/>
        <member-reference name="subjectsFromPredAndObjs" public="yes"/>
        <member-reference name="subjectsFromPredsAndObj" public="yes"/>
        <member-reference name="unbind" public="yes"/>
      </methods>
    </class>
    <class name="_Cmd" public="no">
      <bases>
      </bases>
      <abstract># Statements for use in the SqlAdapter</abstract>
      <description/>
      <method-resolution-order>
        <base name="_Cmd" module="Ft.Rdf.Drivers.MySQL"/>
      </method-resolution-order>
      <methods documented="yes" class="_Cmd" module="Ft.Rdf.Drivers.MySQL" inherited="no">
        <method public="no" name="__init__" id="_Cmd-__init__">
          <abstract/>
          <description/>
          <arguments>
            <arg name="self"/>
            <arg name="command"/>
          </arguments>
        </method>
        <method public="yes" name="execute" id="_Cmd-execute">
          <abstract/>
          <description/>
          <arguments>
            <arg name="self"/>
            <arg name="db"/>
            <var-keywords name="args"/>
          </arguments>
        </method>
        <method public="yes" name="query" id="_Cmd-query">
          <abstract/>
          <description/>
          <arguments>
            <arg name="self"/>
            <arg name="db"/>
            <var-keywords name="args"/>
          </arguments>
        </method>
      </methods>
    </class>
  </classes>
  <functions>
    <function public="yes" name="BuildNonDistinctObjectsFromSubsAndPred" id="BuildNonDistinctObjectsFromSubsAndPred">
      <abstract/>
      <description/>
      <arguments>
        <arg name="subjects"/>
        <arg name="predicate"/>
        <arg name="modelName"/>
        <arg default="None" name="scope"/>
      </arguments>
    </function>
    <function public="yes" name="BuildObjectsFromSubAndPreds" id="BuildObjectsFromSubAndPreds">
      <abstract/>
      <description/>
      <arguments>
        <arg name="subject"/>
        <arg name="predicates"/>
        <arg name="modelName"/>
        <arg default="None" name="scope"/>
      </arguments>
    </function>
    <function public="yes" name="BuildObjectsFromSubsAndPred" id="BuildObjectsFromSubsAndPred">
      <abstract/>
      <description/>
      <arguments>
        <arg name="subjects"/>
        <arg name="predicate"/>
        <arg name="modelName"/>
        <arg default="None" name="scope"/>
      </arguments>
    </function>
    <function public="yes" name="BuildSubjectsFromPredAndObjs" id="BuildSubjectsFromPredAndObjs">
      <abstract/>
      <description/>
      <arguments>
        <arg name="predicate"/>
        <arg name="objects"/>
        <arg name="modelName"/>
        <arg default="None" name="scope"/>
      </arguments>
    </function>
    <function public="yes" name="BuildSubjectsFromPredsAndObj" id="BuildSubjectsFromPredsAndObj">
      <abstract/>
      <description/>
      <arguments>
        <arg name="predicates"/>
        <arg name="object"/>
        <arg name="modelName"/>
        <arg default="None" name="scope"/>
      </arguments>
    </function>
    <function public="yes" name="CheckVersion" id="CheckVersion">
      <abstract/>
      <description/>
      <arguments>
        <arg name="db"/>
        <arg name="connString"/>
        <arg name="modelName"/>
      </arguments>
    </function>
    <function public="yes" name="CreateDb" id="CreateDb">
      <abstract/>
      <description/>
      <arguments>
        <arg name="connString"/>
        <arg default="'default'" name="modelName"/>
      </arguments>
    </function>
    <function public="yes" name="DestroyDb" id="DestroyDb">
      <abstract/>
      <description/>
      <arguments>
        <arg name="connString"/>
        <arg default="'default'" name="modelName"/>
      </arguments>
    </function>
    <function public="yes" name="ExistsDb" id="ExistsDb">
      <abstract/>
      <description/>
      <arguments>
        <arg name="connString"/>
        <arg default="'default'" name="modelName"/>
      </arguments>
    </function>
    <function public="yes" name="GetDb" id="GetDb">
      <abstract/>
      <description/>
      <arguments>
        <arg name="dbName"/>
        <arg default="'default'" name="modelName"/>
      </arguments>
    </function>
    <function public="yes" name="InitializeModule" id="InitializeModule">
      <abstract>Post-import hook to initialize module's runtime variables that are not
required at import time, but will be needed before the module-level
functions are called.</abstract>
      <description/>
      <arguments>
      </arguments>
    </function>
    <function public="yes" name="SplitDbConnectString" id="SplitDbConnectString">
      <abstract/>
      <description/>
      <arguments>
        <arg name="connString"/>
      </arguments>
    </function>
  </functions>
  <fields>
    <field public="yes" name="CREATE_BOUND_TABLE" id="CREATE_BOUND_TABLE">
      <value>'\nCREATE TABLE ftrdf_%s_bound (\n    name      text,\n    object    text,\n    domain text) TYPE=InnoDB\n'</value>
    </field>
    <field public="yes" name="CREATE_STATEMENT_TABLE" id="CREATE_STATEMENT_TABLE">
      <value>'\nCREATE TABLE ftrdf_%s_statement (\n    subject  ...  INDEX %s_stmt_d_index (domain(10))) TYPE=InnoDB'</value>
    </field>
    <field public="yes" name="INDICES" id="INDICES">
      <value>{'source': ('ftrdf_%s_statement', ['domain']), 'spo': ('ftrdf_%s_statement', ['subject', 'predicate', 'object'])}</value>
    </field>
    <field public="yes" name="OBJECT_TYPE_LITERAL" id="OBJECT_TYPE_LITERAL">
      <value>'L'</value>
    </field>
    <field public="yes" name="OBJECT_TYPE_RESOURCE" id="OBJECT_TYPE_RESOURCE">
      <value>'R'</value>
    </field>
    <field public="yes" name="VERSION" id="VERSION">
      <value>'0.1'</value>
    </field>
    <field public="yes" name="bits" id="bits">
      <value>31</value>
    </field>
    <field public="yes" name="complete" id="complete">
      <value>&quot;SELECT subject, predicate, object, statementUri,...(statementUri)s' AND domain%(scopeOp)s'%(scope)s'&quot;</value>
    </field>
    <field public="yes" name="contains" id="contains">
      <value>&quot;SELECT COUNT(subject) FROM ftrdf_%(modelName)s_s...(statementUri)s' AND domain%(scopeOp)s'%(scope)s'&quot;</value>
    </field>
    <field public="yes" name="key" id="key">
      <value>(True, True, True, True, 1)</value>
    </field>
    <field public="yes" name="parts" id="parts">
      <value>[&quot;subject%(subjectOp)s'%(subject)s'&quot;, &quot;predicate%(predicateOp)s'%(predicate)s'&quot;, &quot;object%(objectOp)s'%(object)s'&quot;, &quot;statementUri%(statementUriOp)s'%(statementUri)s'&quot;, &quot;domain%(scopeOp)s'%(scope)s'&quot;]</value>
    </field>
    <field public="yes" name="remove" id="remove">
      <value>&quot;DELETE FROM ftrdf_%(modelName)s_statement  WHERE...(statementUri)s' AND domain%(scopeOp)s'%(scope)s'&quot;</value>
    </field>
    <field public="yes" name="where" id="where">
      <value>&quot;subject%(subjectOp)s'%(subject)s' AND predicate%...(statementUri)s' AND domain%(scopeOp)s'%(scope)s'&quot;</value>
    </field>
  </fields>
</module>
