📄 owlreasoner.java
字号:
// The MIT License
//
// Copyright (c) 2004 Evren Sirin
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
/*
* Created on Dec 29, 2003
*
*/
package org.mindswap.owl;
import java.net.URI;
import java.util.List;
import org.mindswap.owls.process.ValueRewriter;
/**
* A simple interface for an OWL reasoner. It just provides functions related to the classification
* tree. Applications should extend this interface according to their requirements.
*
* @author Evren Sirin
*
*/
public interface OWLReasoner extends ValueRewriter {
/**
* Load the ontology from the given URI.
*
* @param uri
* @throws Exception
*/
public void load(URI uri) throws Exception ;
/**
* Check if a class with the given URI exists in the loaded ontologies
*
* @param uri
* @return
*/
public boolean isClass(URI uri);
/**
* Check if one class is subclass of another
*
* @param uri1
* @param uri2
* @return
*/
public boolean isSubclassOf(URI uri1, URI uri2);
/**
* Check if two classes are disjoint. Returns true if there can possibly be no
* individual that may belong ot both classes.
*
* @param uri1
* @param uri2
* @return
*/
public boolean isDisjoint(URI uri1, URI uri2);
/**
* Get the subclasses of the given class
*
* @param uri
* @return
*/
public List getSubClasses(URI uri);
/**
* Get the superclasses of the given class
*
* @param uri
* @return
*/
public List getSuperClasses(URI uri);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -