owltools.io
Class TableToAxiomConverter
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
config
public TableToAxiomConverter.Config config
graph
public OWLGraphWrapper graph
TableToAxiomConverter
public TableToAxiomConverter(OWLGraphWrapper graph)
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.