owltools.io
Class TableToAxiomConverter

java.lang.Object
  extended by owltools.io.TableToAxiomConverter

public class TableToAxiomConverter
extends Object

reads in a table (e.g. tab-delimited table) converting each row to an OWL Axiom. currently only reads first two columns (sub and ob)

Author:
cjm

Nested Class Summary
 class TableToAxiomConverter.Config
          If AxiomType is ClassAssertion, then axioms will be of form ClassAssertion(sub obj) If AxiomType is SubClassOf, then axioms will be of form SubClassOf(sub obj) if a property P is specified, then obj is transformed to a class expression "P some obj'" where obj' is the original value for obj
 
Field Summary
 TableToAxiomConverter.Config config
           
 OWLGraphWrapper graph
           
 
Constructor Summary
TableToAxiomConverter(OWLGraphWrapper graph)
           
 
Method Summary
 void addRow(org.semanticweb.owlapi.model.OWLOntology ont, String[] row)
           
 void addRow(String[] row)
           
 void buildClassMap(OWLGraphWrapper g)
           
 void parse(String fn)
           
 Set<org.semanticweb.owlapi.model.OWLAxiom> rowToAxioms(String[] row)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

config

public TableToAxiomConverter.Config config

graph

public OWLGraphWrapper graph
Constructor Detail

TableToAxiomConverter

public TableToAxiomConverter(OWLGraphWrapper graph)
Method Detail

parse

public void parse(String fn)
           throws IOException
Throws:
IOException

rowToAxioms

public Set<org.semanticweb.owlapi.model.OWLAxiom> rowToAxioms(String[] row)

addRow

public void addRow(String[] row)

addRow

public void addRow(org.semanticweb.owlapi.model.OWLOntology ont,
                   String[] row)

buildClassMap

public void buildClassMap(OWLGraphWrapper g)


Copyright © 2010-2012. All Rights Reserved.