|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcolibri.datatypes.ConceptType
public class ConceptType
Represents a Concept of an ontology.
This class uses OntoBridge to connect with the ontology.
It can manage both short or long names to localize a concept:
For example: In the gaia.fdi.ucm.es/ontologies/Restaurant.owl ontology, the long name of the concept "wine" is
"gaia.fdi.ucm.es/ontologies/Restaurant.owl#wine.
The short name is just "wine" or "restaurant:wine" if "restaurant" is a defined prefix for that ontology.
TypeAdaptor
Constructor Summary | |
---|---|
ConceptType()
|
|
ConceptType(java.lang.String concept)
Creates a ConceptType connected with the concept in the ontology. |
|
ConceptType(java.lang.String concept,
boolean useShortName)
Creates a ConceptType looking for the concept in the ontology with the same name. |
Method Summary | |
---|---|
void |
fromString(java.lang.String content)
Reads the type from a string. |
java.lang.String |
toString()
Returns a string representation of the type. |
void |
useShortName(boolean yesno)
Indicates if using a long or short name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jcolibri.connector.TypeAdaptor |
---|
equals |
Constructor Detail |
---|
public ConceptType()
public ConceptType(java.lang.String concept, boolean useShortName) throws OntologyAccessException
The useShortName param allows using short or long names. For example:
In the gaia.fdi.ucm.es/ontologies/Restaurant.owl ontology, the long name of the concept "wine" is "gaia.fdi.ucm.es/ontologies/Restaurant.owl#wine.
The short name is just "wine" or "restaurant:wine" if "restaurant" is a defined prefix for that ontology.
concept
- Name of the concept in the ontologyuseShortName
- Use long or short name
OntologyAccessException
public ConceptType(java.lang.String concept) throws OntologyAccessException
concept
- Name of the concept in the ontology
OntologyAccessException
Method Detail |
---|
public void fromString(java.lang.String content) throws OntologyAccessException
TypeAdaptor
fromString
in interface TypeAdaptor
OntologyAccessException
public java.lang.String toString()
TypeAdaptor
toString
in interface TypeAdaptor
toString
in class java.lang.Object
public void useShortName(boolean yesno)
yesno
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |