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: