Algorithm Examples

Algorithm is a parent class of all algorithms, including machine learning and descriptor calculations.

  • Algorithm URI is defined by dc:identifier
 <dc:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
            >http://myservice/algorithm/{algorithmid}</dc:identifier>
  • Algorithm name is defined by dc:title
 <dc:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">J48</dc:title>
  • Arbitrary number of parameters can be defined by ot:parameters. Parameter values are defined by ot:paramValue, parameter name (if necessary could be defined by dc:title, as in the example).
        <ot:parameters>
          <ot:Parameter>
              <ot:paramValue rdf:datatype="http://www.w3.org/2001/XMLSchema#string">10</ot:paramValue>
              <ot:paramScope rdf:datatype="http://www.w3.org/2001/XMLSchema#string">optional</ot:paramScope>
              <dc:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Max number of instances in a node</dc:date>
          </ot:Parameter>
        </ot:parameters>
  •  Algorithm resource representation for a machine learning algorithm.
  <ot:Algorithm rdf:about="http://opentox.informatik.tu-muenchen.de:8080/OpenTox-dev/algorithm/J48">
    <dc:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI">http://opentox.informatik.tu-muenchen.de:8080/OpenTox-dev/algorithm/J48</dc:identifier>
    <dc:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">J48</dc:title>
    <dc:creator>fabian.buchwald@in.tum.de</dc:creator>
    <dc:contributor>tobias.girschick@in.tum.de</dc:contributor>
    <dc:contributor>joerg.wicker@in.tum.de</dc:contributor>
    <dc:description rdf:datatype="http://www.w3.org/2001/XMLSchema#string">OpenTox REST interface to the WEKA J48 decision tree learning algorithm</dc:description>
    <ot:isA>http://www.opentox.org/algorithms.owl#ClassificationEagerSingleTarget</ot:isA>
    <ot:parameters>
      <ot:Parameter>
        <dc:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">unpruned</dc:title>
        <dc:description rdf:datatype="http://www.w3.org/2001/XMLSchema#string"> Whether pruning is performed </dc:description>
        <ot:paramScope rdf:datatype="http://www.w3.org/2001/XMLSchema#string">optional</ot:paramScope>
        <ot:paramValue rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</ot:paramValue>
      </ot:Parameter>
    </ot:parameters>
    <ot:parameters>
      <ot:Parameter>
        <dc:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">confidenceFactor</dc:title>
        <dc:description rdf:datatype="http://www.w3.org/2001/XMLSchema#string">the confidence factor used for pruning (smaller values incur more pruning) </dc:description>
        <ot:paramScope rdf:datatype="http://www.w3.org/2001/XMLSchema#string">optional</ot:paramScope>
        <ot:paramValue rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.25</ot:paramValue>
      </ot:Parameter>
    </ot:parameters>
    <ot:parameters>
      <ot:Parameter>
        <dc:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">minNumObj</dc:title>
        <dc:description rdf:datatype="http://www.w3.org/2001/XMLSchema#string"> minimum number of instances per leaf </dc:description>
        <ot:paramScope rdf:datatype="http://www.w3.org/2001/XMLSchema#string">optional</ot:paramScope>
        <ot:paramValue rdf:datatype="http://www.w3.org/2001/XMLSchema#int">2</ot:paramValue>
      </ot:Parameter>
    </ot:parameters>
    <ot:parameters>
    ...
    </ot:parameters>
    <dc:date rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">Wed Jun 23 13:54:40 CEST 2010</dc:date>

</ot:Algorithm>

 
  <ot:Algorithm rdf:ID="XLogPCalculation">
        <dc:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
            >http://myservice/algorithm/{algorithmid}</dc:identifier>
        <dc:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">XLogP</dc:title>
        <owl:sameAs rdf:resource="http://www.blueobelisk.org/ontologies/chemoinformatics-algorithms/#xlogP"/>
    </ot:Algorithm>