Hozo Core (Hozo Ontology API and Reasoner) Document

Draft Version 2009/03/28

* The lateset information is available at the URL  http://www.hozo.jp

 

This document was compiled as part of the below projects. Publication, reproduction or duplication of this document without the permission of the University of Tokyo Hospital, Osaka University, and Enegate Co, ltd. are therefore prohibited.

 

-FY2006 Special Coordination Funds for Promoting Science and Technology (promotes flexible solutions to critical policy issues)

"Research on the structure of medical knowledge base databases for the analysis of clinical medical data"

(Representative: Kazuhiko OHE, Faculty of Medicine, Tokyo University, Contributors: Riichiro MIZOGUCHI, Osaka University, et al.)

-FY2007 Commission for Promoting Development of Medical Information Systems

"Research and development of medical knowledge base databases for medical information systems"

(Representative: Kazuhiko OHE, Faculty of Medicine, Tokyo University, Contributors: Riichiro MIZOGUCHI, Osaka University, et al.)

 

[Copyright Holders]

Ohe Research Laboratory, Department of Planning Information and Management, University of Tokyo Hospital

The Institute of Scientific and Industrial Research, Osaka University, Mizoguchi Laboratory and Enegate Co, ltd.

 

Copyright (c) 2008, Mizoguchi Lab. and ENEGATE Co., Ltd. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

Neither the name of Mizoguchi Lab. nor ENEGATE Co., Ltd. may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY MIZOGUCHI LAB. AND ENEGATE CO., LTD. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MIZOGUCHI LAB. OR ENEGATE CO., LTD. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

 

 

 

Packages

jp.hozo.core

Hozo Core package

jp.hozo.core.literal

Includes the standard class used by the Hozo Core package.

jp.hozo.core.util

Includes the class file used by Hozo Core package.

jp.hozo.corex

API using Hozo (Package using Hozo Core)

jp.hozo.corex.util

Includes the class file using the API using Hozo (Package using Hozo Core).

jp.hozo.reasoner

Includes the class file used by Hobo乫s inference mechanism.



All Classes


AnyConcept

AttributeOfRelation

Axiom

AxiomBody

BasicConcept

BasicConceptInstance

BooleanValueConcept

Concept

ConceptInstance

ConceptInstanceModel

ConceptModel

DateValueConcept

DifferentRelationConcept

EqualRelationConcept

ExportHozoToOWL

FileUtility

FloatValueConcept

Glossary

GraphicManager

GraphicObject

HozoInternalException

HozoModelObject

HozoObject

HozoOntologyObject

HZBasicConcept

HZBasicConceptInstance

HZFileUtility

HZGraphicManager

HZGraphicObject

HZModel

HZModelUtility

HZModelUtilitySax

HZOntology

HZOntologyUtility

HZOntologyUtilitySax

HZRConceptRelation

HZRConceptRelationInstance

HZReasoner

HZReasonerException

HZReasonerFactory

HZRelationConcept

HZRoleConcept

HZRoleConceptInstance

HZSearchReasoner

HZSlot

HZSlotInstance

HZTransitionReasoner

HZValidationReasoner

HZWholeConcept

IDManager

InstanceOfRelation

IntegerValueConcept

InvalidValueException

IsaRelation

IsaTreeNodeModel

LargerThanRelationConcept

Model

ModelFactory

ModelUtility

ModelUtilitySax

NotEqualRelationConcept

NumberValueConcept

Ontology

OntologyFactory

OntologyFileInfo

OntologyUtility

OntologyUtilitySax

P_Operator

PartOfRelation

RConceptRelation

RConceptRelationInstance

ReasonerReport

ReasonerResult

Relation

RelationConcept

RelationInstance

RoleConcept

RoleConceptInstance

RoleHolder

RoleHolderInstance

RSlotRelation

RSlotRelationInstance

SameAsRelationConcept

SearchCondition

SearchReport

SearchResult

Slot

SlotInstance

SlotInstanceModel

SlotModel

SpeciesConcept

SpeciesConceptInstance

StringValueConcept

Term

TransitionReport

TransitionResult

UriResource

UriValueConcept

ValidationReport

ValidationResult

ValueConcept

WeakIsaRelation

WholeConcept

XMLUtility


 

 

 

AnyConcept


public class AnyConcept

extends BasicConcept

Any Concept Class.

This class defines Any Concept.

 

Constructor Detail

AnyConcept

public AnyConcept(Ontology ont)

Generates Any Concept (Constructor).

Parameters:

ont - Affiliated ontology

 

AttributeOfRelation


public class AttributeOfRelation

extends Relation

Attribute-of Relation Class.

This class defines Attribute-of Relation.

 

Constructor Detail

AttributeOfRelation

public AttributeOfRelation(Ontology ont)

Generates Attribute-of Relation.

Parameters:

ont - Affiliated Ontology

Method Detail

getAttributeSlot

public Slot getAttributeSlot()

Gets Attribute Slot.

Returns:

Returns Attribute Slot.


setAttributeSlot

public void setAttributeSlot(Slot slot)

Sets Attribute Slot.

Parameters:

slot - Sets Attribute Slot.


getAttributeRoleConcept

public RoleConcept getAttributeRoleConcept()

Gets Role Concept.

Returns:

Returns Role Concept.


setAttributeRoleConcept

public void setAttributeRoleConcept(RoleConcept roleConcept)

Sets Role Concept.

Note) Attribute Role Concept's Dependent Slot is not set.

 

Parameters:

roleConcept - Sets partial Role Concept.


getDependentConcept

public Concept getDependentConcept()

Gets Dependent Concept.

Returns:

Returns Dependent Concept.


getDependentConcept

public void getDependentConcept(Concept concept)

Sets Dependent Concept.

Parameters:

concept - Sets Dependent Concept.


getAttributeSlotSize

public java.lang.String getAttributeSlotSize()

Returns the number of Attribute Slots.

Returns:

Returns the number of Attribute Slots.


setAttributeSlotSize

public void setAttributeSlotSize(java.lang.String size)

Sets the number of Attribute Slots.

Parameters:

size - Sets the number of Attribute Slots.

 

Axiom


public class Axiom

extends java.lang.Object

Axiom Class.

This class defines Axiom.

Note) The implementation is temporary. When a method to describe the axiom is determined, this will be implemented.

 

Constructor Detail

Axiom

public Axiom()

Generates Axiom. (Constructor)

Method Detail

getAxiomBodyList

public java.util.List getAxiomBodyList()

Gets all Axiom contents.

Returns:

Returns all Axiom contents.


addAxiomBody

public void addAxiomBody(AxiomBody axiomBody)

Adds the Axiom contents.

Parameters:

axiomBody - Specifies the Axiom contents to add.


removeAxiomBody

public void removeAxiomBody(AxiomBody axiomBody)

Deletes the Axiom contents.

Parameters:

axiomBody - Specify the Axiom contents to delete.


getAxiomName

public java.lang.String getAxiomName()

Gets Axiom Name.

Returns:

Returns Axiom Name.


setAxiomName

public void setAxiomName(java.lang.String name)

Sets Axiom Name.

Parameters:

name - Sets Axiom Name.


getParticipants

public java.lang.String getParticipants()

Gets Participants.

Returns:

Returns Participants


setParticipants

public void setParticipants(java.lang.String part)

Sets Participants.

Parameters:

part - Sets Participants.

 

AxiomBody


public class AxiomBody

extends java.lang.Object

Axiom Body Class.

This class defines the axiom constraints.

Note) The implementation is temporary. When a method to describe Axiom is determined, this will be implemented.

 

Constructor Detail

AxiomBody

public AxiomBody()

Generates Axiom Body. (Constructor)

Method Detail

getBody

public java.lang.String getBody()

Gets the constraints.

Returns:

Returns the constraints.


setBody

public void setBody(java.lang.String body)

Sets the constraints.

Parameters:

body - Sets the constraints.


getCondition

public java.lang.String getCondition()

Gets Condition.

Returns:

Returns Condition.


setCondition

public void setCondition(java.lang.String condition)

Sets Condition.

Parameters:

condition - Sets _condition.


getUserUse

public java.lang.String getUserUse()

Gets User Use.

Returns:

Returns User Use.


setUserUse

public void setUserUse(java.lang.String userUse)

Sets User Use.

Parameters:

userUse - Sets User Use.


getAxiomBodyName

public java.lang.String getAxiomBodyName()

Gets Axiom Body Name.

Returns:

Returns Axiom Body Name.


setAxiomBodyName

public void setAxiomBodyName(java.lang.String bodyName)

Sets Axiom Body Name.

Parameters:

bodyName - Sets Axiom Body Name.

 

BasicConcept


public class BasicConcept

extends Concept

Basic Concept Class.

This class defines Basic Concept.

 

Constructor Detail

BasicConcept

public BasicConcept(Ontology ont)

Generates Basic Concept. (Constructor)

Parameters:

ont - Affiliated Ontology

 

BasicConceptInstance


public class BasicConceptInstance

extends ConceptInstance

Basic Concept Instance Class.

This class defines Basic Concept Instance.

 

Constructor Detail

BasicConceptInstance

public BasicConceptInstance(Model model)

Generates Basic Concept Instance. (Constructor)

Parameters:

model - Specifies Model.

 

BooleanValueConcept


public class BooleanValueConcept

extends ValueConcept

Boolean Value Concept Class.

This class defines Boolean Value Concept.

 

Constructor Detail

BooleanValueConcept

public BooleanValueConcept(Ontology ont)

Generates Boolean Value Concept. (Constructor)

Parameters:

ont - Affiliated Ontology


BooleanValueConcept

public BooleanValueConcept(Ontology ont,

                           java.lang.String value)

Generates Boolean Value Concept. (Constructor)

Parameters:

ont - Affiliated Ontology

value - Specifies Value.

Method Detail

setValue

public void setValue(java.lang.String val)

              throws InvalidValueException

Sets Value.

Overrides:

setValue in class ValueConcept

Parameters:

val - Sets Value.

Throws:

InvalidValueException


isValid

public boolean isValid()

Specifies the boolean if Value is valid

Overrides:

isValid in class ValueConcept

Returns:

Returns the boolean if Value is valid.


isValid

public static boolean isValid(java.lang.String value)

Returns the boolean if Value is valid.

Parameters:

value - Specifies Value.

Returns:

Returns the boolean if Value is valid.

 

 

Concept


public class Concept

extends HozoOntologyObject

Concept Class.

Concept Class.

This class defines Concept.

 

Method Detail

setLabel

public void setLabel(java.lang.String label)

Sets Hozo Object Label. (Override)

Overrides:

setLabel in class HozoObject

Parameters:

label - Sets Hozo Object Label.


isRootConcept

public boolean isRootConcept()

Gets the boolean if the concept is Root Concept.

Returns:

Returns "True" if it is Root Concept, otherwise returns "False".


getRootPath

public java.lang.String getRootPath()

Gets the concept path in string.

Returns:

Returns the concept path (string, "/" delimiter) up to the root.


removeSlot

public void removeSlot(Slot slot)

Deletes Slot.

Parameters:

slot - Sets Slot to delete.


addSlot

public void addSlot(Slot slot)

Adds Slot.

Parameters:

slot - Sets Slot to add.


getSlot

public Slot getSlot(int index)

Get Slot.

Parameters:

index - Slot偺僀儞僨僢僋僗傪愝掕丅

Returns:

Returns specified Slot.


getSlotSize

public int getSlotSize()

Gets the number of Slots.

Returns:

Returns the number of Slots.


getSlotList

public java.util.List getSlotList()

Gets Slot List.

Returns:

Returns Slot List.


getPartOfSlotList

public java.util.List getPartOfSlotList()

Gets the part of Slot List.

Returns:

Returns the part of Slot List.


removeRelation

public void removeRelation(Relation relation)

Deletes Relation.

Parameters:

relation - Sets Relation to delete.


addRelation

public void addRelation(Relation relation)

Adds Relation.

Parameters:

relation - Sets Relation to add.


getRelationList

public java.util.List getRelationList()

Gets Relation List.

Returns:

Returns Relation List.


getUpperConcept

public Concept getUpperConcept()

Gets Super Concept.

Returns:

Returns Super Concept.


setUpperConcept

public void setUpperConcept(Concept concept)

Sets Super Concept.

Parameters:

concept - Super Concept.


getType

public int getType()

Gets Concept Type.

Returns:

Returns Concept Type.


setType

protected void setType(int type)

Sets Concept Type.

Parameters:

type - Sets Concept Type.


hasSlots

public boolean hasSlots()

Returns the boolean if Concept has Slot.

Returns:

Returns "True" if Concept has Slot.


hasRelations

public boolean hasRelations()

Returns the boolean if Concept has Relations.

Returns:

Returns "True" if Concept has Relations.


findSlotByLabel

public Slot findSlotByLabel(java.lang.String label)

Search for Slot

Parameters:

label - Slot Label (Format: [Slot name]%[Slot name]%...[Slot name]

Returns:

Returns Slot found.


getLowerConcepts

public java.util.List getLowerConcepts()

Gets Sub-Concept.

Returns:

Returns the inherited Sub-Concept.


getAllLowerConcepts

public java.util.List getAllLowerConcepts()

Gets all Sub-Concepts.

Returns:

Returns all inherited Sub-Concepts.


hasLowerConcept

public boolean hasLowerConcept()

Gets the boolean if Concept has Sub-Concept.

Returns:

Returns "True" if Concept has Sub-Concept.


findSlotsByRoleName

protected java.util.List findSlotsByRoleName(java.lang.String name)

Searches for Slot with Role Name.

Parameters:

name - Specifies Slot Role Name.

Returns:

Returns Slot found.


removeRoleConcept

public void removeRoleConcept(RoleConcept roleConcept)

Deletes Role Concept.

Note) Deleting Role Concept does not delete its dependent Slot.

 

Parameters:

roleConcept - Sets Role Concept to delete.


addRoleConcept

public void addRoleConcept(RoleConcept roleConcept)

Adds Role Concept.

Note) Currently duplication of Role Concept is allowed. Also, adding Role Concept does not add Slot that is dependent on it.

 

Parameters:

roleConcept - Sets Role Concept to add.


getRoleConceptList

public java.util.List getRoleConceptList()

Gets Role Concept List.

Returns:

Returns Role Concept List.


getAncestorConceptList

public java.util.List getAncestorConceptList()

Gets all Super Concepts.

Note) This method was created on 11/04/2005 as a reference.

 

Returns:

Returns Super Concept List.


getAncestorConceptList

public java.util.List getAncestorConceptList(boolean isOrdered)

Gets all Super Concepts.

Parameters:

isOrdered - Specifies if the order is ascending.

Returns:

Returns Super Concept List.


getDescendantConceptList

public java.util.List getDescendantConceptList()

Gets all Sub-Concepts.

Note) This method was created on 05/08/2006 as a reference.

 

Returns:

Returns Sub-Concept list.


isDescendantConcept

public boolean isDescendantConcept(Concept concept)

Gets the boolean if Concept is a descendent of another Concept.

Note) This method was created on 12/15/2005 as a reference.

 

Parameters:

concept - Sets the target Concept.

Returns:

Returns the boolean if Concept is a descendent of the specified Concept.


isAncestorConcept

public boolean isAncestorConcept(Concept concept)

Gets the boolean if Concept is Super-Concept.

Note)  This method was created on 09/12/2008 as a reference.

 

Parameters:

concept - Sets the target Concept.

Returns:

Returns the boolean if the specified Concept is Super Concept.


isExtendedAncestorConcept

public boolean isExtendedAncestorConcept(Concept concept)

Gets the boolean if Concept is a multi-inherited Super Concept.

Note) This method was created on 10/30/2008 as a reference.

 

Parameters:

concept - Sets the target Concept.

Returns:

Returns the boolean if the specified Concept is a multi-inherited Super Concept.


getAllSlotList

public java.util.List getAllSlotList()

Gets all Slots including upper Slots.

Note)  This method was created on 05/15/2006 as a reference.

Including related methods, refactoring is required.

 

Returns:

Returns All Slot List.


getAllExtendedSlotList

public java.util.List getAllExtendedSlotList()

Gets all Slots including upper Slots, including multi-inherited ones.

Note) This method was created on 10/30/2008 as a reference.

 

Returns:

Returns All Slot List.


getSlotList

protected java.util.List getSlotList(Concept concept,

                                     java.util.List slotList)

Gets the Slot List specified in Concept.

Note)  This method was created on 09/13/2008 as a reference.

 

Parameters:

concept - Specifies Concept.

slotList - Specifies Slot List.

Returns:

Returns Slot List specified by Concept.


getAllSlotList

public java.util.List getAllSlotList(boolean isDetail)

Gets All Slots including upper Slots.

Note) This method was created on 09/07/2006 as a reference.

Including related methods, refactoring is required.

 

Parameters:

isDetail - Sets whether to get the Slot Lists of the parent Concept.

Returns:

Returns all Slot Lists.


getEssentialSlotList

public java.util.List getEssentialSlotList(boolean isDetail)

Gets Essential Slot.

Note) This method was created on 09/07/2006 as a reference.

 

Parameters:

isDetail - Sets whether to get related Slots.

Returns:

Returns Essential Slot List.


isSpeciesConcept

public boolean isSpeciesConcept()

Gets the boolean if Concept is set as Class type.

Returns:

Returns the boolean if Concept should be set as a Concept type.


setSpeciesConcept

public void setSpeciesConcept(boolean isSpeciesConcept)

Sets whether Concept should be set as Class.

Parameters:

isSpeciesConcept - Sets the boolean if Concept should be set as a Concept type.


getExtendedUpperConcepts

public java.util.List getExtendedUpperConcepts()

Gets multi-inherited Super Concept list.

Returns:

Returns multi-inherited Super Concept list.


getAllExtendedUpperConcepts

public java.util.List getAllExtendedUpperConcepts()

Gets all multi-inherited Super Concepts.

Returns:

Returns all multi-inherited Super Concepts.


addExtendedUpperConcept

public void addExtendedUpperConcept(Concept concept)

Adds a multi-inherited Super Concept.

Parameters:

concept - Specifies the multi-inherited Super Concept.


removeExtendedUpperConcept

public void removeExtendedUpperConcept(Concept concept)

Deletes the multi-inherited Super Concept.

Parameters:

concept - Specifies the multi-inherited Super Concept.


isExtendedUpperConcept

public boolean isExtendedUpperConcept(Concept concept)

Gets the boolean if Concept is a multi-inherited Super Concept.

Parameters:

concept - Specifies Concept.


hasExtendedUpperConcept

public boolean hasExtendedUpperConcept()

Gets the boolean if it has a multi-inherited Super Concept.

Returns:

Returns the boolean if it has a multi-inherited Super Concept.


getExtendedLowerConcepts

public java.util.List getExtendedLowerConcepts()

Gets the multi-inherited Sub-Concept list.

Returns:

Returns the multi-inherited Sub-Concept list.


getAllExtendedLowerConcepts

public java.util.List getAllExtendedLowerConcepts()

Gets all multi-inherited Sub-Concepts.

Returns:

Returns all multi-inherited Sub-Concepts.


addExtendedLowerConcept

public void addExtendedLowerConcept(Concept concept)

Adds a multi-inherited Sub-Concept.

Parameters:

concept - Specifies the multi-inherited Sub-Concept.


removeExtendedLowerConcept

public void removeExtendedLowerConcept(Concept concept)

Deletes the multi-inherited Sub-Concept.

Parameters:

concept - Specifies the multi-inherited Sub-Concept.


isExtendedLowerConcept

public boolean isExtendedLowerConcept(Concept concept)

Gets the boolean if Concept is a multi-inherited Sub-Concept.

Parameters:

concept - Specifies Concept.


hasExtendedLowerConcept

public boolean hasExtendedLowerConcept()

Gets the boolean if it has a multi-inherited Sub-Concept.

Returns:

Returns the boolen if it has a multi-inherited Sub-Concept.


isUnique

public boolean isUnique()

Gets the boolean if Concept is a sole Concept (Instantiation of the Concept).

Returns:

Returns the boolean if Concept is a sole Concept (Instantiation of the Concept).


setUnique

public void setUnique(boolean isUnique)

Sets the boolen if Concept is the only concept (Instantiation of the Concept).

Parameters:

isUnique - Specifies if Concept is only concept (Instantiation of the Concept).


getTerms

public java.util.List getTerms()

Gets the list in the other name.

Returns:

Returns the list in the other name.


addTerm

public void addTerm(Term term)

Adds the other name.

Parameters:

term - Specifies the other name.


removeTerm

public void removeTerm(Term term)

Deletes the other name.

Parameters:

term - Specifies the other name.


hasTerms

public boolean hasTerms()

Gets the boolean if it has another name.

Returns:

Returns the boolen if it has another name.


getConcept

protected static Concept getConcept(Concept concept)

Gets Concept. *For Role Holder or p-operator.

Parameters:

Specifies Concept.

Returns:

Returns Concept.


canOverRide

protected boolean canOverRide(java.util.List slotList,

                              Slot slot)

Gets the boolen if Slot can be added.

Parameters:

slotList - Specifies Slot List.

slot - Specifies Concept.

Returns:

Returns the boolean if Slot can be added.


getExtendedAncestorConceptList

public java.util.List getExtendedAncestorConceptList()

Gets all multi-inherited Super Concepts.

Returns:

Returns the multi-inherited Super Concepts.


isSibling

public boolean isSibling(Concept concept)

Gets the boolean if Concept is a sibling.

Parameters:

concept - Specifies Concept.

Returns:

Returns the boolean if Concept is a sibling.


isFamily

public boolean isFamily(Concept concept)

Gets the boolean if Concept is a family member.

Parameters:

concept - Specifies Concept.

Returns:

Returns the boolen if Concept is a family member.

 

 

ConceptInstance


public class ConceptInstance

extends HozoModelObject

Concept Instance Class.

This Class defines Concept Instance.

 

Constructor Detail

ConceptInstance

public ConceptInstance(Model model)

Creates Concept Instance (Constructor)

Parameters:

model - Specifies Model.


ConceptInstance

public ConceptInstance(Model model,

                       int type)

Creates Concept Instance.

Normally, the default Constructor is used.

 If Concept is specified as a temporary Concept Instance, specify type=0 to create the instance.

 This can be distinguished from normal Concept Instance.

 

Parameters:

model - Specifies Model.

type - Specifies Model Type.

Method Detail

removeSlotInstance

public void removeSlotInstance(SlotInstance slotInstance)

Deletes Slot Instance.

Parameters:

slotinstance - Sets Slot Instance to delete.


addSlotInstance

public void addSlotInstance(SlotInstance slotIns)

Adds Slot Instance.

Parameters:

slotIns - Sets Slot Instance to add.


getSlotInstance

public SlotInstance getSlotInstance(int index)

Gets Slot Instance.

Parameters:

index - Sets Slot Instance Index.

Returns:

Returns the specified Slot Instance.


getSlotInstanceSize

public int getSlotInstanceSize()

Gets the number of Slot Instances.

Returns:

Returns the number of Slot Instances.


getSlotInstanceList

public java.util.List getSlotInstanceList()

Gets Slot Instance List.

Returns:

Returns Slot Instance List.


removeRelationInstance

public void removeRelationInstance(RelationInstance relationInstance)

Deletes Relation Instance.

Parameters:

relationInstance - Sets Relation Instance to delete.


addRelationInstance

public void addRelationInstance(RelationInstance relationInstance)

Adds Relation Instance.

Parameters:

relationInstance - Sets Relation Instance.


getRelationInstanceList

public java.util.List getRelationInstanceList()

Gets Relation Instance List.

Returns:

Returns Relation Instance List.


getType

public int getType()

Gets Concept Instance Type

Returns:

Returns Concept Instance Type.


setType

protected void setType(int type)

Sets Concept Instance Type

Parameters:

type - Sets Concept Instance Type.


hasSlotInstances

public boolean hasSlotInstances()

Returns the boolean if it has Slot Instance.

Returns:

Returns "True" if it has Slot Instance.


getReferenceConcept

public Concept getReferenceConcept()

Gets Reference Concept.

Returns:

Returns Reference Concept.


setReferenceConcept

public void setReferenceConcept(Concept concept)

Sets Reference Concept.

Parameters:

concept - Sets Reference Concept.


getModel

public Model getModel()

Gets the affiliated Model.

Overrides:

getModel in class HozoModelObject

Returns:

Returns the affiliated Model.


setModel

public void setModel(Model model)

Sets the affiliated Model.

Parameters:

model - Sets the affiliated Model.


removeRoleConceptInstance

public void removeRoleConceptInstance(RoleConceptInstance roleConceptIns)

Deletes Role Concept Instance.

Parameters:

roleConceptIns - Sets Role Concept Instance to delete.


addRoleConceptInstance

public void addRoleConceptInstance(RoleConceptInstance roleConceptIns)

Adds the Role Concept Instance.

Note) Currently duplication of Role Concept Instance is allowed.

 

Parameters:

roleConceptIns - Sets Role Concept Instance to add.


getRoleConceptInstanceList

public java.util.List getRoleConceptInstanceList()

Gets Role Concept Instance List.

Returns:

Returns the Role Concept Instance List.


hasRelationInstances

public boolean hasRelationInstances()

Returns the boolean if it has Relation Instance.

Returns:

Returns "True" if it has Relation Instance.


isDescendantConceptInstance

public boolean isDescendantConceptInstance(ConceptInstance conceptIns)

Gets the boolean if it is a descendant of Concept Instance.

Note) This method was created on 12/15/2005 as a reference.

 

Parameters:

conceptIns - Sets the target Concept Instance.

Returns:

Returns the boolean if it is a descendent of the specified Concept Instance.


getSlotInstanceList

public java.util.List getSlotInstanceList(Slot slot)

Gets Slot Instance List.

Note) This method was created on 05/02/2006 as a reference.

 

Parameters:

slot - Sets the target Slot.

Returns:

Returns the target Slot List.


getSlotInstanceSize

public int getSlotInstanceSize(Slot slot)

Gets the number of Instances of a Slot.

Note) This method was created on 05/02/2006 as a reference.

 

Parameters:

slot - Sets the target Slot.

Returns:

Returns the number of target Slots.

 

 

ConceptInstanceModel


public interface ConceptInstanceModel

Concept Instance Model Class.

This class defines Concept Instance Model.

 

Method Detail

createSlotInstance

SlotInstance createSlotInstance(Slot slot,

                                ConceptInstance constConIns)

Creates Slot Instance.

Parameters:

slot - Specifies the target Slot.

constConIns - Specifies the constraint Concept Instance.

Returns:

Returns Slot Instance created.

 

 

ConceptModel


public interface ConceptModel

Concept Model Class

This class defines Concept Model.

 

Method Detail

createPartOfSlot

Slot createPartOfSlot(java.lang.String roleName,

                      java.lang.String roleHolderName,

                      java.lang.String strCardinality,

                      java.lang.String strClassConst,

                      java.lang.String strConstValue)

Creates a partial Slot.

Parameters:

roleName - Specifies Role Name.

roleHolderName - Specifies Role Holder Name.

strCardinality - Specifies Cardinality in string.

strClassConst - Specifies Class Constraint in string.

strConstValue - Specifies Constraint Value in string.

Returns:

Returns Slot created.


createAttributeOfSlot

Slot createAttributeOfSlot(java.lang.String roleName,

                           java.lang.String roleHolderName,

                           java.lang.String strCardinality,

                           java.lang.String strClassConst,

                           java.lang.String strConstValue)

Creates Attribute Of Slot.

Parameters:

roleName - Specifies Role Name.

roleHolderName - Specifies Role Holder Name.

strCardinality - SpecifiesCardinality in string.

strClassConst - Specifies Class Constraint in string.

strConstValue - Specifies Constraint Value in string.

Returns:

Returns Slot created.


createOverrideSlot

Slot createOverrideSlot(Slot slot,

                        boolean createSlotOfSlot)

Creates a specialized Slot.

Returns NULL if a specified Slot cannot be specialized.

 

Parameters:

slot - Specifies Slot.

createSlotOfSlot - Specifies if Slot-Of-Slot should be created.

Returns:

Returns Slot created.


addSubConcept

Concept addSubConcept(Concept concept)

Adds Sub-Concept.

Parameters:

concept - Specifies Concept.

Returns:

Returns Sub-Concept added.


getSuperClassLabels

java.lang.String[] getSuperClassLabels()

Gets Super Class Labels in string.

Returns:

Retursn Super Class Labels in string.


getSuperClassList

java.util.List getSuperClassList()

Gets Super Class List in list.

Returns:

Returns Super Class List in list.


getSubClassLabels

java.lang.String[] getSubClassLabels()

Gets Sub Class List in string.

Returns:

ReturnsSub Class List in string.


getSubClassList

java.util.List getSubClassList()

Gets Sub Class List in list.

Returns:

Returns Sub Class List in list.

 

 

DateValueConcept


public class DateValueConcept

extends ValueConcept

Date Value Concept Class.

 This class defines Date Value Concept.

 

Constructor Detail

DateValueConcept

public DateValueConcept(Ontology ont)

Creates Date Value Concept. (Constructor)

Parameters:

ont - Affiliated Ontology


DateValueConcept

public DateValueConcept(Ontology ont,

                        java.lang.String value)

Creates Date Value Concept. (Constructor)

Parameters:

ont - Affiliated Ontology

value - Specifies Value.

Method Detail

setValue

public void setValue(java.lang.String val)

              throws InvalidValueException

Sets Value.

Overrides:

setValue in class ValueConcept

Parameters:

val - Sets Value.

Throws:

InvalidValueException


isValid

public boolean isValid()

Returns the boolean if Value is valid.

Overrides:

isValid in class ValueConcept

Returns:

Returns the boolean if Value is valid.


isValid

public static boolean isValid(java.lang.String value)

Returns the boolean if Value is valid.

Parameters:

value - Specifies Value.

Returns:

Returns the boolean if Value is valid.

 

 

DifferentRelationConcept


public class DifferentRelationConcept

extends RelationConcept

Different Relation Concept Class.

This class defines differentRelation Concept.

 

Constructor Detail

DifferentRelationConcept

public DifferentRelationConcept(Ontology ont)

Creates differentRelation Concept. (Constructor)

Parameters:

ont - Affiliated Ontology

 

EqualRelationConcept


public class EqualRelationConcept

extends RelationConcept

Equal Relation Concept Class.

This class defines equalRelation Concept.

 

Constructor Detail

EqualRelationConcept

public EqualRelationConcept(Ontology ont)

Creates equalRelation Concept. (Constructor)

Parameters:

ont - Affiliated Ontology

 

 

ExportHozoToOWL


public class ExportHozoToOWL

extends java.lang.Object

Hozo OWL output Class.

Constructor Detail

ExportHozoToOWL

public ExportHozoToOWL(Ontology ontology)

Constructor.

Parameters:

ontology - Specifies Ontology.


ExportHozoToOWL

public ExportHozoToOWL(Ontology ontology,

                       java.lang.String encoding)

Constructor

Parameters:

ontology - Specifies Ontology.

encoding - Specifies Encode.


ExportHozoToOWL

public ExportHozoToOWL(Ontology ontology,

                       java.lang.String encoding,

                       int type)

Constructor

Parameters:

ontology - Specifies Ontology.

encoding - Specifies Encode.

type - Specifies the output Type.

Method Detail

exportOWL

public java.lang.String exportOWL(int type)

Outputs the OWL format data.

Parameters:

type - Specifies the output type.

Returns:

Returns the OWL format data.


exportOWL

public java.lang.String exportOWL()

Outputs the OWL format data.

Returns:

Returns the OWL format data.


getOntology

public Ontology getOntology()

Gets Ontology.

Returns:

Returns Ontology.


setOntology

public void setOntology(Ontology ontology)

Sets Ontology.

Parameters:

ontology - Sets Ontology


getEncording

public java.lang.String getEncording()

Gets Encode.

Returns:

Returns Encode.


setEncording

public void setEncording(java.lang.String encoding)

Sets Encode.

Parameters:

encoding - Sets Encode.


getExportType

public int getExportType()

Gets the output type.

Returns:

Returns the output type.


setExportType

public void setExportType(int type)

Sets the output type.

Parameters:

type - Sets the output type.


replaceOWLEscapeChar

public static java.lang.String replaceOWLEscapeChar(java.lang.String str)

Replace OWL Escape Character.

Parameters:

str - Sets the target string.


escapeFullSizeChar

public static java.lang.String escapeFullSizeChar(java.lang.String str)

Replaces Escape Character (Uppercase character -> Lower case character)

Parameters:

str - Sets the target string.


escapeXML

protected static java.lang.String escapeXML(java.lang.String str)

Replaces XML Escape Character.

Parameters:

str - Specifies the string to be saved in the XML file.

Returns:

Returns the replaced string.

 

 

FileUtility


public class FileUtility

extends java.lang.Object

File Processing Utility Class.

This class defines the File I/O process.

 

Method Detail

isFileExists

protected static boolean isFileExists(java.lang.String pathname)

Gets the boolean if the file exists.

Parameters:

pathname - Specifies the file path or URI (URL).

Returns:

Returns the boolean if the file exists.


isURI

public static boolean isURI(java.lang.String uri)

Gets the boolean if it is URI.

Parameters:

uri - Specifies URI (URL).

Returns:

Returns the boolean if it is URI.


isFile

protected static boolean isFile(java.lang.String filename)

Gets the boolean if it is a file name.

Parameters:

filename - Specifies the file name.

Returns:

Returns the boolean if it is a file name.


getFileName

protected static java.lang.String getFileName(java.lang.String filepath)

Gets the file name.

Parameters:

filepath - Specifies the file path.

Returns:

Returns the file name.


getFilePath

protected static java.lang.String getFilePath(java.lang.String pathname)

Gets the file path.

Parameters:

pathname - Specifies the file path or URI (URL).

Returns:

Returns the file path.


escapeXML

protected static java.lang.String escapeXML(java.lang.String str)

Replaces XML Escape Character.

Parameters:

str - Specifies the string to save in the XML file.

Returns:

Returns the replaced string.


isTabooFileName

protected static boolean isTabooFileName(java.lang.String str)

Determines if an illegal character is used in the file name.

Parameters:

str - Specifies the string to set as the file name.

Returns:

Returns the boolean if an illegal character is used.

 

FloatValueConcept


public class FloatValueConcept

extends ValueConcept

Flat Value Concept Class.

This class defines the FloatValue Concept.

 

Constructor Detail

FloatValueConcept

public FloatValueConcept(Ontology ont)

Creates the Float Value Concept. (Constructor)

Parameters:

ont - Affliated Ontology


FloatValueConcept

public FloatValueConcept(Ontology ont,

                         java.lang.String value)

Creates Float Value Concept. (Constructor)

Parameters:

ont - Affiliated Ontology

value - Specifies Value.

Method Detail

setValue

public void setValue(java.lang.String val)

              throws InvalidValueException

Sets Value.

Overrides:

setValue in class ValueConcept

Parameters:

val - Sets Value.

Throws:

InvalidValueException


isValid

public boolean isValid()

Returns the boolean if Value is valid.

Overrides:

isValid in class ValueConcept

Returns:

Returns the boolean if Value is valid.


isValid

public static boolean isValid(java.lang.String value)

Returns the boolean if Value is valid.

Parameters:

value - Specifies Value.

Returns:

Returns the booelean if Value is valid.

 

Glossary


public class Glossary

extends java.lang.Object

Glossary Type class

This class defines Glossary Type used by Hozo.

 

Constructor Detail

Glossary

public Glossary()

Constructor


Glossary

public Glossary(java.lang.String name)

Constructor

Parameters:

name - Specifies Label Name.

Method Detail

getName

public java.lang.String getName()

Gets Label Name

Returns:

Returns Label Name.


setName

public void setName(java.lang.String name)

Sets Label Name.

Parameters:

name - Specifies Label Name.


getUrl

public java.lang.String getUrl()

Gets URL.

Returns:

Returns URL.


setUrl

public void setUrl(java.lang.String url)

Sets URL.

Parameters:

url - Specifies URL.


getLanguage

public java.lang.String getLanguage()

Gets Language.

Returns:

Returns Language.


setLanguage

public void setLanguage(java.lang.String lang)

Sets Language.

Parameters:

lang - Specifies Language.


getSymbol

public java.lang.String getSymbol()

Gets Symbol.

Returns:

_symbol


setSymbol

public void setSymbol(java.lang.String symbol)

Sets Symbol.

Parameters:

symbol - Specifies Symbol.


getDescription

public java.lang.String getDescription()

Gets Description.

Returns:

Returns Description.


setDescription

public void setDescription(java.lang.String description)

Sets Description.

Parameters:

description - Specifies Description.

 

 

GraphicManager


public class GraphicManager

extends java.lang.Object

Graphic Data Management Class.

Manages Graphic Object.

 

Method Detail

getGraphicObject

public GraphicObject getGraphicObject(java.lang.String key)

Gets Graphic Object.

Parameters:

key - Specifies Key.

Returns:

Returns Graphic Object.


putGraphicObject

public void putGraphicObject(java.lang.String key,

                             GraphicObject gobj)

Sets Graphic Object.

Parameters:

key - Specifies Key.

gobj - Specifies Graphic Object.


getAllGraphicObjects

public java.util.Collection getAllGraphicObjects()

Gets all Graphic Objects.

Returns:

Returns the Graphic Object collection.


removeGraphicObject

public void removeGraphicObject(java.lang.String key)

Deletes Graphic Object.

Parameters:

key - Specifies Key.

 

 

GraphicObject


public class GraphicObject

extends java.lang.Object

Graphic Object Class.

Maintains the Graphic Object data of the Hozo object.

 

Constructor Detail

GraphicManager

public GraphicManager()

Constructor

Method Detail

getGraphicObject

public GraphicObject getGraphicObject(java.lang.String key)

Gets Graphic Object.

Parameters:

key- Specifies Key.

Returns:

Returns Graphic Object.


putGraphicObject

public void putGraphicObject(java.lang.String key,

                             GraphicObject gobj)

Sets Graphic Object.

Parameters:

key - Specifies Key.

gobj - Specifies Graphic Object.


getAllGraphicObjects

public java.util.Collection getAllGraphicObjects()

Gets all Graphic Objects.

Returns:

Returns the Graphic Object collection.


removeGraphicObject

public void removeGraphicObject(java.lang.String key)

Deletes Graphic Object.

Parameters:

key - Specifies Key.

 

HozoInternalException


public class HozoInternalException

extends java.lang.Exception

Exception Class for internal error.

Constructor Detail

HozoInternalException

public HozoInternalException()

Constructor


HozoInternalException

public HozoInternalException(java.lang.String mes)

Constructor

Parameters:

mes - Specifies Error Message.

 

HozoModelObject


public abstract class HozoModelObject

extends HozoObject

Hozo Model Object Class.

This class defines Model Object that Hozo uses.

 

Constructor Detail

HozoModelObject

public HozoModelObject(Model model)

Creates Hozo Model Object.

Parameters:

model - Affiliated Model

Method Detail

getModel

public Model getModel()

Gets the affiliated Model.

Returns:

Returns Model.


getReferenceOntology

public Ontology getReferenceOntology()

Gets Ontology to refer.

Returns:

Returns Ontology to refer.


setReferenceOntology

public void setReferenceOntology(Ontology ontology)

Sets Ontology to refer.

Parameters:

ontology - Sets Ontology to refer.


getOntologyObject

public HozoOntologyObject getOntologyObject()

Gets Ontology Object to refer.

Returns:

Returns Ontology Object to refer.


setOntologyObject

public void setOntologyObject(HozoOntologyObject ontologyObject)

Sets Ontology Object to refer.

Parameters:

ontologyObject - Sets Ontology Object to refer.


removeInstanceOfRelation

protected void removeInstanceOfRelation()

Deletes Instance Relation.


getGraphicObject

public GraphicObject getGraphicObject()

Gets Graphic Object.

Returns:

Returns Graphic Object.


setGraphicObject

public void setGraphicObject(GraphicObject gobj)

Sets Graphic Object.

Parameters:

gobj - Specifies Graphic Object.


createGraphicObject

public GraphicObject createGraphicObject()

Creates Graphic Object.

Returns:

Returns Graphic Object created.

 

HozoObject


public abstract class HozoObject

extends java.lang.Object

Hozo Object.

This class defines the Object that Hozo uses.

 

Constructor Detail

HozoObject

public HozoObject()

Creates Hozo Object. (Constructor)

Method Detail

getId

public java.lang.String getId()

Gets Hozo Object ID.

Returns:

Returns Hozo Object ID.


getObjectId

public java.lang.String getObjectId()

Gets Hozo Object ID

Returns:

Returns Hozo Object ID


getLabel

public java.lang.String getLabel()

Gets Hozo Object Label.

Returns:

Returns Hozo Object Label.


getDescription

public java.lang.String getDescription()

Gets Hozo Object.

Returns:

Returns Hozo Object Description (string).


setId

public void setId(java.lang.String id)

Sets Hozo Object ID.

Parameters:

id - Sets Hozo Object ID.


setObjectId

public void setObjectId(java.lang.String oid)

Sets Hozo Object ID.

Parameters:

oid - Sets Hozo Object ID.


setLabel

public void setLabel(java.lang.String label)

Sets Hozo Object Label.

Parameters:

label - Sets Hozo Object Label.


setDescription

public void setDescription(java.lang.String desc)

Sets Hozo Object Description.

Parameters:

desc - Sets Hozo Object Description.


getIndex

public int getIndex()

Gets Hozo Object Index.

Returns:

Returns Hozo Object Index.


setIndex

public void setIndex(int index)

Sets Hozo Object Index.

Parameters:

index - Sets Hozo Object Index.

 

HozoOntologyObject


public abstract class HozoOntologyObject

extends HozoObject

Hozo Ontology Object.

This class defines Hozon Ontology Object.

 

Constructor Detail

HozoOntologyObject

public HozoOntologyObject(Ontology ont)

Creates Hozo Ontology Object.

Parameters:

ont - Affiliated Ontology

Method Detail

getOntology

public Ontology getOntology()

Gets affiliated Ontology.

Returns:

Returns Ontology.


setOntology

public void setOntology(Ontology ont)

Sets affiliated Ontology.

Parameters:

ont - Sets affiliated Ontology.


getAxiom

public Axiom getAxiom()

Gets Axiom.

Returns:

Return Axiom.


setAxiom

public void setAxiom(Axiom axiom)

Sets Axiom.

Parameters:

axiom - Sets Axiom.


hasAxiom

public boolean hasAxiom()

Gets the boolean if Axiom is set.

Returns:

Returns the boolean if Axiom is set.


getGraphicObject

public GraphicObject getGraphicObject()

Gets Graphic Object.

Returns:

Returns Graphic Object.


setGraphicObject

public void setGraphicObject(GraphicObject gobj)

Sets Graphic Object.

Parameters:

gobj - Specifies Graphic Object.


createGraphicObject

public GraphicObject createGraphicObject()

Creates Graphic Object.

Returns:

Returns Graphic Object created.


getReferenceOntology

public Ontology getReferenceOntology()

Gets Reference Ontology.

Returns:

Returns Reference Ontology


setReferenceOntology

public void setReferenceOntology(Ontology ontology)

Sets Reference Ontology.

Parameters:

ontology - Specifies Reference Ontology


isReferenceOntologyObject

public boolean isReferenceOntologyObject()

Gets the boolean if it is Reference Ontology Object.

Returns:

Returns the boolean if it is Reference Ontology Object.

 

HZBasicConcept


public class HZBasicConcept

extends BasicConcept

Basic Concept Usage Class.

This class defines Basic Concept Usage.

 

Constructor Detail

HZBasicConcept

public HZBasicConcept(Ontology ont)

Creates Basic Concept. (Constructor)

Parameters:

ont - Specifies affiliated Ontology.

 

 

HZBasicConceptInstance


public class HZBasicConceptInstance

extends BasicConceptInstance

implements ConceptInstanceModel

Basic Concept Instance Usage Class.

This class defines Basic Concept Instance Usage.

 

Constructor Detail

HZBasicConceptInstance

public HZBasicConceptInstance(Model model)

Creates Basic Concept Instance. (Constructor)

Parameters:

model - Specifies Model.

Method Detail

createSlotInstance

public SlotInstance createSlotInstance(Slot slot,

                                       ConceptInstance constConIns)

Specifies Slot Instance.

Specified by:

createSlotInstance in interface ConceptInstanceModel

Parameters:

slot - Specifies the target Slot.

constConIns - Specifies the constraint Concept Instance.

Returns:

Returns Slot Instance created.

 

HZFileUtility


public class HZFileUtility
extends java.lang.Object

Extended File Processing Utility Class.

This class defines the file I/O process.
 

Author:

M. Ohta




Method Detail

isFileExists

public static boolean isFileExists(java.lang.String pathname)

Gets the boolean if the file exists.

Parameters:

pathname - Specifies the file path or URI (URL).

Returns:

Returns the boolean if the file exists.


isFileExisted

public static boolean isFileExisted(java.io.File[] files,
                                    java.io.File file)

Gets the boolean if the file exists in the list.

Parameters:

files - Specifies the file list.

file - Specifies the target file.

Returns:

Returns the boolean if the Ontology file exists.


isURI

protected static boolean isURI(java.lang.String uri)

Gets the boolean if it is URI.

Parameters:

uri - Specifies URI (URL).

Returns:

Returns the boolean if it is URI.


isFile

protected static boolean isFile(java.lang.String filename)

Gets the boolean if it is a file name.

Parameters:

filename - Specifies the file name.

Returns:

Returns the boolean if it is a file name.


getFileName

public static java.lang.String getFileName(java.lang.String filepath)

Gets File Name.

Parameters:

filepath - Specifies the file path

Returns:

Returns File Name.


getFilePath

public static java.lang.String getFilePath(java.lang.String pathname)

Gets File Path.

Parameters:

pathname - Specifies the file path name or URI (URL).

Returns:

Returns File Path.


escapeXML

protected static java.lang.String escapeXML(java.lang.String str)

Replaces Escape XML Character.

Parameters:

str - Specifies the string to save in the XML file.

Returns:

Returns the replaced string.


isTabooFileName

public static boolean isTabooFileName(java.lang.String str)

Determines if an illegal character is used in the file name (URL).

Parameters:

str - Specifies the string to set as the file name.

Returns:

Returns the boolean if an illegal character is used.


isTabooFileName

public static boolean isTabooFileName(java.lang.String str,
                                      java.lang.String strExtraChar)

Determines if an illegal character is used in the file name.

Parameters:

str - Specifies the string to set as the file name.

strExtraChar - Specifies additional illegal character.

Returns:

Returns the boolean if an illegal character is used.


makeBackupFile

public static boolean makeBackupFile(java.io.File saveFile,
                                     java.lang.String backupPath)

Creates Backup File.

Parameters:

saveFile - Specifies the file to make a backup.

backupPath - Specifies the directory of the backup file.

Returns:

Returns the boolean if Backup File was created.


getTimestamp

public static java.sql.Timestamp getTimestamp(java.lang.String strTime)

Converts the string to time.

Parameters:

strTime - Specifies the time string.


getDateString

public static java.lang.String getDateString(java.lang.String strTimestamp)

Converts Long Timestamp to a string.

Returns:

Returns the string that was converted from Long Timestamp.


copyFile

public static boolean copyFile(java.io.File file1,
                               java.io.File file2)

Copies File.

Parameters:

file 1 - Specifies the source file.

file 2 - Specifies the target file.


getOntologyNameFromPath

public static java.lang.String getOntologyNameFromPath(java.lang.String path)

GetsOntoloty Name from the file path.

Parameters:

path - Specifies the file path.

Returns:

Returns Ontology Name.


getOntologyNameFromPath

public static java.lang.String getOntologyNameFromPath(java.lang.String pathname,
                                                       boolean hasExtension)

Gets Ontology Name from the file path.

Parameters:

pathname - Specifies the file path name or URI (URL).

hasExtension - Specifies if the file path should include the extension.

Returns:

Returns Ontology Name.


getProjectNameFromPath

public static java.lang.String getProjectNameFromPath(java.lang.String path)

Gets Project Name from the file path.

Parameters:

path - Specifies the file path.

Returns:

Returns Project Name.


getFileData

public static java.lang.String getFileData(java.lang.String path)

Gets File Data in String.

Parameters:

path - Specifies the file path.

Returns:

Returns File Data.


getOntologyFileInfo

public static OntologyFileInfo getOntologyFileInfo(java.lang.String fileName)

Gets Ontology File Info from Ontology Name.

Parameters:

fileName - Specifies the file name.

Returns:

Returns Ontology File Info.


HZGraphicManager


public class HZGraphicManager
extends GraphicManager

Extended Graphic Data Management Class.

奼挘斉偺昤夋忣曬娗棟Class

 Defines Graphic Object.

 

Method Detail

setAllGraphicObjectsSelceted

public void setAllGraphicObjectsSelceted(boolean isSelected)

Specifies that all Graphic Objects have been selected.

Parameters:

isSelected - Specifies that Graphic Objects have been selected.


getSelcetedGraphicObjects

public java.util.List getSelcetedGraphicObjects()

Gets selected Graphic Objects.

Returns:

Returns the list of selected Graphic Objects.


hasSelcetedGraphicObjects

public boolean hasSelcetedGraphicObjects()

Returns the boolean if there are selected Graphic Objects.

Returns:

Returns the truth value if there are selected Graphic Objects.


getEndPoint

public java.awt.Point getEndPoint()

Gets End Point.

Returns:

Returns End Point


HZGraphicObject


public class HZGraphicObject
extends GraphicObject

Extended Graphic Object Class.

Maintains Graphic Data of Hozo Object.

 

Author:

ohta




Constructor Detail

HZGraphicObject

public HZGraphicObject()

Creates Graphic Object. (Constructor)


HZGraphicObject

public HZGraphicObject(double dx,
                       double dy)

Creates Graphic Object. (Constructor)

Parameters:

dx - Specifies X-coordinate.

dy - Specifies Y-coordinate.

Method Detail

setSize

public void setSize(double dx,
                    double dy,
                    double dw,
                    double dh)

Specifies Size.

Parameters:

dx - Specifies X-coordinate of Size (double).

dy - Specifies Y-coordinate of Size (double).

dw - Specifies the width of Size (double)

dh - Specifies the height of Size (double).


setPosition

public void setPosition(java.awt.Point p)

Specifies Position.

Parameters:

p - Specifies Position (Point Class).


isSelected

public boolean isSelected()

Specifies if Graphic Object has been selected.

Returns:

Returns the boolean if Graphic Object has been selected.


setSelected

public void setSelected(boolean isSelected)

Sets Graphic Object being selected.

Parameters:

isSelected - Specifies Graphic Object being selected.


isOpened

public boolean isOpened()

Gets the boolean if Graphic Object has been opened.

Returns:

Returns the boolean if Graphic Object has been opened.


setOpened

public void setOpened(boolean isOpened)

Sets Graphic Object being opened.

Parameters:

isOpened - Specifies Graphic Object being opened.


isMouseEntered

public boolean isMouseEntered()

Gets the boolean if there is a mouse pointer on Graphic Object.

Returns:

Returns the boolean if there is a mouth pointer on Graphic Object.


setMouseEntered

public void setMouseEntered(boolean isMouseEntered)

Sets the mouse pointer so it is on Graphic Object.

Parameters:

isMouseEntered - Specifies the mouse pointer so it is on Graphic Object.


getCurBoundsWidth

public int getCurBoundsWidth()

Gets Width of the area where Graphic Object is drawn.

Returns:

Returns Width of the area where Graphic Object is drawn.


getCurBoundsHeight

public int getCurBoundsHeight()

Gets Height of the area where Graphic Object is drawn.

Returns:

Returns Height of the area where Graphic Object is drawn.


getEndPoint

public java.awt.Point getEndPoint()

Gets End Point of the area where Graphic Object is drawn.

Returns:

Returns End Point of the area where Graphic Object is drawn.


 

HZModel


public class HZModel
extends Model

Instance Model Usage Class.

 This class defines Instance Model Usage.
 

Author:

ohta




Constructor Detail

HZModel

public HZModel()

Creates Model. (Constructor)

Method Detail

load

public void load()

Loads Model.

Loads the Model data from the file specified by the setSource (String) method of this class.
 

Overrides:

load in class Model


load

public void load(int paser)

Loads Model.

Loads the Model data from the file specified by the setSource (String) method of this class.
 

Overrides:

load in class Model

Parameters:

paser[TK1]  - Specifies the parser.


load

public void load(int paser,
                 int mode)

Loads Model.

儌僨儖偺撉崬傪峴偄傑偡丅

Loads the Model data from the file specified by the setSource (String) method of this class.
 

Parameters:

paser[TK2]  - Specifies the parser.

mode - Specifies the mode to load the data.


save

public void save()

Saves Model.

Overwrites and saves the Model data in the file specified by the setSource (String) method of this class.
 

Overrides:

save in class Model


save

public void save(java.lang.String encoding)

Specifies the character encoding and saves Model.

Overwrites and saves the Model data in the file specified by the setSource (String) method of this class.
 If character encoding is not specified, the data is saved in the default character encoding.
 

Overrides:

save in class Model

Parameters:

encoding - Sets the character encoding.


initModel

public void initModel()

Initializes Model

Overrides:

initModel in class Model


reentryHozoModelObject

public void reentryHozoModelObject(HozoModelObject hmObj)

Re-enters Model Object.

Parameters:

hmObj - Specifies Model Object.


getSelectedModelObjectList

public java.util.List getSelectedModelObjectList()

Returns Selected Model Object List.

Returns:

Returns Selected Model Object List.


addHozoModelObject

public void addHozoModelObject(HozoModelObject hmObj)

Adds Model Object.

  Identifies Model Object and executes the Add method in Model Class.
 

Parameters:

hmObj - Specifies Model Object.


removeHozoModelObject

public void removeHozoModelObject(HozoModelObject hmObj)

Deletes Model Object.

  Identifies Model Object and executes the Delete method in Model Class.
 

Parameters:

hmObj - Specifies Model Object.


addConceptInstance

public void addConceptInstance(ConceptInstance conceptInstance)

Adds Concept Instance to Model. (Override)

Overrides:

addConceptInstance in class Model

Parameters:

conceptInstance - Sets Concept Instance to add.


addSlotInstance

public void addSlotInstance(SlotInstance slotInstance)

Adds Slot Instance to Model. (Override)

Overrides:

addSlotInstance in class Model

Parameters:

slotInstance - Sets Slot Instance to add.


addRelationInstance

public void addRelationInstance(RelationInstance relationInstance)

Adds Relation Concept Instance to Model. (Override)

Overrides:

addRelationInstance in class Model

Parameters:

relationInstance - Sets Relation Concept Instance to add.


removeConceptInstance

public void removeConceptInstance(ConceptInstance conceptInstance)

Deletes Concept Instance from Model. (Override)

Overrides:

removeConceptInstance in class Model

Parameters:

conceptInstance - Specifies Concept Instance to delete.


removeSlotInstance

public void removeSlotInstance(SlotInstance slotInstance)

Deletes Slot Instance from Model. (Override)

Overrides:

removeSlotInstance in class Model

Parameters:

slotInstance - Specifies Slot Instance to delete.


removeRelationInstance

public void removeRelationInstance(RelationInstance relationInstance)

Deletes Relation Concept Instance from Model. (Override)

Overrides:

removeRelationInstance in class Model

Parameters:

relationInstance - Specifies Relation Concept Instance to delete.


addReferenceOntology

public void addReferenceOntology(Ontology ontology)

Adds Reference Ontology to Model. (Override)

Overrides:

addReferenceOntology in class Model

Parameters:

ontology - Sets Reference Ontology to add.


removeReferenceOntology

public void removeReferenceOntology(Ontology ontology)

Deletes Reference Ontology from Model. (Override)

Overrides:

removeReferenceOntology in class Model

Parameters:

ontology - Sets Reference Ontology to delete.


checkConstraintValue

public boolean checkConstraintValue(SlotInstance slotIns,
                                    ConceptInstance conIns)

Checks if Constraint Value is correct.

Parameters:

slotIns - Specifies the target Slot Instance.

conIns - Specifies Concept Instance that becomes Constraint Value.

Returns:

Returns the boolean if Constraint Value is correct.


getUnplayedRoleConcept

public RoleConcept getUnplayedRoleConcept(ConceptInstance conIns,
                                          RoleHolder roleHolder)

Returns the boolean if Concept Instance satisfies Role.

This method was added on 09/15/2006.
 Note: Since this is a temporary specification, refactoring is required.
 

Parameters:

conIns - Specifies Concept Instance.

roleHolder - Specifies the target Role Holder.

Returns:

Returns Role that Concept Instance does not satisfy.


createConceptInstance

public ConceptInstance createConceptInstance(int type,
                                             java.lang.String label,
                                             java.lang.String description,
                                             Concept concept)

Creates Concept Instance.

Concept Instance type can be specified for only the following Concept Class.
Basic ConceptInstance:
 丂丂"1" (=BasicConceptInstance.INSTANCE_TYPE)
 Role ConceptInstanceRoleConceptInstance
 丂丂"4" (=RoleConceptInstance.INSTANCE_TYPE)
 

Parameters:

type - Specifies the Concept Instance type.

label - Specifies the Concept label

description - Specifies the Concept description.

concept - Specifies Reference Concept.

Returns:

Returns Concept Instance created.


createBasicConceptInstance

public ConceptInstance createBasicConceptInstance(java.lang.String label,
                                                  java.lang.String description,
                                                  Concept concept)

Creates Basic Concept Instance Class.

Parameters:

label - Specifies the Concept Class label.

description - Specifies the Concept description.

concept - Specifies Reference Concept.

Returns:

Returns Concept Instance created.


createRoleConceptInstance

public ConceptInstance createRoleConceptInstance(java.lang.String label,
                                                 java.lang.String description,
                                                 Concept concept)

Creates Basic Concept Instance Class.

Parameters:

label - Specifies the Concept Class label.

description - Specifies the Concept description.

concept - Specifies Reference Concept.

Returns:

Returns Concept Instance created.


isLoaded

public boolean isLoaded()

Gets the boolean if the source file has been loaded.

Returns:

Returns the boolean if the source file has been loaded.


setLoaded

public void setLoaded(boolean isLoaded)

Sets the boolean if the source file is loaded.

Parameters:

isLoaded - Specifies the source file being loaded.


 

HZModelUtility


public class HZModelUtility
extends java.lang.Object

Extended Model Process Utility Class.

This class defines the model I/O process.
 Note that this class is separated from Hozo Core Utility Class.

 

Author:

M. Ohta


 

Method Detail

isModelFile

public static boolean isModelFile(java.lang.String fileName)
                           throws java.lang.Exception

Determines if the XML file is model data.

Parameters:

fileName - Ontology XML file name.

Returns:

Returns the boolen if it is the model.

Throws:

java.lang.Exception


loadModelData

public void loadModelData(Model model)
                   throws java.lang.Exception

Loads XML Model Data.

  
 Note) If the Ontology file name is URL or if the file resides in the same location as the model file, the Ontology file is loaded.
 

Parameters:

model - Specifies Model.

Throws:

java.lang.Exception


saveModelData

public void saveModelData(Model model)
                   throws java.lang.Exception

Saves XML Model Data.

Parameters:

model - Specifies Model.

Throws:

java.lang.Exception


getEncoding

public java.lang.String getEncoding()

Gets Encoding to save the model data.

Returns:

Returns Enconding.


setEncoding

public void setEncoding(java.lang.String encoding)

Sets Encoding to save the model data.

Parameters:

encoding - Sets Enconding.


getSaveMode

public int getSaveMode()

Gets Save Mode.

Returns:

Returns Save Mode.


setSaveMode

public void setSaveMode(int mode)

Sets Save Mode.

Parameters:

mode - Specifies Save Mode.


getLoadMode

public int getLoadMode()

Gets Load Mode.

Returns:

Returns Load Mode.


setLoadMode

public void setLoadMode(int mode)

Sets Load Mode.

Parameters:

mode - Specifies Load Mode.


 

HZModelUtilitySax


public class HZModelUtilitySax
extends java.lang.Object

Extended Model Process Utility Class.

This class defines the model I/O process.
 Note that this class is separated from Hozo Core Utility Class.
 

Author:

M. Ohta


 

Method Detail

isModelFile

public static boolean isModelFile(java.lang.String fileName)
                           throws java.lang.Exception

Determines if the XML file is the model data.

Parameters:

fileName - Ontology XML file name.

Returns:

Returns the boolean if it is the model.

Throws:

java.lang.Exception


loadModelData

public void loadModelData(Model model)
                   throws java.lang.Exception

Loads XML Model Data.

  
 Note) If the Ontology file name is URL or if the file resides in the same location as the model file, the Ontology file is loaded.
 

Parameters:

model - Specifies Model.

Throws:

java.lang.Exception


saveModelData

public void saveModelData(Model model)
                   throws java.lang.Exception

Saves XML Model Data.

Parameters:

model - Specifies Model.

Throws:

java.lang.Exception


getEncoding

public java.lang.String getEncoding()

Gets Encoding to save the model data.

Returns:

Returns Encoding.


setEncoding

public void setEncoding(java.lang.String encoding)

Sets Encoding to save the model data.

Parameters:

encoding - Sets Encoding.


getSaveMode

public int getSaveMode()

Gets Save Mode.

Returns:

Returns Save Mode.


setSaveMode

public void setSaveMode(int mode)

Sets Save Mode.

Parameters:

mode - Specifies Save Mode.


getLoadMode

public int getLoadMode()

Gets Load Mode.

Returns:

Returns Load Mode.


setLoadMode

public void setLoadMode(int mode)

Sets Load Mode.

Parameters:

mode - Specifies Load Mode.

HZOntology


public class HZOntology
extends Ontology

Ontology Usage Class.

 This class defines Ontology Usage.

 

 

Method Detail

initOntology

public void initOntology()

Initialization

Overrides:

initOntology in class Ontology


load

public void load()

Loads Ontology.

 Loads the Ontology data from the file specified by the method setSource (String) in this class.
 

Overrides:

load in class Ontology


load

public void load(int paser)

Loads Ontology.

Loads the Ontology data from the file specified by the method setSource (String) in this class.
 

Overrides:

load in class Ontology

Parameters:

paser - Specifies the parser.


load

public void load(java.io.InputStream is,
                 int paser)

Loads Ontology.

Loads the Ontology data from the specified input stream.
 

Overrides:

load in class Ontology

Parameters:

is - Specifies the input stream.

paser[TK3]  - Specifies the parser.


loadProperties

public void loadProperties()

Loads only property data of Ontology.

Loads the Ontology data is from the file specified by the method setSource (String) in this class.

 

loadProperties

public void loadProperties(int paser)

Loads only property data of Ontology.

Loads the Ontology data from the file specified by the method setSource (String) in this class.
 

Parameters:

paser[TK4]  - Specifies the parser.


save

public void save()

Saves Ontology.

Overwrites and saves the model data in the file specified by the method setSource (String) of this class. 

 

Overrides:

save in class Ontology


saveWithDependency

public void saveWithDependency(boolean isProject)

Saves Ontology with Dependent Concept.

Overwrites and saves the Model data in the file specified by the setSource (String) method of this class.

 

Parameters:

isProject - Specifies if the file is the project file.


save

public void save(java.lang.String encoding)

Specifies Encoding and saves Ontology.

Overwrites and saves the Model data in the file specified by the setSource (String) method of this class.
 If Encoding is not specified, the data is saved in the default character encoding.
 

Overrides:

save in class Ontology

Parameters:

encoding - Sets the character encoding.


reentryHozoOntologyObject

public void reentryHozoOntologyObject(HozoOntologyObject hoObj)

Re-Enter Ontology Object.

Parameters:

hoObj - Specifies Ontology Object.


addHozoOntologyObject

public void addHozoOntologyObject(HozoOntologyObject hoObj)

Adds Ontology Objects.

  Identifies Ontology Object and executes the Add method in Ontology Class.
 

Parameters:

hoObj - Specifies Ontology Object.


removeHozoOntologyObject

public void removeHozoOntologyObject(HozoOntologyObject hoObj)

Delete Ontology Object.

  Identifies Ontology Object and executes the Delete method in Ontology Class.
Ontology僆僽僕僃僋僩傪敾暿偟偰OntologyClass偺嶍彍儊僜僢僪傪幚峴偟傑偡丅
 

Parameters:

hoObj - Specifies Ontology Object.


getIsaRelationList

public java.util.List getIsaRelationList(int type)

Gets the Relation List (is-a relation).

Parameters:

type - Specifies the Concept type.

Returns:

Returns the Relation List (is-a relation).


getRConceptRelationList

public java.util.List getRConceptRelationList(int type)

Gets Relation Concept List.

Parameters:

type - Specifies the Concept type.

Returns:

Returns Relation Concept List.


checkConceptType

public static boolean checkConceptType(HozoOntologyObject hzObj,
                                       int type)

Evaluates the Concept type of Ontology Object.

Parameters:

hzObj - Specifies Ontology Object.

type - Specifies the Concept type.


getConstraintSlotList

public java.util.List getConstraintSlotList(Concept concept)

Gets Constraint Slot List of Slot set as Constraint Concept.

Parameters:

concept - Specifies Concept.

Returns:

Returns Constraint Slot List of Slot set as Constraint Concept.


getDerivativeSlotList

public java.util.List getDerivativeSlotList(Slot slot)

Gets Derivative Slot List.

  Note) This is not the same as slot.getInheritedSlot().
 

Parameters:

slot - Specifies Slot.

Returns:

Returns Derivative Slot List.


getSlotConstraintId

public static java.lang.String getSlotConstraintId(Slot slot)

Gets Slot Constraint ID.

Returns:

Returns the boolean if Graphic Object has Constraint Concept.


getAuthorDate

public java.lang.String getAuthorDate()

Gets Author Date.

Returns:

Returns Author Date.


setAuthorDate

public void setAuthorDate(java.lang.String date)

Sets Author Date.

Parameters:

date - Specifies Author Date.


getAuthor

public java.lang.String getAuthor()

Gets Author.

Returns:

Returns Author.


setAuthor

public void setAuthor(java.lang.String author)

Sets Author.

Parameters:

author - Specifies Author.


getUpdateDate

public java.lang.String getUpdateDate()

Gets Update Date.

Returns:

Returns Update Date.


setUpdateDate

public void setUpdateDate(java.lang.String date)

Sets Update Date.

Parameters:

date - Specifies Update Date.


getUpdater

public java.lang.String getUpdater()

Gets Updater.

Returns:

Returns Updater.


setUpdater

public void setUpdater(java.lang.String updater)

Sets Updater.

Parameters:

updater - Specifies Updater.


getOntologyName

public java.lang.String getOntologyName()

Gets Ontology Name

Returns:

Returns Ontology Name


setOntologyName

public void setOntologyName(java.lang.String name)

Sets Ontology Name.

Parameters:

name - Specifies Ontology Name.


getProjectName

public java.lang.String getProjectName()

Gets Project Name.

Returns:

Returns Project Name.


setProjectName

public void setProjectName(java.lang.String name)

Sets Project Name.

Parameters:

name - Specifies Project Name.


getDescription

public java.lang.String getDescription()

Gets Description.

Returns:

Returns Description.


setDescription

public void setDescription(java.lang.String description)

Sets Project Name.

Parameters:

description - Specified Project Name.


createConcept

public Concept createConcept(int type,
                             java.lang.String label,
                             java.lang.String description)

Creates Concept Class.

Concept type can be specified only for the following Concept Classes:
   WholeConcept(WholeConcept):  "2" (=WholeConcept.CONCEPT_TYPE)
  RelationConcept (RelationConcept): "3" (=RelationConcept.CONCEPT_TYPE)
 Role Concept (RoleConcept): "4" (=RoleConcept.CONCEPT_TYPE)
 

Parameters:

type - Specifies the Concept type.

label - Specifies the Concept label.

description - Specifies the Concept description.

Returns:

Returns Concept Class created.

惗惉偟偨奣擮Class傪栠偟傑偡丅


createWholeConcept

public Concept createWholeConcept(java.lang.String label,
                                  java.lang.String description)

Creates Whole Concept Class.

Parameters:

label - Specifies the Concept Class label.

description - Specifies the Concept description.

Returns:

Returns Concept Class created.


createRelationConcept

public Concept createRelationConcept(java.lang.String label,
                                     java.lang.String description)

Creates Relation Concept Class.

Parameters:

label - Specifies the Concept Class label.

description - Specifies the Concept description.

Returns:

Returns Concept Class created.


createRoleConcept

public Concept createRoleConcept(java.lang.String label,
                                 java.lang.String description)

Creates Role Concept Class.

Parameters:

label - Specifies the Concept Class label.

description - Specifies the Concept description.

Returns:

Returns Concept Class created.


createIsaRelation

public IsaRelation createIsaRelation(Concept parent,
                                     Concept child)

Creates Relation (is-a relation).

Parameters:

parent - Specifies Parent Concept Class.

child - Specifies Child Concept Class.

Returns:

Returns Relation Class created.


isLoaded

public boolean isLoaded()

Gets the boolean if the source file is loaded.

Returns:

Returns the boolean if the source file is loaded.


setLoaded

public void setLoaded(boolean isLoaded)

Sets the boolean if the source file is loaded.

Parameters:

isLoaded - Specifies the boolean if the source file is loaded.


importOntology

public void importOntology(HZOntology refOntology)

Imports all Concepts of Ontology specified.

Parameters:

refOntology - Specifies Reference Ontology to import.


HZOntologyUtility


public class HZOntologyUtility
extends java.lang.Object

Extended Ontology Process Utility Class.

This class defines the Ontology I/O process.

 

Method Detail

saveOntologyData

public void saveOntologyData(Ontology ontology)
                      throws java.lang.Exception

Saves XML Concept [TK5] Data.

Parameters:

ontology - Ontology

Throws:

java.lang.Exception


saveOntologyData

public void saveOntologyData(Ontology ontology,
                             boolean isProjectFile)
                      throws java.lang.Exception

Saves XML Concept [TK6] Data/

Parameters:

ontology - Ontology

isProjectFile - Specifies the boolean if the file is a project file.

Throws:

java.lang.Exception


isOntologyFile

public static boolean isOntologyFile(java.lang.String fileName)
                              throws java.lang.Exception

Determines if the XML file is Concept Data.

Parameters:

fileNmae - Ontology XML file name.

Returns:

Returns the boolean if it is Ontology.

Throws:

java.lang.Exception


loadOntologyData

public void loadOntologyData(Ontology ontology)
                      throws java.lang.Exception

Loads XML Concept [TK7] Data.

Parameters:

ontology - Specifies Ontology.

Throws:

java.lang.Exception


loadOntologyData

public void loadOntologyData(Ontology ontology,
                             java.io.InputStream is)
                      throws java.lang.Exception

Loads XML Concept Data.

Parameters:

ontology - Specifies Ontology.

is - Specifies the input stream.

Throws:

java.lang.Exception


loadOntologyProperties

public void loadOntologyProperties(Ontology ontology)
                            throws java.lang.Exception

Loads Ontology Properties.

Parameters:

ontology - Specifies Ontology.

Throws:

java.lang.Exception


getEncoding

public java.lang.String getEncoding()

Gets Encoding to save the Ontology data.

Returns:

Returns Encoding.


setEncoding

public void setEncoding(java.lang.String encoding)

Sets Encoding to save the Ontology data.

Parameters:

encoding - Specifies Encoding.

HZOntologyUtilitySax


public class HZOntologyUtilitySax
extends java.lang.Object

Extended Ontology Process Utility Class.

This class defines the Ontology I/O process.

 

Method Detail

saveOntologyData

public void saveOntologyData(Ontology ontology)
                      throws java.lang.Exception

Saves XML Concept [TK8] Data.

Parameters:

ontology - Ontology

Throws:

java.lang.Exception


saveOntologyData

public void saveOntologyData(Ontology ontology,
                             boolean isProjectFile)
                      throws java.lang.Exception

Saves XML Concept Data.

Parameters:

ontology - Ontology

isProjectFile - Specifies if the file is a project file.

Throws:

java.lang.Exception


isOntologyFile

public static boolean isOntologyFile(java.lang.String fileName)
                              throws java.lang.Exception

Determines if the XML file is Concept Data.

Parameters:

fileName - Specifies Ontology XML file name.

Returns:

Returns the boolean if it is Ontology.

Throws:

java.lang.Exception


loadOntologyData

public void loadOntologyData(Ontology ontology)
                      throws java.lang.Exception

Loads XML Concept Data.

Parameters:

ontology - Specifies Ontology.

Throws:

java.lang.Exception


loadOntologyData

public void loadOntologyData(Ontology ontology,
                             java.io.InputStream is)
                      throws java.lang.Exception

Reads XML Concept Data.

Parameters:

ontology - Specifies Ontology.

is - Specifies the input stream.

Throws:

java.lang.Exception


loadOntologyProperties

public void loadOntologyProperties(Ontology ontology)
                            throws java.lang.Exception

Reads Ontology Properties.

Parameters:

ontology - Ontology

Throws:

java.lang.Exception


getEncoding

public java.lang.String getEncoding()

Gets Encoding to save the Ontology data.

Returns:

Returns Encoding.


setEncoding

public void setEncoding(java.lang.String encoding)

Sets Encoding to save the Ontology data.

Parameters:

encoding - Sets Encoding.

 

HZRConceptRelation


public class HZRConceptRelation
extends RConceptRelation

Relation Concept Usage Class.

This class defines Relation Concept Usage.

Constructor Detail

HZRConceptRelation

public HZRConceptRelation(Ontology ont)

Creates Concept Relation.

Parameters:

ont - Specifies the affiliated Ontology.


HZRConceptRelation

public HZRConceptRelation(RelationConcept reCon)

Creates Concept Relation.

Parameters:

reCon - Specifies Relation Concept.

Method Detail

createRSlotRelation

public RSlotRelation createRSlotRelation(Slot rcSlot,
                                         Slot slot)

Adds Slot Relation.

Parameters:

rcSlot - Specifies Slot for Relation Concept.

slot - Specifies Slot linked.

Returns:

Returns Slot Relation.


 

HZRConceptRelationInstance


public class HZRConceptRelationInstance
extends RConceptRelationInstance

Relation Concept Instance Usage Class.

This class defines Relation Concept Instance Usage.
  

Constructor Detail

HZRConceptRelationInstance

public HZRConceptRelationInstance(Model model)

Creates Concept Relation Instance.

Parameters:

model - Specifies the affiliated model.

Method Detail

createRSlotRelationInstance

public RSlotRelation createRSlotRelationInstance(Slot rcSlot,
                                                 SlotInstance slotIns)

Adds Slot Relation.

Parameters:

rcSlot - Specifies Slot for Relation Concept.

slotIns - Specifies Slot Instance linked.

Returns:

Returns Slot Relation.


createRSlotRelationInstance

public RSlotRelation createRSlotRelationInstance(Slot rcSlot,
                                                 ConceptInstance conIns)

Adds Slot Relation.

Parameters:

rcSlot - Specifies Slot for Relation Concept.

conIns - Specifies Concept Instance linked.

Returns:

Returns Slot Relation.


 

HZReasoner


public interface HZReasoner

Hozo Reasoner Interface.

This class defines the Hozon Reasoner.

  

Method Detail

bindOntology

HZReasoner bindOntology(Ontology ontology)

Binds Ontology.

Parameters:

ontology - Specifies Ontology.

Returns:

Returns Reasoner.


bindModel

HZReasoner bindModel(Model model)

Binds Instance Model.

Parameters:

model - Specifies Instance Model.

Returns:

Returns Reasoner.


execute

ReasonerReport execute()
                       throws HZReasonerException

Executes Reasoner.

Returns:

Returns Reasoner Result.

Throws:

HZReasonerException


 

HZReasonerException


public class HZReasonerException
extends java.lang.RuntimeException

Reasoner Error Class.

 

Constructor Detail

HZReasonerException

public HZReasonerException(java.lang.String msg)

Constructor.

Parameters:

msg - Specifies the error message.


HZReasonerException

public HZReasonerException(java.lang.String msg,
                           java.lang.Throwable cause)

Constructor.

Parameters:

msg - Specifies the error message.

cause - Specifies the error cause.


 

HZReasonerFactory


public class HZReasonerFactory
extends java.lang.Object

Reasoner Generation Class.

Method Detail

createReasoner

public static HZReasoner createReasoner(int type)

Creates Reasoner.

Parameters:

type - Specifies the Reasoner type.


 

HZRelationConcept


public class HZRelationConcept
extends RelationConcept
implements ConceptModel, IsaTreeNodeModel

Relation Concept Usage Class.

This class defines Relation Concept Usage.
  

Constructor Detail

HZRelationConcept

public HZRelationConcept(Ontology ont)

Creates Relation Concept. (Constructor)

Parameters:

ont - Affiliated Ontology

Method Detail

createPartOfSlot

public Slot createPartOfSlot(java.lang.String roleName,
                             java.lang.String roleHolderName,
                             java.lang.String strCardinality,
                             java.lang.String strClassConst,
                             java.lang.String strConstValue)

Creates Partial Slot.

Specified by:

createPartOfSlot in interface ConceptModel

Parameters:

roleName - Specifies Role Name.

roleHolderName - Specifies the Role Holder name.

strCardinality - Specifies Cardinality in string.

strClassConst - Specifies Class Constraint in string.

strConstValue - Specifies Constraint Value in string.

Returns:

Returns Slot created.


createAttributeOfSlot

public Slot createAttributeOfSlot(java.lang.String roleName,
                                  java.lang.String roleHolderName,
                                  java.lang.String strCardinality,
                                  java.lang.String strClassConst,
                                  java.lang.String strConstValue)

Creates Attribute Of Slot.

Specified by:

createAttributeOfSlot in interface ConceptModel

Parameters:

roleName - Specifies Role Name.

roleHolderName - Specifies the Role Holder name.

strCardinality - Specifies Cardinality in string.

strClassConst - Specifies Class Constraint in string.

strConstValue - Specifies Constraint Value in string.

Returns:

Returns Slot created.


createOverrideSlot

public Slot createOverrideSlot(Slot slot,
                               boolean createSlotOfSlot)

Creates Specialized Slot.

Returns NULL if the specified Slot is not Specialized Slot.
 

Specified by:

createOverrideSlot in interface ConceptModel

Parameters:

slot - Specifies Slot.

createSlotOfSlot - Specifies creation of Slot Of Slot.

Returns:

Returns Slot created.


addSubConcept

public Concept addSubConcept(Concept concept)

Adds Sub-Concept.

Specified by:

addSubConcept in interface ConceptModel

Parameters:

concept - Specifies Sub-Concept.

Returns:

Returns Sub-Concept added.


getSuperClassLabels

public java.lang.String[] getSuperClassLabels()

Gets Parent Class List in string.

Specified by:

getSuperClassLabels in interface ConceptModel

Returns:

Returns Parent Class List in string.


getSuperClassList

public java.util.List getSuperClassList()

Gets Parent Class List in list.

Specified by:

getSuperClassList in interface ConceptModel

Returns:

Returns Parent Class List in list.


getSubClassLabels

public java.lang.String[] getSubClassLabels()

Gets Child Class List in string.

Specified by:

getSubClassLabels in interface ConceptModel

Returns:

Returns Parent Class List in string.


getSubClassList

public java.util.List getSubClassList()

Gets Parent Class List in list.

Specified by:

getSubClassList in interface ConceptModel

Returns:

Returns Parent Class List in list.


children

public java.util.List children()

Gets Child Class List.

Specified by:

children in interface IsaTreeNodeModel

Returns:

Returns Child Class List.


getChildAt

public HozoOntologyObject getChildAt(int index)

Gets Child Class in index.

Specified by:

getChildAt in interface IsaTreeNodeModel

Parameters:

index - Specifies index.

Returns:

Returns the Child class in index.


getChildCount

public int getChildCount()

Gets Child Count

Specified by:

getChildCount in interface IsaTreeNodeModel

Returns:

Returns Child Count.


getIndex

public int getIndex(HozoOntologyObject object)

Gets Child Class Index.

Specified by:

getIndex in interface IsaTreeNodeModel

Parameters:

object - Specifies Hozo Object.

Returns:

Returns Child Class Count.


getParent

public HozoOntologyObject getParent()

Gets Parent Class.

Specified by:

getParent in interface IsaTreeNodeModel

Returns:

Returns Parent Class.


isLeaf

public boolean isLeaf()

Gets the boolean if it is Leaf Class (no Child Class).

Specified by:

isLeaf in interface IsaTreeNodeModel

Returns:

Returns the boolean if it is Leaf Class.


isRoot

public boolean isRoot()

Gets the boolean if it is Rout Class (No Child Class).

Specified by:

isRoot in interface IsaTreeNodeModel

Returns:

Returns the boolean if it is Rout Class.


 

HZRoleConcept


public class HZRoleConcept
extends RoleConcept
implements ConceptModel, IsaTreeNodeModel

Role Concept Usage Class

This class defines Role Concept Usage.
 

 

Constructor Detail

HZRoleConcept

public HZRoleConcept(Ontology ont)

Creates Role Concept. (Constructor)

Parameters:

ont - Specifies the affiliated Ontology.


HZRoleConcept

public HZRoleConcept(Ontology ont,
                     java.lang.String name)

Creates Role Concept.

Parameters:

ont - Specifies the affiliated Ontology.

name - Specifies Role Name.

Method Detail

createPartOfSlot

public Slot createPartOfSlot(java.lang.String roleName,
                             java.lang.String roleHolderName,
                             java.lang.String strCardinality,
                             java.lang.String strClassConst,
                             java.lang.String strConstValue)

Creates Part Of Slot.

Specified by:

createPartOfSlot in interface ConceptModel

Parameters:

roleName - Specifies Role Name.

roleHolderName - Specifies the Role Holder name.

strCardinality - Specifies Cardinality in string.

strClassConst - Specifies Class Constraint in string.

strConstValue - Specifies Constraint Value in string.

Returns:

Returns Slot created.


createAttributeOfSlot

public Slot createAttributeOfSlot(java.lang.String roleName,
                                  java.lang.String roleHolderName,
                                  java.lang.String strCardinality,
                                  java.lang.String strClassConst,
                                  java.lang.String strConstValue)

Creates Attribute Of Slot.

Specified by:

createAttributeOfSlot in interface ConceptModel

Parameters:

roleName - Specifies Role Name.

roleHolderName - Specifies the Role Holder name.

strCardinality - Specifies Cardinality in string.

strClassConst - Specifies Class Constraint in string.

strConstValue - Specifies Constraint Value in string.

Returns:

Returns Slot created.


createOverrideSlot

public Slot createOverrideSlot(Slot slot,
                               boolean createSlotOfSlot)

Creates the specialized Slot.

Returns NULL if the specified Slot cannot be specialized. 
 

Specified by:

createOverrideSlot in interface ConceptModel

Parameters:

slot - Specifies Slot.

createSlotOfSlot - Specifies creation of Slot Of Slot.

Returns:

Returns Slot created.


addSubConcept

public Concept addSubConcept(Concept concept)

Adds Sub-Concept.

Specified by:

addSubConcept in interface ConceptModel

Parameters:

concept - Specifies Sub-Concept

Returns:

Returns Sub-Concept added.


getSuperClassLabels

public java.lang.String[] getSuperClassLabels()

Gets Parent Class List in string.

Specified by:

getSuperClassLabels in interface ConceptModel

Returns:

Returns Parent Class List in string.


getSuperClassList

public java.util.List getSuperClassList()

Gets Parent Class List in list.

Specified by:

getSuperClassList in interface ConceptModel

Returns:

Returns Parent Class List in list.


getSubClassLabels

public java.lang.String[] getSubClassLabels()

Gets Child Class List in string.

Specified by:

getSubClassLabels in interface ConceptModel

Returns:

Returns Child Class List in string.


getSubClassList

public java.util.List getSubClassList()

Gets Child Class List in list.

Specified by:

getSubClassList in interface ConceptModel

Returns:

Returns Child Class List in list.


children

public java.util.List children()

Gets Child Class List.

Specified by:

children in interface IsaTreeNodeModel

Returns:

Returns Child Class List.


getChildAt

public HozoOntologyObject getChildAt(int index)

Gets Child Class in index.

Specified by:

getChildAt in interface IsaTreeNodeModel

Parameters:

index - Specifies the index.

Returns:

Returns Child Class in index.


getChildCount

public int getChildCount()

Gets Child Class Count.

Specified by:

getChildCount in interface IsaTreeNodeModel

Returns:

Returns Child Class Count.


getIndex

public int getIndex(HozoOntologyObject object)

Gets Child Class Index.

Specified by:

getIndex in interface IsaTreeNodeModel

Parameters:

object - Specifies Hozo Object.

Returns:

Returns Child Class Count.


getParent

public HozoOntologyObject getParent()

Gets Parent Class.

Specified by:

getParent in interface IsaTreeNodeModel

Returns:

Returns Parent Class.


isLeaf

public boolean isLeaf()

Gets the boolean if it is Leave Class (no Child Class).

Specified by:

isLeaf in interface IsaTreeNodeModel

Returns:

Gets the boolean if it is Leave Class.


isRoot

public boolean isRoot()

Gets the boolean if it is Root Class (no Child Class).

Specified by:

isRoot in interface IsaTreeNodeModel

Returns:

Returns the boolean if it is Root Class.


 

HZRoleConceptInstance


public class HZRoleConceptInstance
extends RoleConceptInstance
implements ConceptInstanceModel

Role Concept Instance Usage Class.

This class defines Role Concept Instance Usage.
 

 

Constructor Detail

HZRoleConceptInstance

public HZRoleConceptInstance(Model model)

Creates Role Concept Instance. (Constructor)

Parameters:

model - Specifies the affiliated model.


HZRoleConceptInstance

public HZRoleConceptInstance(Model model,
                             java.lang.String name)

Creates Role Concept Instance.

Parameters:

model - Specifies the affiliated model.

name - Specifies Role Name.

Method Detail

createSlotInstance

public SlotInstance createSlotInstance(Slot slot,
                                       ConceptInstance constConIns)

Creates Slot Instance.

Specified by:

createSlotInstance in interface ConceptInstanceModel

Parameters:

slot - Specifies the target Slot.

constConIns - Specifies Constraint Concept Instance.

Returns:

Returns Slot Instance created.


HZSearchReasoner


public class HZSearchReasoner
extends java.lang.Object
implements HZReasoner

Hozo Ontology Search Class.

This class defines Hozo Ontology Search.
 

Method Detail

bindOntology

public HZReasoner bindOntology(Ontology ontology)

Binds Ontology.

Specified by:

bindOntology in interface HZReasoner

Parameters:

ontology - Specifies Ontology.

Returns:

Returns Hozo Ontology Verification Reasoner.


bindModel

public HZReasoner bindModel(Model model)

Binds Instance Model.

Specified by:

bindModel in interface HZReasoner

Parameters:

model - Specifies Instance Model.

Returns:

Returns Hozo Ontology Verification Reasoner.


doSearchConceptStructure

public SearchReport doSearchConceptStructure(HozoOntologyObject searchObject,
                                             java.lang.String limitConcept,
                                             double threshold)

Searches for Concept Structure.

Parameters:

searchObject - Specifies Search Object.

limitConcept - Specifies Constraint Concept.

threshold - Specifies Similarity Threshold.

Returns:

Returns the search result.


doSearchConceptStructure

public SearchReport doSearchConceptStructure(Ontology ontology,
                                             HozoOntologyObject searchObject,
                                             int conceptType,
                                             java.lang.String limitConcept,
                                             double threshold)

Searches for Concept Structure.

Parameters:

ontology - Specifies Ontology

searchObject - Specifies Search Object.

conceptType - Specifies Concept Type to search.

limitConcept - Specifies Constraint Concept.

threshold - Specifies Similarity Threshold.

Returns:

Returns the search result.


doSearchConceptStructure

public SearchReport doSearchConceptStructure(Ontology ontology,
                                             HozoOntologyObject searchObject,
                                             java.lang.String limitConcept,
                                             double threshold)

Searches for Concept Structure.

Parameters:

ontology - Specifies Ontology

searchObject - Specifies Search Object.

limitConcept - Specifies Constraint Concept.

threshold - Specifies Similarity Threshold.

Returns:

Returns the search result.


doSearchSimilarConcept

public SearchReport doSearchSimilarConcept(java.lang.String concept,
                                           java.lang.String limitConcept,
                                           double threshold)

Searches for Similar Concept.

Parameters:

concept - Specifies Concept to search.

limitConcept - Specifies Constraint Concept.

threshold - Specifies Similarity Threshold.

Returns:

Returns the search result.


doSearchSimilarConcept

public SearchReport doSearchSimilarConcept(java.lang.String ontologyName,
                                           java.lang.String concept,
                                           java.lang.String limitConcept,
                                           double threshold)

Searches for Similar Concept.

Parameters:

ontologyName - Specifies the Ontology name.

concept - Specifies Concept to search.

limitConcept - Specifies Constraint Concept.

threshold - Specifies Similarity Threshold.

Returns:

Returns the search result.


doSearchSimilarConcept

public SearchReport doSearchSimilarConcept(Ontology ontology,
                                           java.lang.String concept,
                                           java.lang.String limitConcept,
                                           double threshold)

Searches for Similar Concept.

Parameters:

ontology - Specifies Ontology

Concept - Specifies Concept to search.

limitConcept - Specifies Constraint Concept.

threshold - Specifies Similarity Threshold.

Returns:

Returns the search result.


doSearch

public SearchReport doSearch(java.lang.String searchLabel,
                             int conceptType,
                             java.lang.String limitConcept,
                             int option,
                             boolean hasCaseSensitivity)

Searches for Ontology.

Parameters:

searchLabel - Specifies Label for search conditions.

conceptType - Specifies Concept Type to search.

limitConcept - Specifies Constraint Concept.

option - Specifies the search option.

hasCaseSensitivity - Specifies to distinguish upper and lower case.

Returns:

Returns the search result.


doSearch

public SearchReport doSearch(java.lang.String ontologyName,
                             java.lang.String searchLabel,
                             int conceptType,
                             java.lang.String limitConcept,
                             int option,
                             boolean hasCaseSensitivity)

Searches for Ontology.

Parameters:

ontologyName - Specifies the Ontology name.

searchLabel - Specifies Search Label.

conceptType - Specifies Concept Type.

limitConcept - Specifies Constraint Concept.

option - Specifies the search option.

hasCaseSensitivity - Specifies to distinguish upper and lower case.

Returns:

Returns the search result.


doSearch

public SearchReport doSearch(Ontology ontology,
                             java.lang.String searchLabel,
                             int conceptType,
                             java.lang.String limitConcept,
                             int option,
                             boolean hasCaseSensitivity)

Searches for Ontology.

Parameters:

ontology - Specifies Ontology

searchLabel - Specifies Label for search conditions.

conceptType - Specifies Concept Type to search.

limitConcept - Specifies Constraint Concept.

option - Specifies the search option.

hasCaseSensitivity - Specifies to distinguish upper and lower case.

Returns:

Returns the search result.


execute

public ReasonerReport execute()

Executes the search.

Specified by:

execute in interface HZReasoner

Returns:

Returns the search result.


setSearchCondition

public void setSearchCondition(SearchCondition condition)

Sets Search Condition.

Parameters:

condition - Specifies Search Condition.


getSearchCondition

public SearchCondition getSearchCondition()

Gets Search Condition.

Returns:

Returns the search result.


HZSlot


public class HZSlot
extends Slot
implements SlotModel

Slot Usage Class.

This class defines Slot Usage.
Note) This class has not inherited Concept Class.
 

Author:

M. Ohta


 

Constructor Detail

HZSlot

protected HZSlot(Ontology ont)

Creates Slot. (Constructor)

Parameters:

ont - Affiliated Ontology


HZSlot

public HZSlot(Concept concept)

Creates Slot. When Slot is created, Role Concept and Role Holder are also created.

Parameters:

concept - Dependent Concept


HZSlot

public HZSlot(Slot slot)

Creates Slot. In this case, Dependent Concept is Role Concept of Slot.

Parameters:

slot - Slot

Method Detail

initializeSlot

protected void initializeSlot(Concept concept)

Initializes Slot (override).  When Slot is created, Role Concept and Role Holder are also created.

Overrides:

initializeSlot in class Slot

Parameters:

concept - Dependent Concept


createPartOfSlot

public Slot createPartOfSlot(java.lang.String roleName,
                             java.lang.String roleHolderName,
                             java.lang.String strCardinality,
                             java.lang.String strClassConst,
                             java.lang.String strConstValue)

Create Partial Slot.

Specified by:

createPartOfSlot in interface SlotModel

Parameters:

roleName - Specifies Role Name.

roleHolderName - Specifies Role Holder Name

strCardinality - Specifies Cardinality in string.

strClassConst - Specifies Class Constraint in string.

strConstValue - Specifies Constraint Value in string.

Returns:

Returns Slot created.


createAttributeOfSlot

public Slot createAttributeOfSlot(java.lang.String roleName,
                                  java.lang.String roleHolderName,
                                  java.lang.String strCardinality,
                                  java.lang.String strClassConst,
                                  java.lang.String strConstValue)

Creates Attribute Slot.

Specified by:

createAttributeOfSlot in interface SlotModel

Parameters:

roleName - Specifies Role Name.

roleHolderName - Specifies Role Holder Name

strCardinality - Specifies Cardinality in string.

strClassConst - Specifies Class Constraint in string.

strConstValue - Specifies Constraint Value in string.

Returns:

Returns Slot created.


createOverrideSlot

public Slot createOverrideSlot(Slot slot,
                               boolean createSlotOfSlot)

Creates the specialized Slot.

Returns NULL if the specified Slot cannot be specialized.
 

Specified by:

createOverrideSlot in interface SlotModel

Parameters:

slot - Specifies Slot.

createSlotOfSlot - Specifies to creates Slot Of Slot.

Returns:

Returns Slot created.


getSuperSlotList

public java.util.List getSuperSlotList()

Gets Super Slot List in list.

Specified by:

getSuperSlotList in interface SlotModel

Returns:

Returns Super Slot List in list.


getSubSlotList

public java.util.List getSubSlotList()

Gets Sub Slot List in list.

Specified by:

getSubSlotList in interface SlotModel

Returns:

Returns Sub Slot List in list.


 

HZSlotInstance


public class HZSlotInstance
extends SlotInstance
implements SlotInstanceModel

Slot Instance Usage Class.

This class defines Slot Instance Usage.

 Note) This class did not inherit Concept Class.
  

Constructor Detail

HZSlotInstance

public HZSlotInstance(Model model)

Creates Slot Instance. (Constructor)

Parameters:

model - Specifies the affiliated Model.


HZSlotInstance

public HZSlotInstance(ConceptInstance conceptIns)

Creates Slot. (Constructor)  When Slot is created, Role Concept Instance is also created.

Parameters:

conceptIns - Specifies Dependent Concept.


HZSlotInstance

public HZSlotInstance(SlotInstance slotIns)

Creates Slot Instance. (Constructor)  When Slot Instance is created, Role Concept Instance is also created.

Parameters:

slotIns - Specifies Slot Instance.

Method Detail

initializeSlotInstance

protected void initializeSlotInstance(ConceptInstance conceptIns)

Initializes Slot (Override).  When Slot is created, Role Concept Instance is also created.

Overrides:

initializeSlotInstance in class SlotInstance

Parameters:

conceptIns - Specifies Dependent Concept Instance.


createSlotInstance

public SlotInstance createSlotInstance(Slot slot,
                                       ConceptInstance constConIns)

Creates Slot Instance.

Specified by:

createSlotInstance in interface ConceptInstanceModel

Parameters:

slot - Specifies the target Slot.

constConIns - Specifies Constraint Concept Instance.

Returns:

Returns Slot Instance created.


 

HZTransitionReasoner


public class HZTransitionReasoner
extends java.lang.Object
implements HZReasoner

Hozo Ontology Search Class.

This class defines Hozo Ontology Search.
 

Method Detail

bindOntology

public HZReasoner bindOntology(Ontology ontology)

Binds Ontology.

Specified by:

bindOntology in interface HZReasoner

Parameters:

ontology - Specifies Ontology.

Returns:

Returns Hozo Ontology Verification Reasoner.


bindModel

public HZReasoner bindModel(Model model)

Binds Instance Model.

Specified by:

bindModel in interface HZReasoner

Parameters:

model - Specifies Instance Model.

Returns:

Returns Hozo Ontology Verification Reasoner.


isSuperConceptByLabel

public static TransitionReport isSuperConceptByLabel(Ontology ontology,
                                                     java.lang.String label_1,
                                                     java.lang.String label_2)

Determines if it is Super Concept.

Parameters:

ontology - Specifies Ontology.

label_1 - Specifies the Basic Concept 1 label.

label_2 - Specifies the Basic Concept 2 label.

Returns:

Returns the search result.


isSuperConceptByLabel

public TransitionReport isSuperConceptByLabel(java.lang.String ontologyLabel,
                                              java.lang.String label_1,
                                              java.lang.String label_2)

Determines if it is Super Concept.

Parameters:

ontologyLabel - Specifies the Ontology label (if no specification, all of bound Ontologies).

label_1 - Specifies the Basic Concept 1 label.

label_2 - Specifies the Basic Concept 2 label.

Returns:

Returns the search result.


isSubConceptByLabel

public static TransitionReport isSubConceptByLabel(Ontology ontology,
                                                   java.lang.String label_1,
                                                   java.lang.String label_2)

Determines if it is Sub-Concept.

Parameters:

ontology - Specifies Ontology.

label_1 - Specifies the Basic Concept 1 label.

label_2 - Specifies the Basic Concept 2 label.

Returns:

Returns the search result.


isSubConceptByLabel

public TransitionReport isSubConceptByLabel(java.lang.String ontologyLabel,
                                            java.lang.String label_1,
                                            java.lang.String label_2)

Determines if it is Sub-Concept.

Parameters:

ontologyLabel - Specifies the Ontology label (if no specification, all of bound Ontologies).

label_1 - Specifies the Basic Concept 1 label.

label_2 - Specifies the Basic Concept 2 label.

Returns:

Returns the search result.


getSuperConceptsByLabel

public static TransitionReport getSuperConceptsByLabel(Ontology ontology,
                                                       java.lang.String label,
                                                       boolean isRecursive)

Searches for Super Concept.

Parameters:

ontology - Specifies Ontology.

label - Specifies the Basic Concept label.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result.


getSuperConceptsInReport

public static TransitionReport getSuperConceptsInReport(TransitionReport report,
                                                        boolean isRecursive)

Searches for Super Concept.

Parameters:

report - Specifies the search result report.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result report.


getSuperConceptsInResult

protected static ReasonerResult getSuperConceptsInResult(ReasonerResult result,
                                                         boolean isRecursive)

Searches for Super Concept.

Parameters:

result - Specifies the search result.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result.


getSuperConceptsByLabel

public TransitionReport getSuperConceptsByLabel(java.lang.String ontologyLabel,
                                                java.lang.String label,
                                                boolean isRecursive)

Searches for Super Concept.

Parameters:

ontologyLabel - Specifies the Ontology label (if no specification, all of bound Ontologies).

label - Specifies the Basic Concept label.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result.


getSubConceptsByLabel

public static TransitionReport getSubConceptsByLabel(Ontology ontology,
                                                     java.lang.String label,
                                                     boolean isRecursive)

Searches for Sub-Concept.

Parameters:

ontology - Specifies Ontology.

label - Specifies the Basic Concept label.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result.


getSubConceptsInReport

public static TransitionReport getSubConceptsInReport(Ontology ontology,
                                                      TransitionReport report,
                                                      boolean isRecursive)

Searches for Sub-Concept.

Parameters:

ontology - Specifies Ontology.

report - Specifies the search result report.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result report.


getSubConceptsInResult

protected static ReasonerResult getSubConceptsInResult(Ontology ontology,
                                                       ReasonerResult result,
                                                       boolean isRecursive)

Searches for Sub-Concept.

Parameters:

ontology - Specifies Ontology.

result - Specifies the search result.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result.


getSubConceptsByLabel

public TransitionReport getSubConceptsByLabel(java.lang.String ontologyLabel,
                                              java.lang.String label,
                                              boolean isRecursive)

Searches for Sub-Concept.

Parameters:

ontologyLabel - Specifies the Ontology label (if no specification, all of bound Ontologies).

label - Specifies the Basic Concept label.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result.


getConceptByLabel

protected static Concept getConceptByLabel(Ontology ontology,
                                           java.lang.String label)

Searches for Concept.

Parameters:

ontology - Specifies Ontology.

label - Specifies the Concept label.

Returns:

Returns Concept.


getRoleConceptsByLabel

public static TransitionReport getRoleConceptsByLabel(Ontology ontology,
                                                      java.lang.String label,
                                                      java.lang.String kind,
                                                      boolean isDetail)

Searches for Role Concept.

Parameters:

ontology - Specifies Ontology.

label - Specifies the Basic Concept label.

kind - Specifies Slot kind.

isDetail - Specifies to search for details.

Returns:

Returns the search result.


getPlayableRoleConceptsByLabel

public static TransitionReport getPlayableRoleConceptsByLabel(Ontology ontology,
                                                              java.lang.String label,
                                                              java.lang.String playerLabel,
                                                              boolean isDetail)

Searches for Playable Role Concepts.

Parameters:

ontology - Specifies Ontology.

label - Specifies the Basic Concept label.

playerLabel - Specifies the label of Playable Role Basic Concept.

isDetail - Specifies to search for details.

Returns:

Returns the search result.


getRoleConceptsInReport

public static TransitionReport getRoleConceptsInReport(TransitionReport report,
                                                       java.lang.String kind,
                                                       boolean isDetail)

Searches for Role Concept.

Parameters:

report - Specifies the search result report.

kind - Specifies the Slot kind.

isDetail - Specifies to search for details.

Returns:

Returns the search result.


getPlayableRoleConceptsInReport

public static TransitionReport getPlayableRoleConceptsInReport(TransitionReport report,
                                                               java.lang.String playerLabel,
                                                               boolean isDetail)

Searches for Playable Role Concepts.

Parameters:

report - Specifies the search result report.

playerLabel - Specifies Playable Role Basic Concept.

isDetail - Specifies to search for details.

Returns:

Returns the search result.


getRoleConceptsInResult

protected static ReasonerResult getRoleConceptsInResult(ReasonerResult result,
                                                        java.lang.String kind,
                                                        boolean isDetail)

Searches for Role Concept.

Parameters:

result - Specifies the search result.

kind - Specifies the Slot kind.

isDetail - Specifies to search for details.

Returns:

Returns the search result.


getPlayableRoleConceptsInResult

protected static ReasonerResult getPlayableRoleConceptsInResult(ReasonerResult result,
                                                                java.lang.String playerLabel,
                                                                boolean isDetail)

Searches for Playable Role Concepts.

Parameters:

result - Specifies the search result.

playerLabel - Specifies the label of Playable Role Basic Concept.

isDetail - Specifies to search for details.

Returns:

Returns the search result.


getRoleConceptsByLabel

public TransitionReport getRoleConceptsByLabel(java.lang.String ontologyLabel,
                                               java.lang.String label,
                                               java.lang.String kind,
                                               boolean isDetail)

Searches for Role Concept.

Parameters:

ontologyLabel - Specifies the Ontology label (if no specification, all of bound Ontologies).

label - Specifies the Basic Concept label.

kind - Specifies the Slot kind.

isDetail - Specifies to search for details.

Returns:

Returns the search result.


getPlayableRoleConceptsByLabel

public TransitionReport getPlayableRoleConceptsByLabel(java.lang.String ontologyLabel,
                                                       java.lang.String label,
                                                       java.lang.String playerLabel,
                                                       boolean isDetail)

Searches for Playable Role Concepts.

Parameters:

ontologyLabel - Specifies the Ontology label (if no specification, all of bound Ontologies).

label - Specifies the Basic Concept label.

playerLabel - Specifies the label of Playable Role Basic Concept.

isDetail - Specifies to search for details.

Returns:

Returns the search result.


getConstraintConceptsInReport

public static TransitionReport getConstraintConceptsInReport(TransitionReport report,
                                                             java.lang.String kind,
                                                             boolean isDetail,
                                                             boolean isRecursive)

Searches for Class Constraint Concept.

Parameters:

report - Specifies the search result report.

kind - Specifies the Slot kind.

isDetail - Specifies to search for details.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result report.


getConstraintConceptsInResult

protected static ReasonerResult getConstraintConceptsInResult(ReasonerResult result,
                                                              java.lang.String kind,
                                                              boolean isDetail,
                                                              boolean isRecursive)

Searches for Class Constraint Concept.

Parameters:

result - Specifies the search result.

kind - Specifies the Slot kind.

isDetail - Specifies to search for details.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result.


getConstraintConceptsByLabel

public static TransitionReport getConstraintConceptsByLabel(Ontology ontology,
                                                            java.lang.String label,
                                                            java.lang.String kind,
                                                            boolean isDetail,
                                                            boolean isRecursive)

Searches for Class Constraint Concept.

Parameters:

ontology - Specifies Ontology.

label - Specifies the Basic Concept label.

kind - Specifies the Slot kind.

isDetail - Specifies to search for details.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result.


getConstraintConceptsByLabel

public TransitionReport getConstraintConceptsByLabel(java.lang.String ontologyLabel,
                                                     java.lang.String label,
                                                     java.lang.String kind,
                                                     boolean isDetail,
                                                     boolean isRecursive)

Searches for Class Constraint Concept.

Parameters:

ontologyLabel - Specifies the Ontology label (if no specification, all of bound Ontologies).

label - Specifies the Basic Concept label.

kind - Specifies the Slot kind.

isDetail - Specifies to search for details.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result.


getRoleHoldersByLabel

public static TransitionReport getRoleHoldersByLabel(Ontology ontology,
                                                     java.lang.String label,
                                                     boolean isRecursive)

Searches for Role Holder.

Parameters:

ontology - Specifies Ontology.

label - Specifies the Basic Concept label.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result.


getRoleHoldersInReport

public static TransitionReport getRoleHoldersInReport(Ontology ontology,
                                                      TransitionReport report,
                                                      boolean isRecursive)

Searches for Role Holder.

Parameters:

ontology - Specifies Ontology.

report - Specifies the search result report.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result report.


getRoleHoldersInResult

protected static ReasonerResult getRoleHoldersInResult(Ontology ontology,
                                                       ReasonerResult result,
                                                       boolean isRecursive)

Searches for Role Holder.

Parameters:

ontology - Specifies Ontology.

result - Specifies the search result report.

isRecursive - Specifies to process recursively. 

Returns:

Returns the search result.


getRoleHoldersByLabel

public TransitionReport getRoleHoldersByLabel(java.lang.String ontologyLabel,
                                              java.lang.String label,
                                              boolean isRecursive)

Searches for Role Holder.

Parameters:

ontologyLabel - Specifies the Ontology label (if no specification, all of bound Ontologies).

label - Specifies the Basic Concept label.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result.


getReferenceConceptsByLabel

public static TransitionReport getReferenceConceptsByLabel(Ontology ontology,
                                                           java.lang.String label,
                                                           boolean isDetail)

Searches for Reference Role Concept.

Parameters:
ontology
- Specifies Ontology.

label - Specifies the Basic Concept label.

isDetail - Specifies to search for details.

Returns:

Returns the search result report.


getReferenceConceptsInReport

public static TransitionReport getReferenceConceptsInReport(Ontology ontology,
                                                            TransitionReport report,
                                                            boolean isDetail)

Searches for Reference Role Concept.

Parameters:

ontology - Specifies Ontology.

report - Specifies the search result report.

isDetail - Specifies to search for details.

Returns:

Returns the search result report.


getReferenceConceptsInResult

protected static ReasonerResult getReferenceConceptsInResult(Ontology ontology,
                                                             ReasonerResult result,
                                                             boolean isDetail)

Searches for Reference Role Concept.

Parameters:

ontology - Specifies Ontology.

result - Specifies the search result.

isDetail - Specifies to search for details.

Returns:

Returns the search result.


getReferenceConceptsByLabel

public TransitionReport getReferenceConceptsByLabel(java.lang.String ontologyLabel,
                                                    java.lang.String label,
                                                    boolean isDetail)

Searches for Reference Role Concept.

Parameters:

ontologyLabel - Specifies the Ontology label (if no specification, all of bound Ontologies).

label - Specifies the Basic Concept label.

isDetail - Specifies to search for details.

Returns:

Returns the search result report.


getDependentConceptInResult

protected static ReasonerResult getDependentConceptInResult(ReasonerResult result,
                                                            boolean isRecursive)

Searches for Dependent Concept.

Parameters:

result - Specifies the search result.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result.


getDependentConceptInReport

public static TransitionReport getDependentConceptInReport(TransitionReport report,
                                                           boolean isRecursive)

Searches for Dependent Concept.

Parameters:

report - Specifies the search result report.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result report.


getDependentConceptByLabel

public static TransitionReport getDependentConceptByLabel(Ontology ontology,
                                                          java.lang.String label,
                                                          boolean isRecursive)

Searches for Dependent Concept.

Parameters:

ontology - Specifies Ontology.

label - Specifies the Role Concept (Slot) label.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result.


getDependentConceptByLabel

public TransitionReport getDependentConceptByLabel(java.lang.String ontologyLabel,
                                                   java.lang.String label,
                                                   boolean isRecursive)

Searches for Dependent Concept.

Parameters:

ontologyLabel - Specifies the Ontology label (if no specification, all of bound Ontologies).

label - Specifies to process recursively.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result.


getPlayableConceptInResult

protected static ReasonerResult getPlayableConceptInResult(ReasonerResult result)

Searches for Class Constraint Concept.

Parameters:

result - Specifies the search result.

Returns:

Returns the search result.


getPlayableConceptInReport

public static TransitionReport getPlayableConceptInReport(TransitionReport report)

Searches for Class Constraint Concept.

Parameters:

report - Specifies the search result report.

Returns:

Returns the search result report.


getPlayableConceptByLabel

public static TransitionReport getPlayableConceptByLabel(Ontology ontology,
                                                         java.lang.String label)

Searches for Class Constraint Concept.

Parameters:

ontology - Specifies Ontology.

label - Specifies the Role Concept (Slot) label.

Returns:

Returns the search result.


getPlayableConceptByLabel

public TransitionReport getPlayableConceptByLabel(java.lang.String ontologyLabel,
                                                  java.lang.String label)

Searches for Class Constraint Concept.

Parameters:

ontologyLabel - Specifies the Ontology label (if no specification, all of bound Ontologies).

label - Specifies the Role Concept (Slot) label.

Returns:

Returns the search result.


getPlayingRoleConcept

public static TransitionReport getPlayingRoleConcept(RoleHolder roleHolder)

Searches for Playing Role Concept.

Parameters:

roleHolder - Specifies Role Holder.

Returns:

Returns the search result.


getPlayingRoleConceptInResult

protected static ReasonerResult getPlayingRoleConceptInResult(ReasonerResult result)

Searches for Playing Role Concept.

Parameters:

result - Specifies the search result.

Returns:

Returns the search result.


getPlayingRoleConceptInReport

public static TransitionReport getPlayingRoleConceptInReport(TransitionReport report)

Searches for Playing Role Concept.

Parameters:

report - Specifies the search result report.

Returns:

Returns the search result report.


getPlayingRoleConceptByLabel

public static TransitionReport getPlayingRoleConceptByLabel(Ontology ontology,
                                                            java.lang.String label)

Searches for Playing Role Concept.

Parameters:

ontology - Specifies Ontology.

label - Specifies the Role Holder label.

Returns:

Returns the search result.


getPlayingRoleConceptByLabel

public TransitionReport getPlayingRoleConceptByLabel(java.lang.String ontologyLabel,
                                                     java.lang.String label)

Searches for Playing Role Concept.

Parameters:

ontologyLabel - Specifies the Ontology label (if no specification, all of bound Ontologies).

label - Specifies the Role Holder label.

Returns:

Returns the search result.


checkRelevanceOfConcepts

public static TransitionReport checkRelevanceOfConcepts(Ontology ontology,
                                                        Concept concept_1,
                                                        Concept concept_2)

Searches for Relevance Of Concepts.

Parameters:

concept_1 - Specifies Concept.

concept_2 - Specifies Concept.

Returns:

Returns the search result.


checkRelevanceOfConceptsByLabel

public static TransitionReport checkRelevanceOfConceptsByLabel(Ontology ontology,
                                                               java.lang.String label_1,
                                                               java.lang.String label_2)

Searches for Relevance Of Concepts.

Parameters:

ontology - Specifies Ontology.

label_1 - Specifies the Basic Concept label.

label_2 - Specifies the Basic Concept label.

Returns:

Returns the search result.


checkRelevanceOfConceptsByLabel

public TransitionReport checkRelevanceOfConceptsByLabel(java.lang.String ontologyLabel,
                                                        java.lang.String label_1,
                                                        java.lang.String label_2)

Searches for Relevance Of Concepts.

Parameters:

ontologyLabel - Specifies the Ontology label.

label_1 - Specifies the Basic Concept label.

label_2 - Specifies the Basic Concept label.

Returns:

Returns the search result.


getExtendedSuperConceptsByLabel

public static TransitionReport getExtendedSuperConceptsByLabel(Ontology ontology,
                                                               java.lang.String label,
                                                               boolean isRecursive)

Searches for multi-inherited Super Concept.

Parameters:

ontology - Specifies Ontology.

label - Specifies the Basic Concept label.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result.


getExtendedSuperConceptsInReport

public static TransitionReport getExtendedSuperConceptsInReport(Ontology ontology,
                                                                TransitionReport report,
                                                                boolean isRecursive)

Searches for multi-inherited Super Concept.

Parameters:

ontology - Specifies Ontology.

report - Specifies the search result report.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result report.


getExtendedSuperConceptsInResult

protected static TransitionResult getExtendedSuperConceptsInResult(Ontology ontology,
                                                                   TransitionResult result,
                                                                   boolean isRecursive)

Searches for multi-inherited Super Concept.

Parameters:

ontology - Specifies Ontology.

result - Specifies the search result.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result.


getExtendedSuperConceptsByLabel

public ReasonerReport getExtendedSuperConceptsByLabel(java.lang.String ontologyLabel,
                                                      java.lang.String label,
                                                      boolean isRecursive)

Search for multi-inherited Super Concept.

Parameters:

ontologyLabel - Specifies the Ontology label (if no specification, all of bound Ontologies).

label - Specifies the Basic Concept label.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result.


getExtendedSubConceptsByLabel

public static TransitionReport getExtendedSubConceptsByLabel(Ontology ontology,
                                                             java.lang.String label,
                                                             boolean isRecursive)

Searches for multi-inherited Sub-Concept.

Parameters:

ontology - Specifies Ontology.

label - Specifies the Basic Concept label.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result.


getExtendedSubConceptsInReport

public static TransitionReport getExtendedSubConceptsInReport(Ontology ontology,
                                                              TransitionReport report,
                                                              boolean isRecursive)

Searches for multi-inherited Super Concept.

Parameters:

ontology - Specifies Ontology.

report - Specifies the search result report.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result report.


getExtendedSubConceptsInResult

protected static TransitionResult getExtendedSubConceptsInResult(Ontology ontology,
                                                                 TransitionResult result,
                                                                 boolean isRecursive)

Searches for multi-inherited Super Concept.

Parameters:

ontology - Specifies Ontology.

result - Specifies the search result.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result.


getExtendedSubConceptsByLabel

public TransitionReport getExtendedSubConceptsByLabel(java.lang.String ontologyLabel,
                                                      java.lang.String label,
                                                      boolean isRecursive)

Searches for multi-inherited Sub-Concept.

Parameters:

ontologyLabel - Specifies the Ontology label (if no specification, all of bound Ontologies).

label - Specifies the Basic Concept label.

isRecursive - Specifies to process recursively.

Returns:

Returns the search result.


getRelationalRoleConcepts

public static TransitionReport getRelationalRoleConcepts(Ontology ontology,
                                                         RoleConcept roleCocnept,
                                                         java.lang.String relationLabel)

Searches for Relational Role Concept.

Parameters:

ontology - Specifies Ontology.

roleCocnept - Specifies Role Concept.

relationLabel - Specifies the Relation Concept label.

Returns:

Returns the search result.


getRelationalRoleConceptsInReport

public static TransitionReport getRelationalRoleConceptsInReport(Ontology ontology,
                                                                 TransitionReport report,
                                                                 java.lang.String relationLabel)

Searches for Relational Role Concept.

Parameters:

ontology - Specifies Ontology.

report - Specifies the search result.

relationLabel - Specifies the Relation Concept label.

Returns:

Returns the search result.


getRelationalRoleConceptsInResult

protected static TransitionResult getRelationalRoleConceptsInResult(Ontology ontology,
                                                                    TransitionResult result,
                                                                    java.lang.String relationLabel)

Searches for Relational Role Concept.

Parameters:

ontology - Specifies Ontology.

result - Specifies the search result.

relationLabel - Specifies the Relation Concept label.

Returns:

Returns the search result.


execute

public TransitionReport execute()

Executes the search.

Specified by:

execute in interface HZReasoner

Returns:

Returns the search result.


getMaxTransitionSize

public int getMaxTransitionSize()

Gets Max Transition Size.

Returns:

Returns Max Transition Size.


setMaxTransitionSize

public void setMaxTransitionSize(int size)

Sets Max Transition Size.

Parameters:

size - Specifies Max Transition Size.


 

HZValidationReasoner


public class HZValidationReasoner
extends java.lang.Object
implements HZReasoner

Hozo Ontology Verification Class.

This class defines Hozo Ontology Verification.
 

Method Detail

bindOntology

public HZReasoner bindOntology(Ontology ontology)

Binds Ontology.

Specified by:

bindOntology in interface HZReasoner

Parameters:

ontology - Specifies Ontology.

Returns:

Returns Hozo Ontology Verification Reasoner.


bindModel

public HZReasoner bindModel(Model model)

Binds Instance Model.

Specified by:

bindModel in interface HZReasoner

Parameters:

model - Specifies Instance Model.

Returns:

Returns Hozo Ontology Verification Reasoner.


execute

public ReasonerReport execute()

Executes Reasoner.

Specified by:

execute in interface HZReasoner

Returns:

Returns the Reasoner result report.


checkOverlappingLabel

public ReasonerReport checkOverlappingLabel(Ontology ont)

Checks for duplicated Concept names.

Parameters:

ont - Specifies Ontology.

Returns:

Returns the Reasoner result report.


checkConsistencyOfIsaRelation

public ReasonerReport checkConsistencyOfIsaRelation(Ontology ont)

Checks for Consistency Of is-a Relation.

Parameters:

ont - Specifies Ontology.

Returns:

Returns the Reasoner result report.


checkOverlappingRoleName

public ReasonerReport checkOverlappingRoleName(Ontology ont)

Checks for Overlapping Role Names.

Parameters:

ont - Specifies Ontology.

Returns:

Returns the Reasoner result report.


checkConsistencyOfCardinality

public ReasonerReport checkConsistencyOfCardinality(Ontology ont)

Checks for Consistency Of Cardinality.

Parameters:

ont - Specifies Ontology.

Returns:

Returns the Reasoner result report.


checkConsistencyOfSlotInheritance

public ReasonerReport checkConsistencyOfSlotInheritance(Ontology ont)

Checks for Consistency Of Slot Inheritance.

Parameters:

ont - Specifies Ontology.

Returns:

Returns the Reasoner result report.


checkConsistencyOfClassConstraint

public ReasonerReport checkConsistencyOfClassConstraint(Ontology ont)

Checks for Consistency Of Class Constraint.

Parameters:

ont - Specifies Ontology.

Returns:

Returns the Reasoner result report.


checkOverlappingRoleHolder

public ReasonerReport checkOverlappingRoleHolder(Ontology ont,
                                                 java.util.HashMap labels)

Checks for Overlapping Role Holder names.

Parameters:

ont - Specifies Ontology.

Returns:

Returns the Reasoner result report.


checkLinkCountOfRCRelation

public ReasonerReport checkLinkCountOfRCRelation(Ontology ont)

Checks for Link Count Of RC Relation.

Parameters:

ont - Specifies Ontology.

Returns:

Returns the Reasoner result report.


checkClassConstraintOfRCRelation

public ReasonerReport checkClassConstraintOfRCRelation(Ontology ont)

Checks for Class Constraint Of RC Relation.

Parameters:

ont - Specifies Ontology.

Returns:

Returns the Reasoner result report.


checkInvalidValueForDatatype

public ReasonerReport checkInvalidValueForDatatype(Ontology ont)

Checks for Invalid Value For Datatype.

Parameters:

ont - Specifies Ontology.

Returns:

Returns the Reasoner result report.


checkBasicRelationConceptRelations

public ReasonerReport checkBasicRelationConceptRelations(Ontology ont)

Checks for Basic Relation Concept Relation.

Parameters:

ont - Specifies Ontology.

Returns:

Returns the Reasoner result report.


checkAnyConcept

public ReasonerReport checkAnyConcept(Ontology ont)

Checks for Any Concept.

Parameters:

ont - Specifies Ontology.

Returns:

Returns the Reasoner result report.


checkInstanceModel

public ReasonerReport checkInstanceModel()

Checks for Instance Model.

Returns:

Returns the Reasoner result report.


HZWholeConcept


public class HZWholeConcept
extends WholeConcept
implements ConceptModel, IsaTreeNodeModel

Whole Concept Usage Class.

This class defines Whole Concept Usage.
 

 

Constructor Detail

HZWholeConcept

public HZWholeConcept(Ontology ont)

Creates Whole Concept. (Constructor)

Parameters:

ont - Affiliated Ontology

Method Detail

createPartOfSlot

public Slot createPartOfSlot(java.lang.String roleName,
                             java.lang.String roleHolderName,
                             java.lang.String strCardinality,
                             java.lang.String strClassConst,
                             java.lang.String strConstValue)

Creates Partial Slot.

Specified by:

createPartOfSlot in interface ConceptModel

Parameters:

roleName - Specifies Role Name.

roleHolderName - Specifies Role Holder name.

strCardinality - Specifies Cardinality in string.

strClassConst - Specifies Class Constraint in string.

strConstValue - Specifies Constraint Value in string.

Returns:

Returns Slot created.


createAttributeOfSlot

public Slot createAttributeOfSlot(java.lang.String roleName,
                                  java.lang.String roleHolderName,
                                  java.lang.String strCardinality,
                                  java.lang.String strClassConst,
                                  java.lang.String strConstValue)

Creates Attribute Of Slot.

Specified by:

createAttributeOfSlot in interface ConceptModel

Parameters:

roleName - Specifies Role Name.

roleHolderName - Specifies the Role Holder name.

strCardinality - Specifies Cardinality in string.

strClassConst - Specifies Class Constraint in string.

strConstValue - Specifies Constraint Value in string.

Returns:

Returns Slot created.


createOverrideSlot

public Slot createOverrideSlot(Slot slot,
                               boolean createSlotOfSlot)

Creates the specialized Slot.

Returns NULL if the specified Slot cannot be specialized.
 

Specified by:

createOverrideSlot in interface ConceptModel

Parameters:

slot - Specifies Slot.

createSlotOfSlot - Specifies to creates Slot Of Slot.

Returns:

Returns Slot created.


addSubConcept

public Concept addSubConcept(Concept concept)

Adds Sub-Concept.

Specified by:

addSubConcept in interface ConceptModel

Parameters:

concept - Specifies Sub-Concept.

Returns:

Returns Sub-Concept added.


getSuperClassLabels

public java.lang.String[] getSuperClassLabels()

Gets Parent Class List in string.

Specified by:

getSuperClassLabels in interface ConceptModel

Returns:

Returns Parent Class List in string.


getSuperClassList

public java.util.List getSuperClassList()

Gets Parent Class List in list.

Specified by:

getSuperClassList in interface ConceptModel

Returns:

Returns Parent Class List in list.


getSubClassLabels

public java.lang.String[] getSubClassLabels()

Gets Child Class List in string.

Specified by:

getSubClassLabels in interface ConceptModel

Returns:

Returns Child Class List in string.


getSubClassList

public java.util.List getSubClassList()

Gets Child Class List in list.

Specified by:

getSubClassList in interface ConceptModel

Returns:

Returns Child Class List in list.


children

public java.util.List children()

Gets Child Class List.

Specified by:

children in interface IsaTreeNodeModel

Returns:

Returns Child Class List.


getChildAt

public HozoOntologyObject getChildAt(int index)

Gets Child Class in index.

Specified by:

getChildAt in interface IsaTreeNodeModel

Parameters:

index - Specifies the index.

Returns:

Returns Child Class in index.


getChildCount

public int getChildCount()

Gets Child Class Count.

Specified by:

getChildCount in interface IsaTreeNodeModel

Returns:

Returns Child Class Count.


getIndex

public int getIndex(HozoOntologyObject object)

Gets Child Class Index.

Specified by:

getIndex in interface IsaTreeNodeModel

Parameters:

object - Specifies Hozo Object.

Returns:

Returns Child Class Count.


getParent

public HozoOntologyObject getParent()

Gets Parent Class.

Specified by:

getParent in interface IsaTreeNodeModel

Returns:

Returns Parent Class.


isLeaf

public boolean isLeaf()

Gets the boolean if it is Leave Class (no Child Class).

Specified by:

isLeaf in interface IsaTreeNodeModel

Returns:

Gets the boolean if it is Leave Class.


isRoot

public boolean isRoot()

Gets the boolean if it is Root Class (no Child Class).

Specified by:

isRoot in interface IsaTreeNodeModel

Returns:

Returns the boolean if it is Root Class.


 

IDManager


public class IDManager
extends java.lang.Object

ID Management Class.

 This class defines ID used by the Ontology editor.

Method Detail

getNewID

public java.lang.String getNewID(int type)

Issues Object ID.

 
 Issues the following ID according to the Object type:
 Concept: "1" (=IDManager.CONCEPT_ID)
 Relation: "2" (=IDManager.RELATION_ID)
 Slot: "3" (=IDManager.SLOT_ID)
 Concept Instance: "4" (=IDManager.CONCEPT_INSTANCE_ID)
 Relation Instance: "5" (=IDManager.RELATION_INSTANCE_ID)
 SlotInstance: "6" (=IDManager.SLOT_INSTANCE_ID)
 Other: "0" (=IDManager.HOZO_OBJECT_ID)
 If no specification, no ID is issued.
 

Parameters:

type - Specifies the Object type.


getObjcetLastIndex

public int getObjcetLastIndex(int type)

Gets Object Last Index.

Parameters:

type - Specifies the Object type.


 

InstanceOfRelation


public class InstanceOfRelation
extends RelationInstance

Concept Instance Relation Class.

This class defines Concept Instance Relation.
 

Constructor Detail

InstanceOfRelation

public InstanceOfRelation(Model model)

Creates Concept Instance Relation. (Constructor)

Parameters:

model - Affiliated Model.

Method Detail

getConceptObject

public HozoOntologyObject getConceptObject()

Gets Concept (Ontology).

Returns:

Returns Concept (Ontology).


setConceptObject

public void setConceptObject(HozoOntologyObject ontologyObject)

Sets Concept (Ontology).

Parameters:

ontologyObject - Sets Concept (Ontology).


getInstanceObject

public HozoModelObject getInstanceObject()

Gets Instance (Model).

Returns:

Returns Instance (Model).


setInstanceObject

public void setInstanceObject(HozoModelObject instance)

Sets Instance (Model).

Parameters:

instance - Sets Instance (Model).


getOntologyLabel

public java.lang.String getOntologyLabel()

Gets Concept (Ontology) Label.

Returns:

Sets the Concept (Ontology) label.


setOntologyLabel

public void setOntologyLabel(java.lang.String label)

Gets Concept (Ontology) Label.

Parameters:

label - Sets _ontologyLabel.


getInstanceLabel

public java.lang.String getInstanceLabel()

Gets Instance (Model) Label.

Returns:

Returns Instance (Model) Label.


setInstanceLabel

public void setInstanceLabel(java.lang.String label)

Sets Instance (Model) Label.

Parameters:

label - Sets Instance (Model) Label.


 

IntegerValueConcept


