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,
-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,
-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,
[Copyright
Holders]
Ohe Research Laboratory, Department of Planning Information and
Management, University of
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. |
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
public class AttributeOfRelation
extends Relation
Attribute-of Relation Class.
This class defines Attribute-of Relation.
|
Constructor Detail |
public AttributeOfRelation(Ontology ont)
Generates Attribute-of Relation.
Parameters:
ont - Affiliated Ontology
public Slot getAttributeSlot()
Gets Attribute Slot.
Returns:
Returns Attribute Slot.
public void setAttributeSlot(Slot slot)
Sets Attribute Slot.
Parameters:
slot - Sets Attribute Slot.
public RoleConcept getAttributeRoleConcept()
Gets Role Concept.
Returns:
Returns Role Concept.
public void setAttributeRoleConcept(RoleConcept roleConcept)
Sets Role Concept.
Note) Attribute Role Concept's Dependent Slot
is not set.
Parameters:
roleConcept - Sets partial Role Concept.
public Concept getDependentConcept()
Gets Dependent Concept.
Returns:
Returns Dependent Concept.
public void getDependentConcept(Concept concept)
Sets Dependent Concept.
Parameters:
concept - Sets Dependent Concept.
public java.lang.String getAttributeSlotSize()
Returns the number of Attribute Slots.
Returns:
Returns the number of Attribute Slots.
public void setAttributeSlotSize(java.lang.String size)
Sets the number of Attribute Slots.
Parameters:
size - Sets the number of Attribute Slots.
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 |
public Axiom()
Generates Axiom. (Constructor)
|
Method Detail |
public java.util.List getAxiomBodyList()
Gets all Axiom contents.
Returns:
Returns all Axiom contents.
public void addAxiomBody(AxiomBody axiomBody)
Adds the Axiom contents.
Parameters:
axiomBody - Specifies the Axiom contents to
add.
public void removeAxiomBody(AxiomBody axiomBody)
Deletes the Axiom contents.
Parameters:
axiomBody - Specify the Axiom contents to
delete.
public java.lang.String getAxiomName()
Gets Axiom Name.
Returns:
Returns Axiom Name.
public void setAxiomName(java.lang.String name)
Sets Axiom Name.
Parameters:
name - Sets Axiom Name.
public java.lang.String getParticipants()
Gets Participants.
Returns:
Returns Participants
public void setParticipants(java.lang.String part)
Sets Participants.
Parameters:
part - Sets Participants.
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 |
public AxiomBody()
Generates Axiom Body. (Constructor)
|
Method Detail |
public java.lang.String getBody()
Gets the constraints.
Returns:
Returns the constraints.
public void setBody(java.lang.String body)
Sets the constraints.
Parameters:
body - Sets the constraints.
public java.lang.String getCondition()
Gets Condition.
Returns:
Returns Condition.
public void setCondition(java.lang.String condition)
Sets Condition.
Parameters:
condition - Sets _condition.
public java.lang.String getUserUse()
Gets User Use.
Returns:
Returns User Use.
public void setUserUse(java.lang.String userUse)
Sets User Use.
Parameters:
userUse - Sets User Use.
public java.lang.String getAxiomBodyName()
Gets Axiom Body Name.
Returns:
Returns Axiom Body Name.
public void setAxiomBodyName(java.lang.String bodyName)
Sets Axiom Body Name.
Parameters:
bodyName - Sets Axiom Body Name.
public class BasicConcept
extends Concept
Basic Concept Class.
This class defines Basic Concept.
|
Constructor Detail |
public BasicConcept(Ontology ont)
Generates Basic Concept. (Constructor)
Parameters:
ont - Affiliated Ontology
public class BasicConceptInstance
extends ConceptInstance
Basic Concept Instance Class.
This class defines Basic Concept Instance.
|
Constructor Detail |
public BasicConceptInstance(Model model)
Generates Basic Concept Instance. (Constructor)
Parameters:
model - Specifies Model.
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
public BooleanValueConcept(Ontology ont,
java.lang.String value)
Generates Boolean Value Concept. (Constructor)
Parameters:
ont - Affiliated Ontology
value - Specifies Value.
|
Method Detail |
public void setValue(java.lang.String val)
throws InvalidValueException
Sets Value.
Overrides:
setValue in class ValueConcept
Parameters:
val - Sets Value.
Throws:
public boolean isValid()
Specifies the boolean if Value is valid
Overrides:
isValid in class ValueConcept
Returns:
Returns the boolean if Value is valid.
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.
public class Concept
extends HozoOntologyObject
Concept Class.
Concept Class.
This class defines Concept.
|
Method Detail |
public void setLabel(java.lang.String label)
Sets Hozo Object Label. (Override)
Overrides:
setLabel in class HozoObject
Parameters:
label - Sets Hozo Object Label.
public boolean isRootConcept()
Gets the boolean if the concept is Root Concept.
Returns:
Returns "True" if it is Root Concept, otherwise returns
"False".
public java.lang.String getRootPath()
Gets the concept path in string.
Returns:
Returns the concept path (string, "/" delimiter) up to the root.
public void removeSlot(Slot slot)
Deletes Slot.
Parameters:
slot - Sets Slot to delete.
public void addSlot(Slot slot)
Adds Slot.
Parameters:
slot - Sets Slot to add.
public Slot getSlot(int index)
Get Slot.
Parameters:
index - Slot偺僀儞僨僢僋僗傪愝掕丅
Returns:
Returns specified Slot.
public int getSlotSize()
Gets the number of Slots.
Returns:
Returns the number of Slots.
public java.util.List getSlotList()
Gets Slot List.
Returns:
Returns Slot List.
public java.util.List getPartOfSlotList()
Gets the part of Slot List.
Returns:
Returns the part of Slot List.
public void removeRelation(Relation relation)
Deletes Relation.
Parameters:
relation - Sets Relation to delete.
public void addRelation(Relation relation)
Adds Relation.
Parameters:
relation - Sets Relation to add.
public java.util.List getRelationList()
Gets Relation List.
Returns:
Returns Relation List.
public Concept getUpperConcept()
Gets Super Concept.
Returns:
Returns Super Concept.
public void setUpperConcept(Concept concept)
Sets Super Concept.
Parameters:
concept - Super Concept.
public int getType()
Gets Concept Type.
Returns:
Returns Concept Type.
protected void setType(int type)
Sets Concept Type.
Parameters:
type - Sets Concept Type.
public boolean hasSlots()
Returns the boolean if Concept has Slot.
Returns:
Returns "True" if Concept has Slot.
public boolean hasRelations()
Returns the boolean if Concept has Relations.
Returns:
Returns "True" if Concept has Relations.
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.
public java.util.List getLowerConcepts()
Gets Sub-Concept.
Returns:
Returns the inherited Sub-Concept.
public java.util.List getAllLowerConcepts()
Gets all Sub-Concepts.
Returns:
Returns all inherited Sub-Concepts.
public boolean hasLowerConcept()
Gets the boolean if Concept has Sub-Concept.
Returns:
Returns "True" if Concept has Sub-Concept.
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.
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.
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.
public java.util.List getRoleConceptList()
Gets Role Concept List.
Returns:
Returns Role Concept List.
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.
public java.util.List getAncestorConceptList(boolean isOrdered)
Gets all Super Concepts.
Parameters:
isOrdered - Specifies if the order is
ascending.
Returns:
Returns Super Concept List.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
public java.util.List getExtendedUpperConcepts()
Gets multi-inherited Super Concept list.
Returns:
Returns multi-inherited Super Concept list.
public java.util.List getAllExtendedUpperConcepts()
Gets all multi-inherited Super Concepts.
Returns:
Returns all multi-inherited Super Concepts.
public void addExtendedUpperConcept(Concept concept)
Adds a multi-inherited Super Concept.
Parameters:
concept - Specifies the multi-inherited Super Concept.
public void removeExtendedUpperConcept(Concept concept)
Deletes the multi-inherited Super Concept.
Parameters:
concept - Specifies the multi-inherited Super Concept.
public boolean isExtendedUpperConcept(Concept concept)
Gets the boolean if Concept is a multi-inherited Super Concept.
Parameters:
concept - Specifies Concept.
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.
public java.util.List getExtendedLowerConcepts()
Gets the multi-inherited Sub-Concept list.
Returns:
Returns the multi-inherited Sub-Concept list.
public java.util.List getAllExtendedLowerConcepts()
Gets all multi-inherited Sub-Concepts.
Returns:
Returns all multi-inherited Sub-Concepts.
public void addExtendedLowerConcept(Concept concept)
Adds a multi-inherited Sub-Concept.
Parameters:
concept - Specifies the multi-inherited
Sub-Concept.
public void removeExtendedLowerConcept(Concept concept)
Deletes the multi-inherited Sub-Concept.
Parameters:
concept - Specifies the multi-inherited Sub-Concept.
public boolean isExtendedLowerConcept(Concept concept)
Gets the boolean if Concept is a multi-inherited Sub-Concept.
Parameters:
concept - Specifies Concept.
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.
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).
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).
public java.util.List getTerms()
Gets the list in the other name.
Returns:
Returns the list in the other name.
public void addTerm(Term term)
Adds the other name.
Parameters:
term - Specifies the other name.
public void removeTerm(Term term)
Deletes the other name.
Parameters:
term - Specifies the other name.
public boolean hasTerms()
Gets the boolean if it has another name.
Returns:
Returns the boolen if it has another name.
protected static Concept getConcept(Concept concept)
Gets Concept. *For Role Holder or p-operator.
Parameters:
Specifies Concept.
Returns:
Returns Concept.
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.
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.
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.
public class ConceptInstance
extends HozoModelObject
Concept Instance Class.
This Class defines Concept Instance.
|
Constructor Detail |
public ConceptInstance(Model model)
Creates Concept Instance (Constructor)
Parameters:
model - Specifies Model.
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 |
public void removeSlotInstance(SlotInstance slotInstance)
Deletes Slot Instance.
Parameters:
slotinstance - Sets Slot Instance to delete.
public void addSlotInstance(SlotInstance slotIns)
Adds Slot Instance.
Parameters:
slotIns - Sets Slot Instance to add.
public SlotInstance getSlotInstance(int index)
Gets Slot Instance.
Parameters:
index - Sets Slot Instance Index.
Returns:
Returns the specified Slot Instance.
public int getSlotInstanceSize()
Gets the number of Slot Instances.
Returns:
Returns the number of Slot Instances.
public java.util.List getSlotInstanceList()
Gets Slot Instance List.
Returns:
Returns Slot Instance List.
public void removeRelationInstance(RelationInstance relationInstance)
Deletes Relation Instance.
Parameters:
relationInstance - Sets Relation Instance to delete.
public void addRelationInstance(RelationInstance relationInstance)
Adds Relation Instance.
Parameters:
relationInstance - Sets Relation Instance.
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.
public boolean hasSlotInstances()
Returns the boolean if it has Slot Instance.
Returns:
Returns "True" if it has Slot Instance.
public Concept getReferenceConcept()
Gets Reference Concept.
Returns:
Returns Reference Concept.
public void setReferenceConcept(Concept concept)
Sets Reference Concept.
Parameters:
concept - Sets Reference Concept.
public Model getModel()
Gets the affiliated Model.
Overrides:
getModel in class HozoModelObject
Returns:
Returns the affiliated Model.
public void setModel(Model model)
Sets the affiliated Model.
Parameters:
model - Sets the affiliated Model.
public void removeRoleConceptInstance(RoleConceptInstance roleConceptIns)
Deletes Role Concept Instance.
Parameters:
roleConceptIns - Sets Role Concept Instance to delete.
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.
public java.util.List getRoleConceptInstanceList()
Gets Role Concept Instance List.
Returns:
Returns the Role Concept Instance List.
public boolean hasRelationInstances()
Returns the boolean if it has Relation Instance.
Returns:
Returns "True" if it has Relation Instance.
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.
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.
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.
public interface ConceptInstanceModel
Concept Instance Model Class.
This class defines Concept Instance Model.
|
Method Detail |
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.
public interface ConceptModel
Concept Model Class
This class defines Concept Model.
|
Method Detail |
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.
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.
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.
Concept addSubConcept(Concept concept)
Adds Sub-Concept.
Parameters:
concept - Specifies Concept.
Returns:
Returns Sub-Concept added.
java.lang.String[] getSuperClassLabels()
Gets Super Class Labels in string.
Returns:
Retursn Super Class Labels in string.
java.util.List getSuperClassList()
Gets Super Class List in list.
Returns:
Returns Super Class List in list.
java.lang.String[] getSubClassLabels()
Gets Sub Class List in string.
Returns:
ReturnsSub Class List in string.
java.util.List getSubClassList()
Gets Sub Class List in list.
Returns:
Returns Sub Class List in list.
public class DateValueConcept
extends ValueConcept
Date Value Concept Class.
This
class defines Date Value Concept.
|
Constructor Detail |
public DateValueConcept(Ontology ont)
Creates Date Value Concept. (Constructor)
Parameters:
ont - Affiliated Ontology
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:
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.
public class DifferentRelationConcept
extends RelationConcept
Different Relation Concept Class.
This class defines differentRelation Concept.
|
Constructor Detail |
public DifferentRelationConcept(Ontology ont)
Creates differentRelation Concept. (Constructor)
Parameters:
ont - Affiliated Ontology
public class EqualRelationConcept
extends RelationConcept
Equal Relation Concept Class.
This class defines equalRelation Concept.
|
Constructor Detail |
public EqualRelationConcept(Ontology ont)
Creates equalRelation Concept. (Constructor)
Parameters:
ont - Affiliated Ontology
public class ExportHozoToOWL
extends java.lang.Object
Hozo OWL output Class.
|
Constructor Detail |
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.
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 |
public java.lang.String exportOWL(int type)
Outputs the OWL format data.
Parameters:
type - Specifies the output type.
Returns:
Returns the OWL format data.
public java.lang.String exportOWL()
Outputs the OWL format data.
Returns:
Returns the OWL format data.
public Ontology getOntology()
Gets Ontology.
Returns:
Returns Ontology.
public void setOntology(Ontology ontology)
Sets Ontology.
Parameters:
ontology - Sets Ontology
public java.lang.String getEncording()
Gets Encode.
Returns:
Returns Encode.
public void setEncording(java.lang.String encoding)
Sets Encode.
Parameters:
encoding - Sets Encode.
public int getExportType()
Gets the output type.
Returns:
Returns the output type.
public void setExportType(int type)
Sets the output type.
Parameters:
type - Sets the output type.
public static java.lang.String replaceOWLEscapeChar(java.lang.String str)
Replace OWL Escape Character.
Parameters:
str - Sets the target string.
public static java.lang.String escapeFullSizeChar(java.lang.String str)
Replaces Escape Character (Uppercase character -> Lower case character)
Parameters:
str - Sets the target string.
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.
public class FileUtility
extends java.lang.Object
File Processing Utility Class.
This class defines the File I/O process.
|
Method Detail |
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.
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.
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.
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.
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.
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.
public class FloatValueConcept
extends ValueConcept
Flat Value Concept Class.
This class defines the FloatValue Concept.
|
Constructor Detail |
public FloatValueConcept(Ontology ont)
Creates the Float Value Concept. (Constructor)
Parameters:
ont - Affliated Ontology
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:
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.
public class Glossary
extends java.lang.Object
Glossary Type class
This class defines Glossary Type used by Hozo.
|
Constructor Detail |
public Glossary()
Constructor
public Glossary(java.lang.String name)
Constructor
Parameters:
name - Specifies Label Name.
|
Method Detail |
public java.lang.String getName()
Gets Label Name
Returns:
Returns Label Name.
public void setName(java.lang.String name)
Sets Label Name.
Parameters:
name - Specifies Label Name.
public java.lang.String getUrl()
Gets URL.
Returns:
Returns URL.
public void setUrl(java.lang.String url)
Sets URL.
Parameters:
url - Specifies URL.
public java.lang.String getLanguage()
Gets Language.
Returns:
Returns Language.
public void setLanguage(java.lang.String lang)
Sets Language.
Parameters:
lang - Specifies Language.
public java.lang.String getSymbol()
Gets Symbol.
Returns:
_symbol
public void setSymbol(java.lang.String symbol)
Sets Symbol.
Parameters:
symbol - Specifies Symbol.
public java.lang.String getDescription()
Gets Description.
Returns:
Returns Description.
public void setDescription(java.lang.String description)
Sets Description.
Parameters:
description - Specifies Description.
public class GraphicManager
extends java.lang.Object
Graphic Data Management Class.
Manages Graphic Object.
|
Method Detail |
public GraphicObject getGraphicObject(java.lang.String key)
Gets Graphic Object.
Parameters:
key - Specifies Key.
Returns:
Returns Graphic Object.
public void putGraphicObject(java.lang.String key,
GraphicObject gobj)
Sets Graphic Object.
Parameters:
key - Specifies Key.
gobj - Specifies Graphic Object.
public java.util.Collection getAllGraphicObjects()
Gets all Graphic Objects.
Returns:
Returns the Graphic Object collection.
public void removeGraphicObject(java.lang.String key)
Deletes Graphic Object.
Parameters:
key - Specifies Key.
public class GraphicObject
extends java.lang.Object
Graphic Object Class.
Maintains the Graphic Object data of the Hozo
object.
|
Constructor Detail |
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.
public class HozoInternalException
extends java.lang.Exception
Exception Class for internal error.
|
Constructor Detail |
public HozoInternalException()
Constructor
public HozoInternalException(java.lang.String mes)
Constructor
Parameters:
mes - Specifies Error Message.
public abstract class HozoModelObject
extends HozoObject
Hozo Model Object Class.
This class defines Model Object that Hozo uses.
|
Constructor Detail |
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.
public Ontology getReferenceOntology()
Gets Ontology to refer.
Returns:
Returns Ontology to refer.
public void setReferenceOntology(Ontology ontology)
Sets Ontology to refer.
Parameters:
ontology - Sets Ontology to refer.
public HozoOntologyObject getOntologyObject()
Gets Ontology Object to refer.
Returns:
Returns Ontology Object to refer.
public void setOntologyObject(HozoOntologyObject ontologyObject)
Sets Ontology Object to refer.
Parameters:
ontologyObject - Sets Ontology Object to refer.
protected void removeInstanceOfRelation()
Deletes Instance Relation.
public GraphicObject getGraphicObject()
Gets Graphic Object.
Returns:
Returns Graphic Object.
public void setGraphicObject(GraphicObject gobj)
Sets Graphic Object.
Parameters:
gobj - Specifies Graphic Object.
public GraphicObject createGraphicObject()
Creates Graphic Object.
Returns:
Returns Graphic Object created.
public abstract class HozoObject
extends java.lang.Object
Hozo Object.
This class defines the Object that Hozo uses.
|
Constructor Detail |
public HozoObject()
Creates Hozo Object. (Constructor)
|
Method Detail |
public java.lang.String getId()
Gets Hozo Object ID.
Returns:
Returns Hozo Object ID.
public java.lang.String getObjectId()
Gets Hozo Object ID
Returns:
Returns Hozo Object ID
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).
public void setId(java.lang.String id)
Sets Hozo Object ID.
Parameters:
id - Sets Hozo Object ID.
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.
public int getIndex()
Gets Hozo Object Index.
Returns:
Returns Hozo Object Index.
public void setIndex(int index)
Sets Hozo Object Index.
Parameters:
index - Sets Hozo Object Index.
public abstract class HozoOntologyObject
extends HozoObject
Hozo Ontology Object.
This class defines Hozon Ontology Object.
|
Constructor Detail |
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.
public Axiom getAxiom()
Gets Axiom.
Returns:
Return Axiom.
public void setAxiom(Axiom axiom)
Sets Axiom.
Parameters:
axiom - Sets Axiom.
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
public boolean isReferenceOntologyObject()
Gets the boolean if it is Reference Ontology Object.
Returns:
Returns the boolean if it is Reference Ontology Object.
public class HZBasicConcept
extends BasicConcept
Basic Concept Usage Class.
This class defines Basic Concept Usage.
|
Constructor Detail |
public HZBasicConcept(Ontology ont)
Creates Basic Concept. (Constructor)
Parameters:
ont - Specifies affiliated Ontology.
public class HZBasicConceptInstance
extends BasicConceptInstance
implements ConceptInstanceModel
Basic Concept Instance Usage Class.
This class defines Basic Concept Instance
Usage.
|
Constructor Detail |
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.
public class HZFileUtilityextends java.lang.Object
Extended File
Processing Utility Class.
This class defines the file I/O process.
Author:
M. Ohta
|
Method Detail |
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.
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.
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.
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.
public static java.lang.String getFileName(java.lang.String filepath)
Gets File Name.
Parameters:
filepath - Specifies
the file path
Returns:
Returns File Name.
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.
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.
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.
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.
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.
public static java.sql.Timestamp getTimestamp(java.lang.String strTime)
Converts the string to time.
Parameters:
strTime - Specifies
the time string.
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.
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.
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.
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.
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.
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.
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.
public class HZGraphicManagerextends GraphicManager
Extended Graphic
Data Management Class.
奼挘斉偺昤夋忣曬娗棟Class
Defines Graphic Object.
|
Method Detail |
public void setAllGraphicObjectsSelceted(boolean isSelected)
Specifies that all Graphic Objects
have been selected.
Parameters:
isSelected -
Specifies that Graphic Objects have been selected.
public java.util.List getSelcetedGraphicObjects()
Gets selected Graphic Objects.
Returns:
Returns the list of selected Graphic
Objects.
public boolean hasSelcetedGraphicObjects()
Returns the boolean if there are
selected Graphic Objects.
Returns:
Returns the truth value if there are
selected Graphic Objects.
public java.awt.Point getEndPoint()
Gets End Point.
Returns:
Returns End Point
public class HZGraphicObjectextends GraphicObject
Extended Graphic
Object Class.
Maintains Graphic Data of Hozo Object.
Author:
ohta
|
Constructor Detail |
public HZGraphicObject()
Creates Graphic Object. (Constructor)
public HZGraphicObject(double dx, double dy)
Creates Graphic Object. (Constructor)
Parameters:
dx - Specifies
X-coordinate.
dy - Specifies
Y-coordinate.
|
Method Detail |
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).
public void setPosition(java.awt.Point p)
Specifies Position.
Parameters:
p - Specifies
Position (Point Class).
public boolean isSelected()
Specifies if Graphic Object has been
selected.
Returns:
Returns the boolean if Graphic Object
has been selected.
public void setSelected(boolean isSelected)
Sets Graphic Object being selected.
Parameters:
isSelected -
Specifies Graphic Object being selected.
public boolean isOpened()
Gets the boolean if Graphic Object has
been opened.
Returns:
Returns the boolean if Graphic Object
has been opened.
public void setOpened(boolean isOpened)
Sets Graphic Object being opened.
Parameters:
isOpened - Specifies
Graphic Object being opened.
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.
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.
public int getCurBoundsWidth()
Gets Width of the area where Graphic
Object is drawn.
Returns:
Returns Width of the area where
Graphic Object is drawn.
public int getCurBoundsHeight()
Gets Height of the area where Graphic
Object is drawn.
Returns:
Returns Height of the area where
Graphic Object is drawn.
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.
public class HZModelextends Model
Instance Model
Usage Class.
This class defines Instance Model Usage.
Author:
ohta
|
Constructor Detail |
public HZModel()
Creates Model. (Constructor)
|
Method Detail |
public void load()
Loads Model.
Loads the Model data from the file specified by the setSource (String) method of this class.
Overrides:
public void load(int paser)
Loads Model.
Loads the Model data from the file specified by the setSource (String) method of this class.
Overrides:
Parameters:
paser[TK1] -
Specifies the parser.
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.
public void save()
Saves Model.
Overwrites and saves the Model data in the file specified by the setSource (String) method of this class.
Overrides:
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:
Parameters:
encoding - Sets the
character encoding.
public void initModel()
Initializes Model
Overrides:
public void reentryHozoModelObject(HozoModelObject hmObj)
Re-enters Model Object.
Parameters:
hmObj - Specifies
Model Object.
public java.util.List getSelectedModelObjectList()
Returns Selected Model Object List.
Returns:
Returns Selected Model Object List.
public void addHozoModelObject(HozoModelObject hmObj)
Adds Model Object.
Identifies Model Object and executes the Add method in Model Class.
Parameters:
hmObj - Specifies
Model Object.
public void removeHozoModelObject(HozoModelObject hmObj)
Deletes Model Object.
Identifies Model Object and executes the Delete method in Model Class.
Parameters:
hmObj - Specifies
Model Object.
public void addConceptInstance(ConceptInstance conceptInstance)
Adds Concept Instance to Model.
(Override)
Overrides:
addConceptInstance in class Model
Parameters:
conceptInstance -
Sets Concept Instance to add.
public void addSlotInstance(SlotInstance slotInstance)
Adds Slot Instance to Model. (Override)
Overrides:
addSlotInstance in class Model
Parameters:
slotInstance - Sets
Slot Instance to add.
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.
public void removeConceptInstance(ConceptInstance conceptInstance)
Deletes Concept Instance from Model.
(Override)
Overrides:
removeConceptInstance in class Model
Parameters:
conceptInstance - Specifies Concept
Instance to delete.
public void removeSlotInstance(SlotInstance slotInstance)
Deletes Slot Instance from Model.
(Override)
Overrides:
removeSlotInstance in class Model
Parameters:
slotInstance - Specifies
Slot Instance to delete.
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.
public void addReferenceOntology(Ontology ontology)
Adds Reference Ontology to Model.
(Override)
Overrides:
addReferenceOntology in class Model
Parameters:
ontology - Sets
Reference Ontology to add.
public void removeReferenceOntology(Ontology ontology)
Deletes Reference Ontology from Model.
(Override)
Overrides:
removeReferenceOntology in class Model
Parameters:
ontology - Sets Reference Ontology
to delete.
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.
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.
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 ConceptInstance乮RoleConceptInstance乯
丂丂"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.
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.
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.
public boolean isLoaded()
Gets the boolean if the source file
has been loaded.
Returns:
Returns the boolean if the source file
has been loaded.
public void setLoaded(boolean isLoaded)
Sets the boolean if the source file is
loaded.
Parameters:
isLoaded - Specifies
the source file being loaded.
public class HZModelUtilityextends 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 |
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
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
public void saveModelData(Model model) throws java.lang.Exception
Saves XML Model Data.
Parameters:
model - Specifies
Model.
Throws:
java.lang.Exception
public java.lang.String getEncoding()
Gets Encoding to save the model data.
Returns:
Returns Enconding.
public void setEncoding(java.lang.String encoding)
Sets Encoding to save the model data.
Parameters:
encoding - Sets Enconding.
public int getSaveMode()
Gets Save Mode.
Returns:
Returns Save Mode.
public void setSaveMode(int mode)
Sets Save Mode.
Parameters:
mode - Specifies Save
Mode.
public int getLoadMode()
Gets Load Mode.
Returns:
Returns Load Mode.
public void setLoadMode(int mode)
Sets Load Mode.
Parameters:
mode - Specifies Load
Mode.
public class HZModelUtilitySaxextends 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 |
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
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
public void saveModelData(Model model) throws java.lang.Exception
Saves XML Model Data.
Parameters:
model - Specifies
Model.
Throws:
java.lang.Exception
public java.lang.String getEncoding()
Gets Encoding to save the model data.
Returns:
Returns Encoding.
public void setEncoding(java.lang.String encoding)
Sets Encoding to save the model data.
Parameters:
encoding - Sets
Encoding.
public int getSaveMode()
Gets Save Mode.
Returns:
Returns Save Mode.
public void setSaveMode(int mode)
Sets Save Mode.
Parameters:
mode - Specifies Save
Mode.
public int getLoadMode()
Gets Load Mode.
Returns:
Returns Load Mode.
public void setLoadMode(int mode)
Sets Load Mode.
Parameters:
mode - Specifies Load
Mode.
public class HZOntologyextends Ontology
Ontology Usage Class.
This class defines Ontology Usage.
|
Method Detail |
public void initOntology()
Initialization
Overrides:
initOntology in class Ontology
public void load()
Loads Ontology.
Loads the Ontology data from the file specified by the method setSource (String) in this class.
Overrides:
public void load(int paser)
Loads Ontology.
Loads the Ontology data from the file specified by the method setSource (String) in this class.
Overrides:
Parameters:
paser - Specifies the
parser.
public void load(java.io.InputStream is, int paser)
Loads Ontology.
Loads the Ontology data from the specified input stream.
Overrides:
Parameters:
is - Specifies the
input stream.
paser[TK3] - Specifies the parser.
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.
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.
public void save()
Saves Ontology.
Overwrites and saves the model data in the file specified by the method setSource (String) of this class.
Overrides:
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.
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:
Parameters:
encoding - Sets the
character encoding.
public void reentryHozoOntologyObject(HozoOntologyObject hoObj)
Re-Enter Ontology Object.
Parameters:
hoObj - Specifies
Ontology Object.
public void addHozoOntologyObject(HozoOntologyObject hoObj)
Adds Ontology Objects.
Identifies Ontology Object and executes the Add method in Ontology Class.
Parameters:
hoObj - Specifies Ontology
Object.
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.
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).
public java.util.List getRConceptRelationList(int type)
Gets Relation Concept List.
Parameters:
type - Specifies the
Concept type.
Returns:
Returns Relation Concept List.
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.
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.
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.
public static java.lang.String getSlotConstraintId(Slot slot)
Gets Slot Constraint ID.
Returns:
Returns the boolean if Graphic Object
has Constraint Concept.
public java.lang.String getAuthorDate()
Gets Author Date.
Returns:
Returns Author Date.
public void setAuthorDate(java.lang.String date)
Sets Author Date.
Parameters:
date - Specifies
Author Date.
public java.lang.String getAuthor()
Gets Author.
Returns:
Returns Author.
public void setAuthor(java.lang.String author)
Sets Author.
Parameters:
author - Specifies
Author.
public java.lang.String getUpdateDate()
Gets Update Date.
Returns:
Returns Update Date.
public void setUpdateDate(java.lang.String date)
Sets Update Date.
Parameters:
date - Specifies
Update Date.
public java.lang.String getUpdater()
Gets Updater.
Returns:
Returns Updater.
public void setUpdater(java.lang.String updater)
Sets Updater.
Parameters:
updater - Specifies
Updater.
public java.lang.String getOntologyName()
Gets Ontology Name
Returns:
Returns Ontology Name
public void setOntologyName(java.lang.String name)
Sets Ontology Name.
Parameters:
name - Specifies
Ontology Name.
public java.lang.String getProjectName()
Gets Project Name.
Returns:
Returns Project Name.
public void setProjectName(java.lang.String name)
Sets Project Name.
Parameters:
name - Specifies
Project Name.
public java.lang.String getDescription()
Gets Description.
Returns:
Returns Description.
public void setDescription(java.lang.String description)
Sets Project Name.
Parameters:
description -
Specified Project Name.
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:丒Whole丂Concept丂(WholeConcept): "2" (=WholeConcept.CONCEPT_TYPE)
丒Relation丂Concept (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傪栠偟傑偡丅
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.
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.
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.
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.
public boolean isLoaded()
Gets the boolean if the source file is
loaded.
Returns:
Returns the boolean if the source file
is loaded.
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.
public void importOntology(HZOntology refOntology)
Imports all Concepts of Ontology
specified.
Parameters:
refOntology - Specifies Reference Ontology
to import.
HZOntologyUtility
public class HZOntologyUtilityextends java.lang.Object
Extended Ontology
Process Utility Class.
This class defines the Ontology I/O process.
|
Method Detail |
public void saveOntologyData(Ontology ontology) throws java.lang.Exception
Parameters:
ontology - Ontology
Throws:
java.lang.Exception
public void saveOntologyData(Ontology ontology, boolean isProjectFile) throws java.lang.Exception
Parameters:
ontology - Ontology
isProjectFile - Specifies the boolean if
the file is a project file.
Throws:
java.lang.Exception
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
public void loadOntologyData(Ontology ontology) throws java.lang.Exception
Parameters:
ontology - Specifies
Ontology.
Throws:
java.lang.Exception
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
public void loadOntologyProperties(Ontology ontology) throws java.lang.Exception
Loads Ontology Properties.
Parameters:
ontology - Specifies
Ontology.
Throws:
java.lang.Exception
public java.lang.String getEncoding()
Gets Encoding to save the Ontology
data.
Returns:
Returns Encoding.
public void setEncoding(java.lang.String encoding)
Sets Encoding to save the Ontology
data.
Parameters:
encoding - Specifies
Encoding.
public class HZOntologyUtilitySaxextends java.lang.Object
Extended Ontology
Process Utility Class.
This class defines the Ontology I/O process.
|
Method Detail |
public void saveOntologyData(Ontology ontology) throws java.lang.Exception
Parameters:
ontology - Ontology
Throws:
java.lang.Exception
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
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
public void loadOntologyData(Ontology ontology) throws java.lang.Exception
Loads XML Concept Data.
Parameters:
ontology - Specifies
Ontology.
Throws:
java.lang.Exception
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
public void loadOntologyProperties(Ontology ontology) throws java.lang.Exception
Reads Ontology Properties.
Parameters:
ontology - Ontology
Throws:
java.lang.Exception
public java.lang.String getEncoding()
Gets Encoding to save the Ontology
data.
Returns:
Returns Encoding.
public void setEncoding(java.lang.String encoding)
Sets Encoding to save the Ontology
data.
Parameters:
encoding - Sets
Encoding.
public class HZRConceptRelationextends RConceptRelation
Relation Concept
Usage Class.
This class defines Relation Concept Usage.
|
Constructor Detail |
public HZRConceptRelation(Ontology ont)
Creates Concept Relation.
Parameters:
ont - Specifies the
affiliated Ontology.
public HZRConceptRelation(RelationConcept reCon)
Creates Concept Relation.
Parameters:
reCon - Specifies
Relation Concept.
|
Method Detail |
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.
public class HZRConceptRelationInstanceextends RConceptRelationInstance
Relation Concept
Instance Usage Class.
This class defines Relation Concept Instance Usage.
|
Constructor Detail |
public HZRConceptRelationInstance(Model model)
Creates Concept Relation Instance.
Parameters:
model - Specifies the
affiliated model.
|
Method Detail |
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.
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.
public interface HZReasoner
Hozo Reasoner
Interface.
This class defines the Hozon Reasoner.
|
Method Detail |
HZReasoner bindOntology(Ontology ontology)
Binds Ontology.
Parameters:
ontology - Specifies
Ontology.
Returns:
Returns Reasoner.
HZReasoner bindModel(Model model)
Binds Instance Model.
Parameters:
model - Specifies
Instance Model.
Returns:
Returns Reasoner.
ReasonerReport execute() throws HZReasonerException
Executes Reasoner.
Returns:
Returns Reasoner Result.
Throws:
public class HZReasonerExceptionextends java.lang.RuntimeException
Reasoner Error
Class.
|
Constructor Detail |
public HZReasonerException(java.lang.String msg)
Constructor.
Parameters:
msg - Specifies the
error message.
public HZReasonerException(java.lang.String msg, java.lang.Throwable cause)
Constructor.
Parameters:
msg - Specifies the
error message.
cause - Specifies the
error cause.
public class HZReasonerFactoryextends java.lang.Object
Reasoner
Generation Class.
|
Method Detail |
public static HZReasoner createReasoner(int type)
Creates Reasoner.
Parameters:
type - Specifies the
Reasoner type.
public class HZRelationConceptextends RelationConceptimplements ConceptModel, IsaTreeNodeModel
Relation Concept
Usage Class.
This class defines Relation Concept Usage.
|
Constructor Detail |
public HZRelationConcept(Ontology ont)
Creates Relation Concept.
(Constructor)
Parameters:
ont - Affiliated
Ontology
|
Method Detail |
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.
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.
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.
public Concept addSubConcept(Concept concept)
Adds Sub-Concept.
Specified by:
addSubConcept in interface ConceptModel
Parameters:
concept - Specifies
Sub-Concept.
Returns:
Returns Sub-Concept added.
public java.lang.String[] getSuperClassLabels()
Gets Parent Class List in string.
Specified by:
getSuperClassLabels in interface ConceptModel
Returns:
Returns Parent Class List in string.
public java.util.List getSuperClassList()
Gets Parent Class List in list.
Specified by:
getSuperClassList in interface ConceptModel
Returns:
Returns Parent Class List in list.
public java.lang.String[] getSubClassLabels()
Gets Child Class List in string.
Specified by:
getSubClassLabels in interface ConceptModel
Returns:
Returns Parent Class List in string.
public java.util.List getSubClassList()
Gets Parent Class List in list.
Specified by:
getSubClassList in interface ConceptModel
Returns:
Returns Parent Class List in list.
public java.util.List children()
Gets Child Class List.
Specified by:
children in interface IsaTreeNodeModel
Returns:
Returns Child Class List.
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.
public int getChildCount()
Gets Child Count
Specified by:
getChildCount in interface IsaTreeNodeModel
Returns:
Returns Child Count.
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.
public HozoOntologyObject getParent()
Gets Parent Class.
Specified by:
getParent in interface IsaTreeNodeModel
Returns:
Returns Parent Class.
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.
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.
public class HZRoleConceptextends RoleConceptimplements ConceptModel, IsaTreeNodeModel
Role Concept Usage
Class
This class defines Role Concept Usage.
|
Constructor Detail |
public HZRoleConcept(Ontology ont)
Creates Role Concept. (Constructor)
Parameters:
ont - Specifies the
affiliated Ontology.
public HZRoleConcept(Ontology ont, java.lang.String name)
Creates Role Concept.
Parameters:
ont - Specifies the
affiliated Ontology.
name - Specifies Role
Name.
|
Method Detail |
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.
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.
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.
public Concept addSubConcept(Concept concept)
Adds Sub-Concept.
Specified by:
addSubConcept in interface ConceptModel
Parameters:
concept - Specifies
Sub-Concept
Returns:
Returns Sub-Concept added.
public java.lang.String[] getSuperClassLabels()
Gets Parent Class List in string.
Specified by:
getSuperClassLabels in interface ConceptModel
Returns:
Returns Parent Class List in string.
public java.util.List getSuperClassList()
Gets Parent Class List in list.
Specified by:
getSuperClassList in interface ConceptModel
Returns:
Returns Parent Class List in list.
public java.lang.String[] getSubClassLabels()
Gets Child Class List in string.
Specified by:
getSubClassLabels in interface ConceptModel
Returns:
Returns Child Class List in string.
public java.util.List getSubClassList()
Gets Child Class List in list.
Specified by:
getSubClassList in interface ConceptModel
Returns:
Returns Child Class List in list.
public java.util.List children()
Gets Child Class List.
Specified by:
children in interface IsaTreeNodeModel
Returns:
Returns Child Class List.
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.
public int getChildCount()
Gets Child Class Count.
Specified by:
getChildCount in interface IsaTreeNodeModel
Returns:
Returns Child Class Count.
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.
public HozoOntologyObject getParent()
Gets Parent Class.
Specified by:
getParent in interface IsaTreeNodeModel
Returns:
Returns Parent Class.
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.
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.
public class HZRoleConceptInstanceextends RoleConceptInstanceimplements ConceptInstanceModel
Role Concept
Instance Usage Class.
This class defines Role Concept Instance Usage.
|
Constructor Detail |
public HZRoleConceptInstance(Model model)
Creates Role Concept Instance.
(Constructor)
Parameters:
model - Specifies the
affiliated model.
public HZRoleConceptInstance(Model model, java.lang.String name)
Creates Role Concept Instance.
Parameters:
model - Specifies the
affiliated model.
name - Specifies Role
Name.
|
Method Detail |
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.
public class HZSearchReasonerextends java.lang.Objectimplements HZReasoner
Hozo Ontology
Search Class.
This class defines Hozo Ontology Search.
|
Method Detail |
public HZReasoner bindOntology(Ontology ontology)
Binds Ontology.
Specified by:
bindOntology in interface HZReasoner
Parameters:
ontology - Specifies
Ontology.
Returns:
Returns Hozo Ontology Verification
Reasoner.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
public ReasonerReport execute()
Executes the search.
Specified by:
execute in interface HZReasoner
Returns:
Returns the search result.
public void setSearchCondition(SearchCondition condition)
Sets Search Condition.
Parameters:
condition - Specifies
Search Condition.
public SearchCondition getSearchCondition()
Gets Search Condition.
Returns:
Returns the search result.
public class HZSlotextends Slotimplements SlotModel
Slot Usage Class.
This class defines Slot Usage.Note) This class has not inherited Concept Class.
Author:
M. Ohta
|
Constructor Detail |
protected HZSlot(Ontology ont)
Creates Slot. (Constructor)
Parameters:
ont - Affiliated
Ontology
public HZSlot(Concept concept)
Creates Slot. When Slot is created,
Role Concept and Role Holder are also created.
Parameters:
concept - Dependent
Concept
public HZSlot(Slot slot)
Creates Slot. In this case, Dependent
Concept is Role Concept of Slot.
Parameters:
slot - Slot
|
Method Detail |
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
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.
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.
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.
public java.util.List getSuperSlotList()
Gets Super Slot List in list.
Specified by:
getSuperSlotList in interface SlotModel
Returns:
Returns Super Slot List in list.
public java.util.List getSubSlotList()
Gets Sub Slot List in list.
Specified by:
getSubSlotList in interface SlotModel
Returns:
Returns Sub Slot List in list.
public class HZSlotInstanceextends SlotInstanceimplements SlotInstanceModel
Slot Instance
Usage Class.
This class defines Slot Instance Usage.
Note) This class did not inherit Concept Class.
|
Constructor Detail |
public HZSlotInstance(Model model)
Creates Slot Instance. (Constructor)
Parameters:
model - Specifies the
affiliated Model.
public HZSlotInstance(ConceptInstance conceptIns)
Creates Slot. (Constructor) When Slot is created, Role Concept
Instance is also created.
Parameters:
conceptIns -
Specifies Dependent Concept.
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 |
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.
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.
public class HZTransitionReasonerextends java.lang.Objectimplements HZReasoner
Hozo Ontology
Search Class.
This class defines Hozo Ontology Search.
|
Method Detail |
public HZReasoner bindOntology(Ontology ontology)
Binds Ontology.
Specified by:
bindOntology in interface HZReasoner
Parameters:
ontology - Specifies
Ontology.
Returns:
Returns Hozo Ontology Verification
Reasoner.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
public static TransitionReport getReferenceConceptsByLabel(Ontology ontology, java.lang.String label, boolean isDetail)
Searches for Reference Role Concept.
Parameters:
- Specifies Ontology.
ontology
label - Specifies the Basic
Concept label.
isDetail - Specifies to search for
details.
Returns:
Returns the search result report.
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.
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.
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.
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.
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.
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.
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.
protected static ReasonerResult getPlayableConceptInResult(ReasonerResult result)
Searches for Class Constraint Concept.
Parameters:
result - Specifies
the search result.
Returns:
Returns the search result.
public static TransitionReport getPlayableConceptInReport(TransitionReport report)
Searches for Class Constraint Concept.
Parameters:
report - Specifies the search
result report.
Returns:
Returns the search result report.
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.
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.
public static TransitionReport getPlayingRoleConcept(RoleHolder roleHolder)
Searches for Playing Role Concept.
Parameters:
roleHolder - Specifies Role Holder.
Returns:
Returns the search result.
protected static ReasonerResult getPlayingRoleConceptInResult(ReasonerResult result)
Searches for Playing Role Concept.
Parameters:
result - Specifies
the search result.
Returns:
Returns the search result.
public static TransitionReport getPlayingRoleConceptInReport(TransitionReport report)
Searches for Playing Role Concept.
Parameters:
report - Specifies
the search result report.
Returns:
Returns the search result report.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
public TransitionReport execute()
Executes the search.
Specified by:
execute in interface HZReasoner
Returns:
Returns the search result.
public int getMaxTransitionSize()
Gets Max Transition Size.
Returns:
Returns Max Transition Size.
public void setMaxTransitionSize(int size)
Sets Max Transition Size.
Parameters:
size - Specifies Max Transition
Size.
public class HZValidationReasonerextends java.lang.Objectimplements HZReasoner
Hozo Ontology
Verification Class.
This class defines Hozo Ontology Verification.
|
Method Detail |
public HZReasoner bindOntology(Ontology ontology)
Binds Ontology.
Specified by:
bindOntology in interface HZReasoner
Parameters:
ontology - Specifies
Ontology.
Returns:
Returns Hozo Ontology Verification
Reasoner.
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.
public ReasonerReport execute()
Executes Reasoner.
Specified by:
execute in interface HZReasoner
Returns:
Returns the Reasoner result report.
public ReasonerReport checkOverlappingLabel(Ontology ont)
Checks for duplicated Concept names.
Parameters:
ont - Specifies Ontology.
Returns:
Returns the Reasoner result report.
public ReasonerReport checkConsistencyOfIsaRelation(Ontology ont)
Checks for Consistency Of is-a
Relation.
Parameters:
ont - Specifies Ontology.
Returns:
Returns the Reasoner result report.
public ReasonerReport checkOverlappingRoleName(Ontology ont)
Checks for Overlapping Role Names.
Parameters:
ont - Specifies Ontology.
Returns:
Returns the Reasoner result report.
public ReasonerReport checkConsistencyOfCardinality(Ontology ont)
Checks for Consistency Of Cardinality.
Parameters:
ont - Specifies Ontology.
Returns:
Returns the Reasoner result report.
public ReasonerReport checkConsistencyOfSlotInheritance(Ontology ont)
Checks for Consistency Of Slot
Inheritance.
Parameters:
ont - Specifies Ontology.
Returns:
Returns the Reasoner result report.
public ReasonerReport checkConsistencyOfClassConstraint(Ontology ont)
Checks for Consistency Of Class
Constraint.
Parameters:
ont - Specifies Ontology.
Returns:
Returns the Reasoner result report.
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.
public ReasonerReport checkLinkCountOfRCRelation(Ontology ont)
Checks for Link Count Of RC Relation.
Parameters:
ont - Specifies Ontology.
Returns:
Returns the Reasoner result report.
public ReasonerReport checkClassConstraintOfRCRelation(Ontology ont)
Checks for Class Constraint Of RC
Relation.
Parameters:
ont - Specifies Ontology.
Returns:
Returns the Reasoner result report.
public ReasonerReport checkInvalidValueForDatatype(Ontology ont)
Checks for Invalid Value For Datatype.
Parameters:
ont - Specifies Ontology.
Returns:
Returns the Reasoner result report.
public ReasonerReport checkBasicRelationConceptRelations(Ontology ont)
Checks for Basic Relation Concept
Relation.
Parameters:
ont - Specifies Ontology.
Returns:
Returns the Reasoner result report.
public ReasonerReport checkAnyConcept(Ontology ont)
Checks for Any Concept.
Parameters:
ont - Specifies Ontology.
Returns:
Returns the Reasoner result report.
public ReasonerReport checkInstanceModel()
Checks for Instance Model.
Returns:
Returns the Reasoner result report.
public class HZWholeConceptextends WholeConceptimplements ConceptModel, IsaTreeNodeModel
Whole Concept
Usage Class.
This class defines Whole Concept Usage.
|
Constructor Detail |
public HZWholeConcept(Ontology ont)
Creates Whole Concept. (Constructor)
Parameters:
ont - Affiliated Ontology
|
Method Detail |
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.
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.
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.
public Concept addSubConcept(Concept concept)
Adds Sub-Concept.
Specified by:
addSubConcept in interface ConceptModel
Parameters:
concept - Specifies Sub-Concept.
Returns:
Returns Sub-Concept added.
public java.lang.String[] getSuperClassLabels()
Gets Parent Class List in string.
Specified by:
getSuperClassLabels in interface ConceptModel
Returns:
Returns Parent Class List in string.
public java.util.List getSuperClassList()
Gets Parent Class List in list.
Specified by:
getSuperClassList in interface ConceptModel
Returns:
Returns Parent Class List in list.
public java.lang.String[] getSubClassLabels()
Gets Child Class List in string.
Specified by:
getSubClassLabels in interface ConceptModel
Returns:
Returns Child Class List in string.
public java.util.List getSubClassList()
Gets Child Class List in list.
Specified by:
getSubClassList in interface ConceptModel
Returns:
Returns Child Class List in list.
public java.util.List children()
Gets Child Class List.
Specified by:
children in interface IsaTreeNodeModel
Returns:
Returns Child Class List.
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.
public int getChildCount()
Gets Child Class Count.
Specified by:
getChildCount in interface IsaTreeNodeModel
Returns:
Returns Child Class Count.
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.
public HozoOntologyObject getParent()
Gets Parent Class.
Specified by:
getParent in interface IsaTreeNodeModel
Returns:
Returns Parent Class.
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.
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.
public class IDManagerextends java.lang.Object
ID Management
Class.
This class defines ID used by the Ontology editor.
|
Method Detail |
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.
public int getObjcetLastIndex(int type)
Gets Object Last Index.
Parameters:
type - Specifies the Object
type.
public class InstanceOfRelationextends RelationInstance
Concept Instance
Relation Class.
This class defines Concept Instance Relation.
|
Constructor Detail |
public InstanceOfRelation(Model model)
Creates Concept Instance Relation.
(Constructor)
Parameters:
model - Affiliated
Model.
|
Method Detail |
public HozoOntologyObject getConceptObject()
Gets Concept (Ontology).
Returns:
Returns Concept (Ontology).
public void setConceptObject(HozoOntologyObject ontologyObject)
Sets Concept (Ontology).
Parameters:
ontologyObject - Sets Concept (Ontology).
public HozoModelObject getInstanceObject()
Gets Instance (Model).
Returns:
Returns Instance (Model).
public void setInstanceObject(HozoModelObject instance)
Sets Instance (Model).
Parameters:
instance - Sets Instance (Model).
public java.lang.String getOntologyLabel()
Gets Concept (Ontology) Label.
Returns:
Sets the Concept (Ontology) label.
public void setOntologyLabel(java.lang.String label)
Gets Concept (Ontology) Label.
Parameters:
label - Sets _ontologyLabel.
public java.lang.String getInstanceLabel()
Gets Instance (Model) Label.
Returns:
Returns Instance (Model) Label.
public void setInstanceLabel(java.lang.String label)
Sets Instance (Model) Label.
Parameters:
label - Sets Instance (Model)
Label.
public class IntegerValueConceptextends ValueConcept
IntegerValue
ConceptClass丅
This class defines Integer Value Concept.
|
Constructor Detail |
public IntegerValueConcept(Ontology ont)
Creates Integer Value Concept.
(Constructor)
Parameters:
ont - Affiliated Ontology
public IntegerValueConcept(Ontology ont, java.lang.String value)
Creates Integer Value Concept.
(Constructor)
Parameters:
ont - Affiliated Ontology
value - Specifies the value.
|
Method Detail |
public void setValue(java.lang.String val) throws InvalidValueException
Sets Value.
Overrides:
setValue in class ValueConcept
Parameters:
val - Sets the value.
Throws:
public boolean isValid()
Returns the boolean if Value is valid.
Overrides:
isValid in class ValueConcept
Returns:
Returns the boolean if Value is valid.
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.
public class InvalidValueExceptionextends java.lang.Exception
Invalid Value
Exception Class.
|
Constructor Detail |
public InvalidValueException()
Constructor
public InvalidValueException(java.lang.String mes)
Constructor
Parameters:
mes - Specifies the error
message.
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 |
public java.lang.String getValue()
Gets Value.
Returns:
Returns Value.
public class IsaRelationextends Relation
IsaRelation Class.
This class defines IsaRelation.
|
Constructor Detail |
public IsaRelation(Ontology ont)
Creates Relation.
Parameters:
ont - Sets the affiliated Ontology.
|
Method Detail |
public Concept getLowerConcept()
Gets Sub-Concept.
Returns:
Returns Sub-Concept.
public Concept getUpperConcept()
Gets Super Concept.
Returns:
Returns Super Concept.
public void setLowerConcept(Concept concept)
Sets Sub-Concept.
Parameters:
concept - Sets Sub-Concept.
public void setUpperConcept(Concept concept)
Sets Super Concept.
Parameters:
concept - Sets Super Concept.
public interface IsaTreeNodeModel
is-a Tree Node
Model Class
|
Method Detail |
java.util.List children()
Gets Child Class List.
Returns:
Returns Child Class List.
HozoOntologyObject getChildAt(int index)
Gets Child Class in index.
Parameters:
index - Specifies the index.
Returns:
Returns Child Class in index.
int getChildCount()
Gets Child Class Count.
Returns:
Returns Child Class Count.
int getIndex(HozoOntologyObject object)
Gets Child Class Index.
Parameters:
object - Specifies Hozo Object.
Returns:
Returns Child Class Count.
HozoOntologyObject getParent()
Gets Parent Class.
Returns:
Returns Parent Class.
boolean isLeaf()
Gets the boolean if it is Leave Class
(no Child Class).
Returns:
Returns the boolean if it is Leave
Class.
boolean isRoot()
Gets the boolean if it is Root Class
(no Child Class).
Returns:
Returns the boolean if it is Root
Class.
public class LargerThanRelationConceptextends RelationConcept
lager-thanRelation丂ConceptClass丅
This class defines Larger Than Relation Concept.+
|
Constructor Detail |
public LargerThanRelationConcept(Ontology ont)
Creates Larger Than Relation Concept.
(Constructor)
Parameters:
ont - Affiliated Ontology
public class Modelextends java.lang.Object
Model Class.
This class defines Model.
|
Constructor Detail |
public Model()
Creates Model. (Constructor)
|
Method Detail |
public void initModel()
Initializes Model.
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
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.
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
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
public void addReferenceOntology(Ontology ontology)
Adds Reference Ontology to Model.
Parameters:
ontology - Sets Reference Ontology
to add.
public void setBaseOntology(Ontology ontology)
Sets Base Reference Ontology to Model.
Parameters:
ontology - Sets Base Reference
Ontology.
public Ontology getBaseOntology()
Gets Base Reference Ontology.
Returns:
Returns Base Reference Ontology.
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.
public java.util.List getReferenceOntologies()
Gets all Reference Ontologies.
Returns:
Returns all Reference Ontologies.
public void addConceptInstance(ConceptInstance conceptInstance)
Adds Concept Instance to Model.
Parameters:
conceptInstance - Sets Concept Instance to
add.
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.
public void addRelationInstance(RelationInstance relationInstance)
Adds Relation Instance to Model.
Parameters:
relationInstance - Specifies Relation
Instance to add.
public void removeRelationInstance(RelationInstance relationInstance)
Deletes Relation Instance from Model.
Parameters:
relationInstance - Specifies Relation Instance
to delete.
public void addSlotInstance(SlotInstance slotInstance)
Adds Slot Instance to Model.
Parameters:
slotInstance -
Specifies Slot to add.
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.
public java.lang.String getId()
Gets Model ID.
Returns:
Returns Model ID.
public java.lang.String getLabel()
Gets Model Label.
Returns:
Returns Model Label.
public java.lang.String getSource()
Gets the source file name (URL) of
Model.
Returns:
Returns the file name (URL) of Model.
public java.lang.String getVersion()
Gets the Model Version information.
Returns:
Returns the Model Version information.
public void setId(java.lang.String id)
Sets Model ID.
Parameters:
id - Sets Model ID.
public void setLabel(java.lang.String label)
Sets Model Label.
Parameters:
label - Sets Model Label
(string).
public void setSource(java.lang.String src)
Sets the source file name (URL) of
Model.
Parameters:
src - Sets the source file
name of Model.
public void setVersion(java.lang.String ver)
Sets the Model Version information.
Parameters:
ver - Sets the Model Version
information.
public boolean isModelSource()
Returns the boolean if the specified
source is the Model file.
Returns:
Returns the boolean if it is the Model
file.
public java.util.List getConceptInstances()
Gets all Concept Instances.
Returns:
Returns the Concept Instance list.
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.
public java.util.List getRelationInstances()
Gets all Relation Instances.
Returns:
Returns the Relation Instance list.
public java.util.List getSlotInstances()
Gets all Slot Instances.
Returns:
Returns the Slot Instance list.
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.
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.
public java.util.List findInstanceByConcept(Concept concept)
Gets Concept Instance.
Parameters:
concept - Specifies Concept
(Ontology) Object.
Returns:
Returns the appropriate Concept
Instance list.
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.
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.
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.
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.
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.
public GraphicManager getGraphics()
Gets the Graphics information.
Returns:
Returns the Graphics information.
public void setGraphics(GraphicManager graphics)
Sets the Graphics information.
Parameters:
graphics - Sets the Graphics
information.
public boolean isOverlappingLabel(java.lang.String label)
Checks if the Concept Instance label
overlaps.
Parameters:
label - Specifies the label.
Returns:
Returns True if overlapped.
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.
public java.util.List getAllInstances()
Gets the list of all Instances.
Returns:
Returns the list of all Instances.
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.
public void removeRoleConceptInstance(ConceptInstance roleConceptIns)
Deletes Role Concept Instance.
Parameters:
roleConceptIns - Sets Role Concept
Instance to delete.
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.
public java.util.List getRoleConceptInstances()
Gets the Role Concept Instance list.
Returns:
Returns the Role Concept Instance
list.
public class ModelFactoryextends java.lang.Object
Instance Model
Generation Class.
This class defines Instance Model Generation.
|
Method Detail |
public static HZModel createDefaultModel()
Creates Instance Model.
Returns:
Returns Ontology created.
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.
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.
public class ModelUtilityextends java.lang.Object
Model Process
Utility Class.
This class defines the model I/O process.
|
Method Detail |
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
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
public void saveModelData(Model model) throws java.io.IOException, InvalidValueException
Saves XML Model Data.
Parameters:
model - Specifies Model.
Throws:
java.io.IOException
public java.lang.String getEncoding()
Gets Encoding to save Model Data.
Returns:
Returns Encoding.
public void setEncoding(java.lang.String encoding)
Sets Encoding to save Model Data.
Parameters:
encoding - Sets Encoding.
public class ModelUtilitySaxextends java.lang.Object
Extended Model
Process Utility Class.
This class defines the model I/O process.
|
Method Detail |
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
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
public void saveModelData(Model model) throws java.io.IOException, InvalidValueException
Saves XML Model Data.
Parameters:
model - Specifies Model.
Throws:
java.io.IOException
public java.lang.String getEncoding()
Gets Encoding to save Model Data.
Returns:
Returns Encoding.
public void setEncoding(java.lang.String encoding)
Sets Encoding to save Model Data.
Parameters:
model - Specifies Model.
public class NotEqualRelationConceptextends RelationConcept
Not Equal Relation
Concept Class.
not-equalRelation丂ConceptClass丅
This class defines Equal Relation Concept.
|
Constructor Detail |
public NotEqualRelationConcept(Ontology ont)
Creates Not Equal Relation Concept.
(Constructor)
Parameters:
ont - Affiliated Ontology
public class NumberValueConceptextends ValueConcept
Number Value
Concept Class.
This class defines Number Value Concept.
|
Constructor Detail |
public NumberValueConcept(Ontology ont)
Creates Number Value Concept.
(Constructor)
Parameters:
ont - Affiliated
Ontology
public NumberValueConcept(Ontology ont, java.lang.String value)
Creates Number Value Concept.
(Constructor)
Parameters:
ont - Affiliated Ontology
value - Specifies Value.
|
Method Detail |
public void setValue(java.lang.String val) throws InvalidValueException
Sets Value.
Overrides:
setValue in class ValueConcept
Parameters:
val - Sets Value.
Throws:
public boolean isValid()
Returns the boolean if Value is valid.
Overrides:
isValid in class ValueConcept
Returns:
Returns the boolean if Value is valid.
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.
public class Ontologyextends java.lang.Object
Ontology Class.
This class defines Ontology.
|
Constructor Detail |
public Ontology()
Creates Ontology. (Constructor)
|
Method Detail |
public void initOntology()
Initializes Ontology.
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
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.
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.
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
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
public java.util.List getAllClasses()
Gets the list of all Concept Classes .
Returns:
Returns the list of all Concept
Classes .
public void addConcept(Concept concept)
Adds Concept to Ontology.
Parameters:
concept - Sets
Concept to add.
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.
public void addRelation(Relation relation)
Adds Relation to Ontology.
Parameters:
relation - Specifies Relation to
add.
public void removeRelation(Relation relation)
Deletes Relation from Ontology.
Parameters:
relation - Specifies Relation to
delete.
public void addSlot(Slot slot)
Adds Slot to Ontology.
Parameters:
slot - Specifies Slot to add.
public void removeSlot(Slot slot)
Deletes Slot from Ontology.
This Delete process deletes the relation to Slot.
Parameters:
slot - Specifies Slot to
delete.
public java.lang.String getId()
Gets Ontology ID.
Returns:
Returns Ontology ID.
public java.lang.String getLabel()
Get Ontology Label.
Returns:
Returns Ontology Label.
public java.lang.String getSource()
Gets the source file name (URL) of
Ontology.
Returns:
Returns the source file name (URL) of
Ontology.
public java.lang.String getVersion()
Gets the Ontology Version information.
Returns:
Returns the Ontology Version
information.
public void setId(java.lang.String id)
Sets Ontology ID.
Parameters:
id - Sets Ontology ID.
public void setLabel(java.lang.String label)
Sets Ontology Label.
Parameters:
label - Sets Ontology Label
(string)
public void setSource(java.lang.String src)
Sets the source file name (URL) of
Ontology.
Parameters:
src - Sets the source file
name of Ontology.
public void setVersion(java.lang.String ver)
Sets the Ontology Version information.
Parameters:
ver - Sets the Ontology
Version information.
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.
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.
public Concept findWholeConceptByLabel(java.lang.String label)
Searches for Whole Concept.
Parameters:
label - Concept
Label.
Returns:
Returns the appropriate Whole Concept,
otherwise returns NULL.
public Concept findBasicConceptByID(java.lang.String id)
Searches for Basic Concept.
Parameters:
id - Concept ID
Returns:
Returns the appropriate Concept,
otherwise returns NULL.
public Concept findBasicConceptByLabel(java.lang.String label)
Searches for Basic Concept.
Parameters:
label - Concept Label
Returns:
Returns the appropriate Basic Concept,
otherwise returns NULL.
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.
public java.util.List getRoleHolderList(Concept dpConcept)
Gets Role Holder List.
Parameters:
dpConcept - Specifies Dependent
Concept.
Returns:
Returns Role Holder List.
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.
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.
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.
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.
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.
public java.util.List getIsaRelations()
Gets Isa Relations.
Returns:
Returns the Relation list, or returns
an empty list if there is no list.
public java.util.List getRelationConceptRelations()
Gets Relation Concept.
Returns:
Returns the Relation Concept list, or
returns an empty list if there is no list.
public java.util.List getSlotList()
Gets all Slots.
Returns:
Returns all Slots in Ontology.
public java.util.List getConceptList()
Gets all Concepts.
Returns:
Returns all Concepts in Ontology.
public java.util.List getRelationList()
Gets all Relations.
Returns:
Returns all Relations in Ontology.
public void replaceConcepts(Concept concept, Concept replacedConcept)
Replaces Concepts.
Parameters:
concept - Sets the source Concept.
replacedConcept - Sets Concept to replace.
public void addRefOntology(Ontology ontology)
Adds Reference Ontology.
Parameters:
ontology - Specifies Reference
Ontology to add.
public void removeRefOntology(Ontology ontology)
Deletes Reference Ontology.
Parameters:
ontology - Specifies Reference
Ontology to delete.
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.
public java.util.List getRefOntologyList()
Gets all Reference Ontologies.
Returns:
Returns all Reference Ontologies.
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.
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.
public GraphicManager getGraphics()
Gets the Graphics information.
Returns:
Returns the Graphics information.
public void setGraphics(GraphicManager graphics)
Sets the Graphics information.
Parameters:
graphics - Sets the Graphics
information.
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.
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.
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.
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.
public java.util.List getRoleConceptList()
Gets Role Concept List.
Returns:
Returns Role Concept List.
public java.util.List getValueConceptList()
Gets Value Concept List.
Returns:
Returns Value Concept List.
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.
public Concept getValueConceptByLabel(java.lang.String label)
Gets Value Concept.
Parameters:
label - Specifies Concept Label.
Returns:
Returns the appropriate Value Concept.
public Concept getAnyConcept()
Gets Any Concept.
Returns:
Returns Any Concept.
public java.util.List getBasicRelationConceptList()
Gets Basic Relation Concept List.
Returns:
Returns Basic Relation Concept List.
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.
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.
public void setUseAnyConcept(boolean useAnyCocnept)
Specifies to use Any Concept in
default.
Parameters:
useAnyCocnept - Specifies to use Any
Concept in default.
public boolean isUseAnyConcept()
Gets the boolean to use Any Concept in
default.
Returns:
Return the boolean to use Any Concept
in default.
public java.util.List getGlossaries()
Gets the list for each Glossary type.
Returns:
Returns the list for each Glossary
type.
public void addGlossary(Glossary glossary)
Adds the Glossary type.
Parameters:
glossary - Specifies the Glossary
type.
public void removeGlossary(Glossary glossary)
Deletes the Glossary type.
Parameters:
glossary - Specifies the Glossary
type.
public boolean hasGlossaries()
Gets the boolean to have the Glossary
type.
Returns:
Returns the boolean to have the
Glossary type.
public class OntologyFactoryextends java.lang.Object
Ontology
Generation Class.
This class defines Ontology Generation.
|
Method Detail |
public static HZOntology createDefaultOntology()
Creates Ontology.
Returns:
Returns Ontology created.
public static HZOntology createHZOntology(java.lang.String source)
Creates Ontology.
Parameters:
source - Specifies the source
file name (URL) of Ontology.
Returns:
Returns Ontology created.
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.
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
public class OntologyFileInfoextends java.lang.Object
Ontology File
Information Class.
public class OntologyUtilityextends java.lang.Object
Ontology Process
Utility Class.
This class defines the Ontology I/O process.
|
Method Detail |
public void saveOntologyData(Ontology ontology) throws java.io.IOException, InvalidValueException
Saves Ontology Concept Data.
Parameters:
ontology - Ontology
Throws:
java.io.IOException
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
public void loadOntologyData(Ontology ontology) throws java.lang.Exception
Loads XML Concept Data.
Parameters:
ontology - Specifies Ontology.
Throws:
java.lang.Exception
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
public java.lang.String getEncoding()
Gets Encoding to save Ontology Data.
Returns:
Returns Encoding.
public void setEncoding(java.lang.String encoding)
Sets Encoding to Save Ontology Data.
Parameters:
encoding - Specifies Encoding.
public class OntologyUtilitySaxextends java.lang.Object
Extended Ontology
Process Utility Class.
This class defines the Ontology I/O process.
|
Method Detail |
public void saveOntologyData(Ontology ontology) throws java.lang.Exception
Saves XML Concept Data.
Parameters:
ontology - Ontology
Throws:
java.lang.Exception
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
public void loadOntologyData(Ontology ontology) throws java.lang.Exception
Loads XML Concept Data.
Parameters:
ontology - Specifies Ontology.
Throws:
java.lang.Exception
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
public java.lang.String getEncoding()
Gets Encoding to save Ontology Data.
Returns:
Returns Encoding.
public void setEncoding(java.lang.String encoding)
Sets Encoding to save Ontology Data.
Parameters:
encoding - Sets Encoding.
public class P_Operatorextends Concept
p-Operator Class.
This class defines p-Operator.
|
Constructor Detail |
public P_Operator(Ontology ont)
Creates p-Operator. (Constructor)
Parameters:
ont - Affiliated Ontology
public P_Operator(Ontology ont, BasicConcept con)
Creates p-Operator.
Parameters:
ont - Sets the affiliated Ontology.
con - Sets the partial
Concept.
|
Method Detail |
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.
public BasicConcept getPartOfConcept()
Gets Part Of Concept.
Returns:
Returns Part Of Concept.
public void setPartOfConcept(BasicConcept con)
Sets Part Of Concept.
Parameters:
con - Sets Part Of Concept.
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.
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.
public class PartOfRelationextends Relation
Part Of Relation
Class.
This class defines Part Of Relation.
|
Constructor Detail |
public PartOfRelation(Ontology ont)
Creates Part Of Relation.
Parameters:
ont - Affiliated Ontology
|
Method Detail |
public Concept getWholeConcept()
Gets Whole Concept.
Returns:
Returns Whole Concept.
public Slot getPartSlot()
Gets Part Slot.
Returns:
Returns Part Slot.
public RoleConcept getPartRoleConcept()
Gets Part Role Concept.
Returns:
Returns Part Role Concept.
public void setWholeConcept(Concept concept)
Sets Whole Concept.
Parameters:
concept - Sets Whole Concept.
public void setPartSlot(Slot slot)
Sets Part Slot.
Parameters:
slot - Sets Part Slot.
public void setPartRoleConcept(RoleConcept roleConcept)
Sets Part Role Concept.
Note) Part Role Concept Dependent Slot is not set.
Parameters:
roleConcept - Sets Part Role Concept.
public java.lang.String getPartSlotSize()
Return Part Slot Size.
Returns:
Returns Part Slot Size.
public void setPartSlotSize(java.lang.String size)
Sets Part Slot Size.
Parameters:
size - Sets Part Slot Size.
public class RConceptRelationextends Relation
Relation
ConceptRelation Class.
This class defines Relation ConceptRelation.
|
Constructor Detail |
public RConceptRelation(Ontology ont)
Creates Relation ConceptRelation.
Parameters:
ont - Specifies the affiliated
Ontology.
public RConceptRelation(RelationConcept reCon)
Creates Relation ConceptRelation.
Parameters:
reCon - Specifies Relation Concept
|
Method Detail |
public RelationConcept getRelationConcept()
Gets Relation Concept.
Returns:
Returns Relation Concept.
public void setRelationConcept(RelationConcept concept)
Sets Relation Concept.
Parameters:
concept - Sets Relation Concept.
public java.util.List getSlotRelationList()
Gets all related Slot Relations.
Returns:
Returns all related Slot Relations.
public void addRSlotRelation(RSlotRelation rsRelation)
Adds the related Slot Relation.
Parameters:
rsRelation - Specifies the related
Slot Relation to add.
public void removeRSlotRelation(RSlotRelation rsRelation)
Deletes the related Slot Relation.
Parameters:
rsRelation - Specifies the related
Slot Relation to delete.
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.
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.
public class RConceptRelationInstanceextends RelationInstance
Related Concept
Relation Instance Class.
This class defines Relation ConceptRelation Instance.
|
Constructor Detail |
public RConceptRelationInstance(Model model)
Creates Relation ConceptRelation
Instance.
Parameters:
model - Specifies the affiliated
Model.
|
Method Detail |
public java.util.List getSlotRelationInstanceList()
Gets all related Slot Relations.
Returns:
Returns all related Slot Relations.
public void addRSlotRelationInstance(RSlotRelationInstance rsRelationIns)
Adds the related Slot Relation.
Parameters:
rsRelationIns - Specifies the related
Slot Relation to add.
public void removeRSlotRelationInstance(RSlotRelationInstance rsRelationIns)
Deletes the related Slot Relation.
Parameters:
rsRelationIns - Specifies the related
Slot Relation Instance to delete.
public RelationConcept getRelationConcept()
Gets Relation Concept.
Returns:
Returns Relation Concept.
public void setRelationConcept(RelationConcept concept)
Sets Relation Concept.
Parameters:
concept - Sets Relation Concept.
public boolean isConceptInstancesRelation()