org.obolibrary.obo2owl
Class OwlStringTools
java.lang.Object
org.obolibrary.obo2owl.OwlStringTools
public class OwlStringTools
- extends Object
Tools to read and write a set of owl axioms to/from a string.
Used to preserve untranslatable axioms in an owl2obo conversion.
Method Summary |
static String |
translate(Set<org.semanticweb.owlapi.model.OWLAxiom> axioms)
Create a string for the given set of axioms. |
static Set<org.semanticweb.owlapi.model.OWLAxiom> |
translate(String axioms)
Parse the axioms from the given axiom string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OwlStringTools
public OwlStringTools()
translate
public static String translate(Set<org.semanticweb.owlapi.model.OWLAxiom> axioms)
throws OwlStringTools.OwlStringException
- Create a string for the given set of axioms. Return null for empty sets
or if the set is null.
- Parameters:
axioms
-
- Returns:
- string or null
- Throws:
OwlStringTools.OwlStringException
- See Also:
translate(String)
translate
public static Set<org.semanticweb.owlapi.model.OWLAxiom> translate(String axioms)
throws OwlStringTools.OwlStringException
- Parse the axioms from the given axiom string. Returns null for empty and null strings.
- Parameters:
axioms
-
- Returns:
- set of axioms or null
- Throws:
OwlStringTools.OwlStringException
- See Also:
translate(Set)
Copyright © 2010-2014. All Rights Reserved.