public class IntegerValueConcept
extends ValueConcept

IntegerValue ConceptClass

 This class defines Integer Value Concept.

 

Constructor Detail

IntegerValueConcept

public IntegerValueConcept(Ontology ont)

Creates Integer Value Concept. (Constructor)

Parameters:

ont - Affiliated Ontology


IntegerValueConcept

public IntegerValueConcept(Ontology ont,
                           java.lang.String value)

Creates Integer Value Concept. (Constructor)

Parameters:

ont - Affiliated Ontology

value - Specifies the value.

Method Detail

setValue

public void setValue(java.lang.String val)
              throws InvalidValueException

Sets Value.

Overrides:

setValue in class ValueConcept

Parameters:

val - Sets the value.

Throws:

InvalidValueException


isValid

public boolean isValid()

Returns the boolean if Value is valid.

Overrides:

isValid in class ValueConcept

Returns:

Returns the boolean if Value is valid.


isValid

public static boolean isValid(java.lang.String value)

Returns the boolean if Value is valid.

Parameters:

value - 抣傪巜掕偟傑偡丅

Returns:

Returns the boolean if Value is valid.


 

InvalidValueException


public class InvalidValueException
extends java.lang.Exception

Invalid Value Exception Class.

Constructor Detail

InvalidValueException

public InvalidValueException()

Constructor


InvalidValueException

public InvalidValueException(java.lang.String mes)

Constructor

Parameters:

mes - Specifies the error message.


InvalidValueException

public InvalidValueException(java.lang.String mes,
                             java.lang.String value)

Constructor

Parameters:

mes - Specifies the error message.

value - Specifies the error message.

mes - 僄儔乕儊僢僙乕僕傪巜掕偟傑偡丅

value - 僄儔乕儊僢僙乕僕傪巜掕偟傑偡丅

Method Detail

getValue

public java.lang.String getValue()

Gets Value.

Returns:

Returns Value.


 

IsaRelation


public class IsaRelation
extends Relation

IsaRelation Class.

This class defines IsaRelation.

Constructor Detail

IsaRelation

public IsaRelation(Ontology ont)

Creates Relation.

Parameters:

ont - Sets the affiliated Ontology.

Method Detail

getLowerConcept

public Concept getLowerConcept()

Gets Sub-Concept.

Returns:

Returns Sub-Concept.


getUpperConcept

public Concept getUpperConcept()

Gets Super Concept.

Returns:

Returns Super Concept.


setLowerConcept

public void setLowerConcept(Concept concept)

Sets Sub-Concept.

Parameters:

concept - Sets Sub-Concept.


setUpperConcept

public void setUpperConcept(Concept concept)

Sets Super Concept.

Parameters:

concept - Sets Super Concept.


 

IsaTreeNodeModel


public interface IsaTreeNodeModel

is-a Tree Node Model Class

Method Detail

children

java.util.List children()

Gets Child Class List.

Returns:

Returns Child Class List.


getChildAt

HozoOntologyObject getChildAt(int index)

Gets Child Class in index.

Parameters:

index - Specifies the index.

Returns:

Returns Child Class in index.


getChildCount

int getChildCount()

Gets Child Class Count.

Returns:

Returns Child Class Count.


getIndex

int getIndex(HozoOntologyObject object)

Gets Child Class Index.

Parameters:

object - Specifies Hozo Object.

Returns:

Returns Child Class Count.


getParent

HozoOntologyObject getParent()

Gets Parent Class.

Returns:

Returns Parent Class.


isLeaf

boolean isLeaf()

Gets the boolean if it is Leave Class (no Child Class).

Returns:

Returns the boolean if it is Leave Class.


isRoot

boolean isRoot()

Gets the boolean if it is Root Class (no Child Class).

Returns:

Returns the boolean if it is Root Class.


 

LargerThanRelationConcept


public class LargerThanRelationConcept
extends RelationConcept

lager-thanRelationConceptClass

 This class defines Larger Than Relation Concept.
+

Constructor Detail

LargerThanRelationConcept

public LargerThanRelationConcept(Ontology ont)

Creates Larger Than Relation Concept. (Constructor)

Parameters:

ont - Affiliated Ontology


 

Model


public class Model
extends java.lang.Object

Model Class.

This class defines Model.
 

Constructor Detail

Model

public Model()

Creates Model. (Constructor)

Method Detail

initModel

public void initModel()

Initializes Model.


load

public void load()
          throws java.io.IOException,
                 org.xml.sax.SAXException,
                 java.lang.IllegalArgumentException,
                 HozoInternalException

Loads Model.

 Loads the Model data from the file specified by the setSource (String) method of this class.
 

Throws:

java.io.IOException

org.xml.sax.SAXException

java.lang.IllegalArgumentException

HozoInternalException


load

public void load(int paser)

Loads Model.

Loads the Model data from the file specified by the setSource (String) method of this class.
 

Parameters:

paser [TK9] - Specifies the parser.


save

public void save()
          throws java.io.IOException,
                 InvalidValueException,
                 HozoInternalException

Saves Model.

 Overwrites and saves the Model data in the file specified by the setSource (String) method of this class.
 

Throws:

java.io.IOException

InvalidValueException

HozoInternalException


save

public void save(java.lang.String encoding)
          throws java.io.IOException,
                 InvalidValueException,
                 HozoInternalException

Specifies the character encoding and saves Model.

Overwrites and saves the Model data in the file specified by the setSource (String) method of this class.
 If the character encoding is not specified, the data is saved in the default character encoding.
 

Parameters:

encoding - Sets the character encoding.

Throws:

java.io.IOException

InvalidValueException

HozoInternalException


addReferenceOntology

public void addReferenceOntology(Ontology ontology)

Adds Reference Ontology to Model.

Parameters:

ontology - Sets Reference Ontology to add.


setBaseOntology

public void setBaseOntology(Ontology ontology)

Sets Base Reference Ontology to Model.

Parameters:

ontology - Sets Base Reference Ontology.


getBaseOntology

public Ontology getBaseOntology()

Gets Base Reference Ontology.

Returns:

Returns Base Reference Ontology.


removeReferenceOntology

public void removeReferenceOntology(Ontology ontology)

Deletes Reference Ontology from Model.

For this Delete process, it is necessary to review both the Delete policy and the process for Instance Object.
(1) Delete it in a similar manner.
(2) Replace it with another Reference Ontology.
 

Parameters:

ontology - Sets Reference Ontology to delete.


getReferenceOntologies

public java.util.List getReferenceOntologies()

Gets all Reference Ontologies.

Returns:

Returns all Reference Ontologies.


addConceptInstance

public void addConceptInstance(ConceptInstance conceptInstance)

Adds Concept Instance to Model.

Parameters:

conceptInstance - Sets Concept Instance to add.


removeConceptInstance

public void removeConceptInstance(ConceptInstance conceptInstance)

Deletes Concept Instance from Model.

For this Delete process, it is necessary to review the Delete policy. It is necessary to review both the relation that has been set to the Concept Instance to be deleted and the process for Constraint Concept Instance (Slot).
(1) Delete it in a similar manner.

(2) Replace it with another Concept Instance.

 

Parameters:

conceptInstance - Specifies Concept Instance to delete.


addRelationInstance

public void addRelationInstance(RelationInstance relationInstance)

Adds Relation Instance to Model.

Parameters:

relationInstance - Specifies Relation Instance to add.


removeRelationInstance

public void removeRelationInstance(RelationInstance relationInstance)

Deletes Relation Instance from Model.

Parameters:

relationInstance - Specifies Relation Instance to delete.


addSlotInstance

public void addSlotInstance(SlotInstance slotInstance)

Adds Slot Instance to Model.

Parameters:

slotInstance - Specifies Slot to add.


removeSlotInstance

public void removeSlotInstance(SlotInstance slotInstance)

Deletes Slot Instance from Model.

This Delete process did not delete Relation Instance for Slot Instance.
 

Parameters:

slotInstance - Specifies Slot Instance to delete.


getId

public java.lang.String getId()

Gets Model ID.

Returns:

Returns Model ID.


getLabel

public java.lang.String getLabel()

Gets Model Label.

Returns:

Returns Model Label.


getSource

public java.lang.String getSource()

Gets the source file name (URL) of Model.

Returns:

Returns the file name (URL) of Model.


getVersion

public java.lang.String getVersion()

Gets the Model Version information.

Returns:

Returns the Model Version information.


setId

public void setId(java.lang.String id)

Sets Model ID.

Parameters:

id - Sets Model ID.


setLabel

public void setLabel(java.lang.String label)

Sets Model Label.

Parameters:

label - Sets Model Label (string).


setSource

public void setSource(java.lang.String src)

Sets the source file name (URL) of Model.

Parameters:

src - Sets the source file name of Model.


setVersion

public void setVersion(java.lang.String ver)

Sets the Model Version information.

Parameters:

ver - Sets the Model Version information.


isModelSource

public boolean isModelSource()

Returns the boolean if the specified source is the Model file.

Returns:

Returns the boolean if it is the Model file.


getConceptInstances

public java.util.List getConceptInstances()

Gets all Concept Instances.

Returns:

Returns the Concept Instance list.


getConceptInstances

public java.util.List getConceptInstances(int type)

Gets the Concept Instance list.

Concept Instance type:
 Basic ConceptInstance:
   "1" (=BasicConceptInstance.INSTANCE_TYPE)
 Role ConceptInstance(RoleConceptInstance):
   "4" (=RoleConceptInstance.INSTANCE_TYPE)
 All Concept Instances:
   "0" (=ConceptInstance.INSTANCE_TYPE)
 

Parameters:

type - Sets the Instance type.

Returns:

Returns the Concept Instance list.


getRelationInstances

public java.util.List getRelationInstances()

Gets all Relation Instances.

Returns:

Returns the Relation Instance list.


getSlotInstances

public java.util.List getSlotInstances()

Gets all Slot Instances.

Returns:

Returns the Slot Instance list.


findConceptInstanceByLabel

public ConceptInstance findConceptInstanceByLabel(java.lang.String label,
                                                  int type)

Searches for Concept Instance.

Concept Instance type:
 Basic ConceptInstance: 
   "1" (=BasicConceptInstance.INSTANCE_TYPE)
 Role ConceptInstance(RoleConceptInstance): 
   "4" (=RoleConceptInstance.INSTANCE_TYPE)
 Role HolderInstance(RoleHolderInstance):
   "5" (=RoleHolderInstance.INSTANCE_TYPE)
 All Concept Instances:
   "0" (=ConceptInstance.INSTANCE_TYPE)
 

Parameters:

label - Specifies the Concept Instance label.

type - Specifies the Concept Instance type.

Returns:

Returns the appropriate Concept Instance, otherwise returns NULL.


findBasicConceptInstanceByLabel

public ConceptInstance findBasicConceptInstanceByLabel(java.lang.String label)

Searches for Basic Concept Instance.

Parameters:

label - Concept Instance label

Returns:

Returns the appropriate Basic Concept Instance, otherwise returns NULL.


findInstanceByConcept

public java.util.List findInstanceByConcept(Concept concept)

Gets Concept Instance.

Parameters:

concept - Specifies Concept (Ontology) Object.

Returns:

Returns the appropriate Concept Instance list.


findAllInstancesByConcept

public java.util.List findAllInstancesByConcept(Concept concept)

Gets all Concept Instances including Child Concepts.

Parameters:

concept - Specifies Concept (Ontology) Object.

Returns:

Returns the appropriate Concept Instance list.


hasInstanceOfConcept

public boolean hasInstanceOfConcept(Concept concept)

Checks if Concept Instance exists.

Parameters:

concept - Specifies Concept (Ontology) Object.

Returns:

Returns the boolean if the specified Concept Instance exists.


findInstanceByRelationConcept

public java.util.List findInstanceByRelationConcept(RelationConcept concept)

Gets Relation Concept Instance.

Parameters:

concept - Specifies Relation Concept (Ontology) Object.

Returns:

Returns the specified Relation Concept Instance.


findAllInstancesByRelationConcept

public java.util.List findAllInstancesByRelationConcept(RelationConcept concept)

Gets all Relation Instances including Child Concepts.

Parameters:

concept - Specifies Relation Concept (Ontology) Object.

Returns:

Returns the specified Relation Concept Instance.


hasInstanceOfRelationConcept

public boolean hasInstanceOfRelationConcept(RelationConcept concept)

Checks if Relation Concept exists.

Parameters:

concept - Specifies Relation Concept (Ontology) Object.

Returns:

Returns the boolean if Relation Concept exists.


getGraphics

public GraphicManager getGraphics()

Gets the Graphics information.

Returns:

Returns the Graphics information.


setGraphics

public void setGraphics(GraphicManager graphics)

Sets the Graphics information.

Parameters:

graphics - Sets the Graphics information.


isOverlappingLabel

public boolean isOverlappingLabel(java.lang.String label)

Checks if the Concept Instance label overlaps.

Parameters:

label - Specifies the label.

Returns:

Returns True if overlapped.


getConstraintSlotInstanceList

public java.util.List getConstraintSlotInstanceList(ConceptInstance constConIns)

Gets Slot Instance List. (Slot Instance has been set as Constraint Concept Instance.)

Returns:

Returns Slot Instance List.


getAllInstances

public java.util.List getAllInstances()

Gets the list of all Instances.

Returns:

Returns the list of all Instances.


hasRoleConcept

public boolean hasRoleConcept(ConceptInstance conIns,
                              RoleConcept roleCon)

Gets the boolean if Concept Instance has Role.

Parameters:

conIns - Specifies Concept Instance.

roleCon - Specifies Role Concept.

Returns:

Returns the boolean if Concept Instance has Role.


removeRoleConceptInstance

public void removeRoleConceptInstance(ConceptInstance roleConceptIns)

Deletes Role Concept Instance.

Parameters:

roleConceptIns - Sets Role Concept Instance to delete.


addRoleConceptInstance

public void addRoleConceptInstance(ConceptInstance roleConceptIns)

Adds Role Concept Instance.

Note) Currently, duplication of Role Concept Instance is allowed.

 

Parameters:

roleConceptIns - Sets Role Concept Instance to add.


getRoleConceptInstances

public java.util.List getRoleConceptInstances()

Gets the Role Concept Instance list.

Returns:

Returns the Role Concept Instance list.


 

ModelFactory


public class ModelFactory
extends java.lang.Object

Instance Model Generation Class.

This class defines Instance Model Generation.
 

Method Detail

createDefaultModel

public static HZModel createDefaultModel()

Creates Instance Model.

Returns:

Returns Ontology created.


createHZModel

public static HZModel createHZModel(java.lang.String source)

Creates Instance Model.

Parameters:

source - Specifies the source file name (URL) of Instance Model.

Returns:

Returns Instance Model created.


createHZModel

public static HZModel createHZModel(java.lang.String source,
                                    int paser)

Creates Instance Model.

Parameters:

source - Specifies the source file name (URL) of Instance Model.

paser - Specifies the XML parser when the file is loaded.

Returns:

Returns Instance Model created.


ModelUtility


public class ModelUtility
extends java.lang.Object

Model Process Utility Class.

This class defines the model I/O process.
 

Method Detail

isModelFile

public static boolean isModelFile(java.lang.String fileName)
                           throws java.lang.Exception

Determines if the XML file is Model Data.

Parameters:

fileName - Ontology XML file name.

Returns:

Returns the boolean if it is Model.

Throws:

java.lang.Exception


loadModelData

public void loadModelData(Model model)
                   throws java.lang.Exception

Loads XML Model Data.

  
 Note) If the Ontology file name is URL or if the file exists in the same location of the Model file, the Ontology file is loaded.
 

Parameters:

model - Specifies Model.

Throws:

java.lang.Exception


saveModelData

public void saveModelData(Model model)
                   throws java.io.IOException,
                          InvalidValueException

Saves XML Model Data.

Parameters:

model - Specifies Model.

Throws:

java.io.IOException

InvalidValueException


getEncoding

public java.lang.String getEncoding()

Gets Encoding to save Model Data.

Returns:

Returns Encoding.


setEncoding

public void setEncoding(java.lang.String encoding)

Sets Encoding to save Model Data.

Parameters:

encoding - Sets Encoding.


ModelUtilitySax


public class ModelUtilitySax
extends java.lang.Object

Extended Model Process Utility Class.

This class defines the model I/O process.
 

Method Detail

isModelFile

public static boolean isModelFile(java.lang.String fileName)
                           throws java.lang.Exception

Determines if the XML file is Model Data.

Parameters:

fileName - Ontology XML file name.

Returns:

Returns the boolean if it is Model.

Throws:

java.lang.Exception


loadModelData

public void loadModelData(Model model)
                   throws java.lang.Exception

Loads XML Model Data.

  Note) If the Ontology file name is URL or if the file exists in the same location of the Model file, the Ontology file is loaded.
 

Parameters:

model - Specifies Model.

Throws:

java.lang.Exception


saveModelData

public void saveModelData(Model model)
                   throws java.io.IOException,
                          InvalidValueException

Saves XML Model Data.

Parameters:

model - Specifies Model.

Throws:

java.io.IOException

InvalidValueException


getEncoding

public java.lang.String getEncoding()

Gets Encoding to save Model Data.

Returns:

Returns Encoding.


setEncoding

public void setEncoding(java.lang.String encoding)

Sets Encoding to save Model Data.

Parameters:

model - Specifies Model.


 

NotEqualRelationConcept


public class NotEqualRelationConcept
extends RelationConcept

Not Equal Relation Concept Class.

not-equalRelationConceptClass

 This class defines Equal Relation Concept.
 

Constructor Detail

NotEqualRelationConcept

public NotEqualRelationConcept(Ontology ont)

Creates Not Equal Relation Concept. (Constructor)

Parameters:

ont - Affiliated Ontology


 

NumberValueConcept


public class NumberValueConcept
extends ValueConcept

Number Value Concept Class.

This class defines Number Value Concept.
 

Constructor Detail

NumberValueConcept

public NumberValueConcept(Ontology ont)

Creates Number Value Concept. (Constructor)

Parameters:

ont - Affiliated Ontology


NumberValueConcept

public NumberValueConcept(Ontology ont,
                          java.lang.String value)

Creates Number Value Concept. (Constructor)

Parameters:

ont - Affiliated Ontology

value - Specifies Value.

Method Detail

setValue

public void setValue(java.lang.String val)
              throws InvalidValueException

Sets Value.

Overrides:

setValue in class ValueConcept

Parameters:

val - Sets Value.

Throws:

InvalidValueException


isValid

public boolean isValid()

Returns the boolean if Value is valid.

Overrides:

isValid in class ValueConcept

Returns:

Returns the boolean if Value is valid.


isValid

public static boolean isValid(java.lang.String value)

Returns the boolean if Value is valid.

Parameters:

value - Specifies Value.

Returns:

Returns the boolean if Value is valid.


 

Ontology


public class Ontology
extends java.lang.Object

Ontology Class.

This class defines Ontology.
 

Constructor Detail

Ontology

public Ontology()

Creates Ontology. (Constructor)

Method Detail

initOntology

public void initOntology()

Initializes Ontology.


load

public void load()
          throws java.io.IOException,
                 org.xml.sax.SAXException,
                 java.lang.IllegalArgumentException,
                 HozoInternalException

Loads Ontology.

Loads the Ontology data from the file specified by the setSource (String) method of this class.
 

Throws:

java.io.IOException

org.xml.sax.SAXException

java.lang.IllegalArgumentException

HozoInternalException


load

public void load(int paser)

Loads Ontology.

Loads the Ontology data from the file specified by the setSource (String) method of this class.
 

Parameters:

paser [TK10] - Specifies the parser.


load

public void load(java.io.InputStream is,
                 int paser)

Loads Ontology.

Loads the Ontology data from the specified input stream.
 

Parameters:

is - Specifies the input stream.

paser - Specifies the parser.


save

public void save()
          throws java.io.IOException,
                 InvalidValueException,
                 HozoInternalException

Saves Ontology.

Overwrites and saves the Ontology data in the file specified by the setSource (String) method of this class.
 

Throws:

java.io.IOException

InvalidValueException

HozoInternalException


save

public void save(java.lang.String encoding)
          throws java.io.IOException,
                 InvalidValueException,
                 HozoInternalException

Specify Encoding and saves Ontology.

Overwrites and saves the Ontology data in the file specified by the setSource (String) method of this class.
 If Encoding is not specified, the data is saved in the default character encoding.
 

Parameters:

encoding - Specifies Encoding.

Throws:

java.io.IOException

InvalidValueException

HozoInternalException


getAllClasses

public java.util.List getAllClasses()

Gets the list of all Concept Classes .

Returns:

Returns the list of all Concept Classes .


addConcept

public void addConcept(Concept concept)

Adds Concept to Ontology.

Parameters:

concept - Sets Concept to add.


removeConcept

public void removeConcept(Concept concept)

Deletes Concept from Ontology.

For this Delete process, it is necessary to review the Delete policy. It is necessary to review the relations set to the Concept to be deleted, and the process for Constraint Concept (Slot).
(1) Delete it in a similar manner.

(2) Replace it with another Concept Instance.

The following methods are applied to this process:
丂丒removeRelationsForConcept(Concept)
 丂丒removeRelationsForSlot(Concept)
 丂丒replaceConceptsForRelation(Concept, Concept)
 丂丒replaceConceptsForRelation(Concept, Concept)
 丂丒makeAbstractConcept(Concept)
 

Parameters:

concept - Specifies Concept to delete.


addRelation

public void addRelation(Relation relation)

Adds Relation to Ontology.

Parameters:

relation - Specifies Relation to add.


removeRelation

public void removeRelation(Relation relation)

Deletes Relation from Ontology.

Parameters:

relation - Specifies Relation to delete.


addSlot

public void addSlot(Slot slot)

Adds Slot to Ontology.

Parameters:

slot - Specifies Slot to add.


removeSlot

public void removeSlot(Slot slot)

Deletes Slot from Ontology.

This Delete process deletes the relation to Slot.
 

Parameters:

slot - Specifies Slot to delete.


getId

public java.lang.String getId()

Gets Ontology ID.

Returns:

Returns Ontology ID.


getLabel

public java.lang.String getLabel()

Get Ontology Label.

Returns:

Returns Ontology Label.


getSource

public java.lang.String getSource()

Gets the source file name (URL) of Ontology.

Returns:

Returns the source file name (URL) of Ontology.


getVersion

public java.lang.String getVersion()

Gets the Ontology Version information.

Returns:

Returns the Ontology Version information.


setId

public void setId(java.lang.String id)

Sets Ontology ID.

Parameters:

id - Sets Ontology ID.


setLabel

public void setLabel(java.lang.String label)

Sets Ontology Label.

Parameters:

label - Sets Ontology Label (string)


setSource

public void setSource(java.lang.String src)

Sets the source file name (URL) of Ontology.

Parameters:

src - Sets the source file name of Ontology.


setVersion

public void setVersion(java.lang.String ver)

Sets the Ontology Version information.

Parameters:

ver - Sets the Ontology Version information.


findConceptByLabel

public Concept findConceptByLabel(java.lang.String label,
                                  int type)

Searches for Concept.

The following Concept types are specified:
 Basic Concept (BasicConcept): "1" (=BasicConcept.CONCEPT_TYPE)
 Whole Concept (WholeConcept): "2" (=WholeConcept.CONCEPT_TYPE)
 Relation Concept (RelationConcept): "3" (=RelationConcept.CONCEPT_TYPE)
 Role Concept (RoleConcept): "4" (=RoleConcept.CONCEPT_TYPE)
 Role Holder (RoleHolder): "5" (=RoleHolder.CONCEPT_TYPE)
 Species Concept (SpeciesConcept): "6" (=SpeciesConcept.CONCEPT_TYPE)
 Value Concept (ValueConcept): "7" (=ValueConcept.CONCEPT_TYPE)
 p-Operator (P_Operator): "8"(=P_Operator.CONCEPT_TYPE)
 All Concepts: "0"(=Concept.CONCEPT_TYPE)
 

Parameters:

label - Specifies the Concept label.

type - Specifies the Concept type

Returns:

Returns the appropriate Concept, otherwise returns NULL.


getConceptCount

public int getConceptCount(int type)

Gets Concept Count.

The following Concept types are specified:
 Basic Concept (BasicConcept): "1" (=BasicConcept.CONCEPT_TYPE)
 Whole Concept (WholeConcept): "2" (=WholeConcept.CONCEPT_TYPE)
 Relation Concept (RelationConcept): "3" (=RelationConcept.CONCEPT_TYPE)
 Role Concept (RoleConcept): "4" (=RoleConcept.CONCEPT_TYPE)
 Role Holder (RoleHolder): "5" (=RoleHolder.CONCEPT_TYPE)
 Species Concept (SpeciesConcept): "6 "(=SpeciesConcept.CONCEPT_TYPE)
 Value Concept (ValueConcept): "7" (=ValueConcept.CONCEPT_TYPE)
 p-Operator (P_Operator): "8"(=P_Operator.CONCEPT_TYPE)
 All Concepts: "0"(=Concept.CONCEPT_TYPE)
 

Parameters:

type - Specifies the Concept type.

Returns:

Returns the appropriate Concept Count.


findWholeConceptByLabel

public Concept findWholeConceptByLabel(java.lang.String label)

Searches for Whole Concept.

Parameters:

label - Concept Label.

Returns:

Returns the appropriate Whole Concept, otherwise returns NULL.


findBasicConceptByID

public Concept findBasicConceptByID(java.lang.String id)

Searches for Basic Concept.

Parameters:

id - Concept ID

Returns:

Returns the appropriate Concept, otherwise returns NULL.


findBasicConceptByLabel

public Concept findBasicConceptByLabel(java.lang.String label)

Searches for Basic Concept.

Parameters:

label - Concept Label

Returns:

Returns the appropriate Basic Concept, otherwise returns NULL.


findRoleConcept

public Concept findRoleConcept(java.lang.String label,
                               Concept dpConcept)

Searches for Role Concept.

Parameters:

label - Specifies the Concept label.

dpConcept - Specifies Dependent Concept.

Returns:

Returns the appropriate Role Concept, otherwise returns NULL.


getRoleHolderList

public java.util.List getRoleHolderList(Concept dpConcept)

Gets Role Holder List.

Parameters:

dpConcept - Specifies Dependent Concept.

Returns:

Returns Role Holder List.


getDependentSlotList

public java.util.List getDependentSlotList(Concept constConcept,
                                           boolean includeSubConcepts)

Gets Dependent Slot List.

Parameters:

constConcept - Specifies Class Constraint Concept.

includeSubConcepts - Specifies to include Sub-Concept.

Returns:

Returns Slot List.


findSlotByLabel

public Slot findSlotByLabel(java.lang.String label)

Searches for Slot.

Note: Basic Concept Slots are searched.
 

Parameters:

label - Slot Label (Format [Concept Name] $[Slot Name]%[Slot Name]%...[Slot Name])

Returns:

Returns the appropriate Slot, otherwise returns NULL.


findSlotByRoleHolder

public Slot findSlotByRoleHolder(RoleHolder roleHolder)

Searches for Slot.

Note: Basic Concept Slots are searched.
 

Parameters:

roleHolder - Specifies Role Holder.

Returns:

Returns the appropriate Slot, otherwise returns NULL.


getRootConcept

public java.util.List getRootConcept(int type)

Gets Root Concept.

Parameters:

type - Specifies the Concept type.

Returns:

Returns the Route Concept list or returns an empty list if there is no list.


searchConceptsByLabel

public java.util.List searchConceptsByLabel(java.lang.String text,
                                            int type)

Ambiguously searches for Concept.

Parameters:

text - Specifies the search string.

type - Specifies the Concept type.

Returns:

Returns the appropriate Concept list, otherwise returns NULL.


getIsaRelations

public java.util.List getIsaRelations()

Gets Isa Relations.

Returns:

Returns the Relation list, or returns an empty list if there is no list.


getRelationConceptRelations

public java.util.List getRelationConceptRelations()

Gets Relation Concept.

Returns:

Returns the Relation Concept list, or returns an empty list if there is no list.


getSlotList

public java.util.List getSlotList()

Gets all Slots.

Returns:

Returns all Slots in Ontology.


getConceptList

public java.util.List getConceptList()

Gets all Concepts.

Returns:

Returns all Concepts in Ontology.


getRelationList

public java.util.List getRelationList()

Gets all Relations.

Returns:

Returns all Relations in Ontology.


replaceConcepts

public void replaceConcepts(Concept concept,
                            Concept replacedConcept)

Replaces Concepts.

Parameters:

concept - Sets the source Concept.

replacedConcept - Sets Concept to replace.


addRefOntology

public void addRefOntology(Ontology ontology)

Adds Reference Ontology.

Parameters:

ontology - Specifies Reference Ontology to add.


removeRefOntology

public void removeRefOntology(Ontology ontology)

Deletes Reference Ontology.

Parameters:

ontology - Specifies Reference Ontology to delete.


containsRefOntology

public boolean containsRefOntology(Ontology ontology)

Returns the boolean if it is contained in Reference Ontology.

Parameters:

ontology - Specifies Reference Ontology.

Returns:

Returns the boolean if it is Reference Ontology.


getRefOntologyList

public java.util.List getRefOntologyList()

Gets all Reference Ontologies.

Returns:

Returns all Reference Ontologies.


isOntologySource

public boolean isOntologySource()

Returns the boolean if the specified source is an Ontology file.

Returns:

Returns the boolean if the file is an Ontology file.


getConcepts

public java.util.List getConcepts(int type)

Gets Concept.

Parameters:

type - Specifies the Concept type.

Returns:

Returns the Concept list, or returns an empty list if there is no list.


getGraphics

public GraphicManager getGraphics()

Gets the Graphics information.

Returns:

Returns the Graphics information.


setGraphics

public void setGraphics(GraphicManager graphics)

Sets the Graphics information.

Parameters:

graphics - Sets the Graphics information.


isOverlappingLabel

public boolean isOverlappingLabel(java.lang.String label)

Checks if the Basic Concept labels overlap.

Parameters:

label - Specifies the label.

Returns:

Returns True if the labels overlap.


getCurrentSlotType

public java.lang.String getCurrentSlotType(Slot slot)

Gets Current Slot Type.

Note) This method was created on 07/04/2006 as a reference.

 

Parameters:

slot - Sets the target Slot.

Returns:

Gets the Slot type.


removeRoleConcept

public void removeRoleConcept(Concept roleConcept)

Deletes Role Concept.

Note) Deleting Role Concept does not delete its dependent Slot.

 

Parameters:

roleConcept - Sets Role Concept to delete.


addRoleConcept

public void addRoleConcept(Concept roleConcept)

Adds Role Concept.

Note) Currently duplication of Role Concept is allowed.

       Adding Role Concept does not add its dependent Slot.

 

Parameters:

roleConcept - Sets Role Concept to add.


getRoleConceptList

public java.util.List getRoleConceptList()

Gets Role Concept List.

Returns:

Returns Role Concept List.


getValueConceptList

public java.util.List getValueConceptList()

Gets Value Concept List.

Returns:

Returns Value Concept List.


isValueConceptByLabel

public boolean isValueConceptByLabel(java.lang.String label)

Determines if it is Value Concept Label.

Parameters:

label - Specifies Concept Label.

Returns:

Returns the boolean if it is Value Concept.


getValueConceptByLabel

public Concept getValueConceptByLabel(java.lang.String label)

Gets Value Concept.

Parameters:

label - Specifies Concept Label.

Returns:

Returns the appropriate Value Concept.


getAnyConcept

public Concept getAnyConcept()

Gets Any Concept.

Returns:

Returns Any Concept.


getBasicRelationConceptList

public java.util.List getBasicRelationConceptList()

Gets Basic Relation Concept List.

Returns:

Returns Basic Relation Concept List.


isBasicRelationConceptByLabel

public boolean isBasicRelationConceptByLabel(java.lang.String label)

Determines if it is Basic Relation Concept Label.

Parameters:

label - Specifies Concept Label.

Returns:

Returns the boolean if it is Basic Relation Concept.


getBasicRelationConceptByLabel

public Concept getBasicRelationConceptByLabel(java.lang.String label)

Gets Basic Relation Concept.

Parameters:

label - Specifies Concept Label.

Returns:

Returns the boolean if it is Basic Relation Concept.


setUseAnyConcept

public void setUseAnyConcept(boolean useAnyCocnept)

Specifies to use Any Concept in default.

Parameters:

useAnyCocnept - Specifies to use Any Concept in default.


isUseAnyConcept

public boolean isUseAnyConcept()

Gets the boolean to use Any Concept in default.

Returns:

Return the boolean to use Any Concept in default.


getGlossaries

public java.util.List getGlossaries()

Gets the list for each Glossary type.

Returns:

Returns the list for each Glossary type.


addGlossary

public void addGlossary(Glossary glossary)

Adds the Glossary type.

Parameters:

glossary - Specifies the Glossary type.


removeGlossary

public void removeGlossary(Glossary glossary)

Deletes the Glossary type.

Parameters:

glossary - Specifies the Glossary type.


hasGlossaries

public boolean hasGlossaries()

Gets the boolean to have the Glossary type.

Returns:

Returns the boolean to have the Glossary type.


OntologyFactory


public class OntologyFactory
extends java.lang.Object

Ontology Generation Class.

This class defines Ontology Generation.
 

Method Detail

createDefaultOntology

public static HZOntology createDefaultOntology()

Creates Ontology.

Returns:

Returns Ontology created.


createHZOntology

public static HZOntology createHZOntology(java.lang.String source)

Creates Ontology.

Parameters:

source - Specifies the source file name (URL) of Ontology.

Returns:

Returns Ontology created.


createHZOntology

public static HZOntology createHZOntology(java.lang.String source,
                                          int paser)

Creates Ontology.

Parameters:

source - Specifies the source file name (URL) of Ontology.

paser - Specifies the XML parser when the file is loaded.

Returns:

Returns Ontology created.


createHZOntology

public static HZOntology createHZOntology(java.io.InputStream is,
                                          int paser)

Creates Ontology.

Parameters:

is - Specifies the input stream.

paser - Specifies the XML parser when the file is loaded.

Returns:

Returns Ontology created.

R


 

OntologyFileInfo


public class OntologyFileInfo
extends java.lang.Object

Ontology File Information Class.

 

OntologyUtility


public class OntologyUtility
extends java.lang.Object

Ontology Process Utility Class.

This class defines the Ontology I/O process.
 

Method Detail

saveOntologyData

public void saveOntologyData(Ontology ontology)
                      throws java.io.IOException,
                             InvalidValueException

Saves Ontology Concept Data.

Parameters:

ontology - Ontology

Throws:

java.io.IOException

InvalidValueException


isOntologyFile

public static boolean isOntologyFile(java.lang.String fileName)
                              throws java.lang.Exception

Determines if the XML file is Concept Data.

Parameters:

fileName - XML file name of Ontology

Returns:

Returns the boolean if it is Ontology.

Throws:

java.lang.Exception


loadOntologyData

public void loadOntologyData(Ontology ontology)
                      throws java.lang.Exception

Loads XML Concept Data.

Parameters:

ontology - Specifies Ontology.

Throws:

java.lang.Exception


loadOntologyData

public void loadOntologyData(Ontology ontology,
                             java.io.InputStream is)
                      throws java.lang.Exception

Loads XML Concept Data.

Parameters:

ontology - Specifies Ontology.

is - Specifies the input stream.

Throws:

java.lang.Exception


getEncoding

public java.lang.String getEncoding()

Gets Encoding to save Ontology Data.

Returns:

Returns Encoding.


setEncoding

public void setEncoding(java.lang.String encoding)

Sets Encoding to Save Ontology Data.

Parameters:

encoding - Specifies Encoding.


 

OntologyUtilitySax


public class OntologyUtilitySax
extends java.lang.Object

Extended Ontology Process Utility Class.

This class defines the Ontology I/O process.
 

Method Detail

saveOntologyData

public void saveOntologyData(Ontology ontology)
                      throws java.lang.Exception

Saves XML Concept Data.

Parameters:

ontology - Ontology

Throws:

java.lang.Exception


isOntologyFile

public static boolean isOntologyFile(java.lang.String fileName)
                              throws java.lang.Exception

Determines if the XML file is Concept Data.

Parameters:

fileName - XML file name of Ontology

Returns:

Returns the boolean if it is Ontology.

Throws:

java.lang.Exception


loadOntologyData

public void loadOntologyData(Ontology ontology)
                      throws java.lang.Exception

Loads XML Concept Data.

Parameters:

ontology - Specifies Ontology.

Throws:

java.lang.Exception


loadOntologyData

public void loadOntologyData(Ontology ontology,
                             java.io.InputStream is)
                      throws java.lang.Exception

Loads XML Concept Data.

Parameters:

ontology - Specifies Ontology.

is - Specifies the input stream.

Throws:

java.lang.Exception


getEncoding

public java.lang.String getEncoding()

Gets Encoding to save Ontology Data.

Returns:

Returns Encoding.


setEncoding

public void setEncoding(java.lang.String encoding)

Sets Encoding to save Ontology Data.

Parameters:

encoding - Sets Encoding.


 

P_Operator


public class P_Operator
extends Concept

p-Operator Class.

This class defines p-Operator.

 

Constructor Detail

P_Operator

public P_Operator(Ontology ont)

Creates p-Operator. (Constructor)

Parameters:

ont - Affiliated Ontology


P_Operator

public P_Operator(Ontology ont,
                  BasicConcept con)

Creates p-Operator.

Parameters:

ont - Sets the affiliated Ontology.

con - Sets the partial Concept.

Method Detail

getLabel

public java.lang.String getLabel()

Gets Label (Override).

 Note) The label with the "p-" prefix is returned.
 

Overrides:

getLabel in class HozoObject

Returns:

Returns Label.


getPartOfConcept

public BasicConcept getPartOfConcept()

Gets Part Of Concept.

Returns:

Returns Part Of Concept.


setPartOfConcept

public void setPartOfConcept(BasicConcept con)

Sets Part Of Concept.

Parameters:

con - Sets Part Of Concept.


getSlotList

public java.util.List getSlotList()

Gets Slot List (Override).

Note) This method was created on 07/25/2008 as a reference.

 

Overrides:

getSlotList in class Concept

Returns:

Returns Slot List.


getAllSlotList

public java.util.List getAllSlotList()

Gets all Slots including upper Slots.

Note) This method was created on 07/25/2008 as a reference.

 

Overrides:

getAllSlotList in class Concept

Returns:

Returns the list of all Slots.


 

PartOfRelation


public class PartOfRelation
extends Relation

Part Of Relation Class.

This class defines Part Of Relation.
 

Constructor Detail

PartOfRelation

public PartOfRelation(Ontology ont)

Creates Part Of Relation.

Parameters:

ont - Affiliated Ontology

Method Detail

getWholeConcept

public Concept getWholeConcept()

Gets Whole Concept.

Returns:

Returns Whole Concept.


getPartSlot

public Slot getPartSlot()

Gets Part Slot.

Returns:

Returns Part Slot.


getPartRoleConcept

public RoleConcept getPartRoleConcept()

Gets Part Role Concept.

Returns:

Returns Part Role Concept.


setWholeConcept

public void setWholeConcept(Concept concept)

Sets Whole Concept.

Parameters:

concept - Sets Whole Concept.


setPartSlot

public void setPartSlot(Slot slot)

Sets Part Slot.

Parameters:

slot - Sets Part Slot.


setPartRoleConcept

public void setPartRoleConcept(RoleConcept roleConcept)

Sets Part Role Concept.

Note) Part Role Concept Dependent Slot is not set.
 

Parameters:

roleConcept - Sets Part Role Concept.


getPartSlotSize

public java.lang.String getPartSlotSize()

Return Part Slot Size.

Returns:

Returns Part Slot Size.


setPartSlotSize

public void setPartSlotSize(java.lang.String size)

Sets Part Slot Size.

Parameters:

size - Sets Part Slot Size.


 

RConceptRelation


public class RConceptRelation
extends Relation

Relation ConceptRelation Class.

This class defines Relation ConceptRelation.

 

Constructor Detail

RConceptRelation

public RConceptRelation(Ontology ont)

Creates Relation ConceptRelation.

Parameters:

ont - Specifies the affiliated Ontology.


RConceptRelation

public RConceptRelation(RelationConcept reCon)

Creates Relation ConceptRelation.

Parameters:

reCon - Specifies Relation Concept

Method Detail

getRelationConcept

public RelationConcept getRelationConcept()

Gets Relation Concept.

Returns:

Returns Relation Concept.


setRelationConcept

public void setRelationConcept(RelationConcept concept)

Sets Relation Concept.

Parameters:

concept - Sets Relation Concept.


getSlotRelationList

public java.util.List getSlotRelationList()

Gets all related Slot Relations.

Returns:

Returns all related Slot Relations.


addRSlotRelation

public void addRSlotRelation(RSlotRelation rsRelation)

Adds the related Slot Relation.

Parameters:

rsRelation - Specifies the related Slot Relation to add.


removeRSlotRelation

public void removeRSlotRelation(RSlotRelation rsRelation)

Deletes the related Slot Relation.

Parameters:

rsRelation - Specifies the related Slot Relation to delete.


getRSlotRelation

public RSlotRelation getRSlotRelation(int index)

Gets the related Slot Relation.

Parameters:

index - Specifies the index of the related Slot Relation to get.

Returns:

Returns the related Slot Relation.


getSlotRelationList

public java.util.List getSlotRelationList(Slot slot)

Gets the related Slot Relation of a particular Slot.

Parameters:

slot - Specifies Relation Concept Slot.

Returns:

Returns the appropriate related Slot Relation.


 

RConceptRelationInstance


public class RConceptRelationInstance
extends RelationInstance

Related Concept Relation Instance Class.

This class defines Relation ConceptRelation Instance.

 

Constructor Detail

RConceptRelationInstance

public RConceptRelationInstance(Model model)

Creates Relation ConceptRelation Instance.

Parameters:

model - Specifies the affiliated Model.

Method Detail

getSlotRelationInstanceList

public java.util.List getSlotRelationInstanceList()

Gets all related Slot Relations.

Returns:

Returns all related Slot Relations.


addRSlotRelationInstance

public void addRSlotRelationInstance(RSlotRelationInstance rsRelationIns)

Adds the related Slot Relation.

Parameters:

rsRelationIns - Specifies the related Slot Relation to add.


removeRSlotRelationInstance

public void removeRSlotRelationInstance(RSlotRelationInstance rsRelationIns)

Deletes the related Slot Relation.

Parameters:

rsRelationIns - Specifies the related Slot Relation Instance to delete.


getRelationConcept

public RelationConcept getRelationConcept()

Gets Relation Concept.

Returns:

Returns Relation Concept.


setRelationConcept

public void setRelationConcept(RelationConcept concept)

Sets Relation Concept.

Parameters:

concept - Sets Relation Concept.


isConceptInstancesRelation

public boolean isConceptInstancesRelation()