org.semanticweb.elk.reasoner.taxonomy.model.InstanceTaxonomy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elk-reasoner Show documentation
Show all versions of elk-reasoner Show documentation
ELK consequence-based reasoning engine
/*
* #%L
* ELK Reasoner
*
* $Id$
* $HeadURL$
* %%
* Copyright (C) 2011 - 2012 Department of Computer Science, University of Oxford
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
package org.semanticweb.elk.reasoner.taxonomy.model;
import java.util.Set;
import org.semanticweb.elk.owl.interfaces.ElkObject;
/**
* Extended {@link Taxonomy} that also provides instances for each of its
* members.
*
* @author Markus Kroetzsch
* @author "Yevgeny Kazakov"
*
* @param
* the type of objects in the nodes of this taxonomy
* @param
* the type of instances of nodes of this taxonomy
*/
public interface InstanceTaxonomy
extends Taxonomy {
/**
* @param elkObject
* {@link ElkObject} for which the {@link TypeNode} to be
* computed
* @return the {@link TypeNode} containing the given {@link ElkObject} as a
* member, or {@code null} if the input does not occur in the
* taxonomy
*/
public TypeNode getTypeNode(T elkObject);
/**
* Obtain an unmodifiable Set of all type nodes in this taxonomy.
*
* @return an unmodifiable Set
*/
public Set extends TypeNode> getTypeNodes();
/**
* @param elkObject
* {@link ElkObject} for which the {@link InstanceNode} to be
* computed
* @return the {@link InstanceNode} containing the given {@link ElkObject}
* as a member, or {@code null} if the input does not occur in the
* taxonomy
*/
public InstanceNode getInstanceNode(I elkObject);
/**
* Obtain an unmodifiable Set of all instance nodes in this taxonomy.
*
* @return an unmodifiable Set
*/
public Set extends InstanceNode> getInstanceNodes();
@Override
public TypeNode getTopNode();
@Override
public TypeNode getBottomNode();
}