Package openllet.core.taxonomy
Class AbstractDefinitionOrder
- java.lang.Object
-
- openllet.core.taxonomy.AbstractDefinitionOrder
-
- All Implemented Interfaces:
java.lang.Iterable<openllet.aterm.ATermAppl>,DefinitionOrder
- Direct Known Subclasses:
JGraphBasedDefinitionOrder,TaxonomyBasedDefinitionOrder
public abstract class AbstractDefinitionOrder extends java.lang.Object implements DefinitionOrder
- Author:
- Evren Sirin
-
-
Constructor Summary
Constructors Constructor Description AbstractDefinitionOrder(KnowledgeBase kb, java.util.Comparator<openllet.aterm.ATerm> comparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<openllet.aterm.ATermAppl>getList()booleanisCyclic(openllet.aterm.ATermAppl concept)Returns if a concept is used in cyclic definitions.java.util.Iterator<openllet.aterm.ATermAppl>iterator()Returns an iterator over all the classes in the ontology sorted based on the definition _order.
-
-
-
Constructor Detail
-
AbstractDefinitionOrder
public AbstractDefinitionOrder(KnowledgeBase kb, java.util.Comparator<openllet.aterm.ATerm> comparator)
-
-
Method Detail
-
isCyclic
public boolean isCyclic(openllet.aterm.ATermAppl concept)
Returns if a concept is used in cyclic definitions.- Specified by:
isCyclicin interfaceDefinitionOrder- Parameters:
concept- concept to check- Returns:
trueif concept is used in a cyclic definition
-
iterator
public java.util.Iterator<openllet.aterm.ATermAppl> iterator()
Returns an iterator over all the classes in the ontology sorted based on the definition _order.- Specified by:
iteratorin interfaceDefinitionOrder- Specified by:
iteratorin interfacejava.lang.Iterable<openllet.aterm.ATermAppl>
-
getList
public java.util.List<openllet.aterm.ATermAppl> getList()
- Specified by:
getListin interfaceDefinitionOrder
-
-