|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dfleischhacker.uni.thesis.utils.types.TypeMap
public class TypeMap
This class builds a map with entity types for the entities contained in the given ontologies and provides an interface to receive these contents.
Constructor Summary | |
---|---|
TypeMap(Ontology onto1,
Ontology onto2)
Initializes the internal entity type maps from the given ontologies. |
Method Summary | |
---|---|
void |
dump(java.lang.String filename)
Dumps the generated typemap to the given file |
java.lang.String |
getType(java.lang.String uri)
Returns the type of the given entity. |
boolean |
isClass(java.lang.String entity)
Checks whether the given entity is a class. |
boolean |
isDataProperty(java.lang.String entity)
Checks whether the given entity is a data property. |
boolean |
isObjectProperty(java.lang.String entity)
Checks whether the given entity is an object property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypeMap(Ontology onto1, Ontology onto2)
onto1
- ontology 1onto2
- ontology 2Method Detail |
---|
public boolean isClass(java.lang.String entity)
entity
- entity to check
public boolean isDataProperty(java.lang.String entity)
entity
- entity to check
public boolean isObjectProperty(java.lang.String entity)
entity
- entity to check
public java.lang.String getType(java.lang.String uri)
uri
- entity's URI
public void dump(java.lang.String filename) throws java.io.IOException
filename
- filename to dump typemap to
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |