|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dfleischhacker.uni.thesis.utils.ontology.OntologyRenamer
public class OntologyRenamer
This class provides methods to rename entities contained in two ontologies. Renaming is done to guarantee unique names across both ontologies.
Constructor Summary | |
---|---|
OntologyRenamer(Ontology onto1,
Ontology onto2)
Renames all entities of the given to ontology so that each of these has a unique namespace which guarantees that no name clashes are possible during the merge. |
Method Summary | |
---|---|
TypeMap |
getTypeMap()
Returns the typemap generated by this merger |
static boolean |
isBlacklisted(java.lang.String uri)
Checks if the given URI is blacklisted for the renaming step either by it's namespace or individually. |
static java.net.URI |
resolveURI(int onto,
java.lang.String uri)
Generates a new unique URI based on the given URI and the given number. |
static java.net.URI |
resolveURI(int onto,
java.net.URI uri)
Generates a new unique URI based on the given URI and the given number. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OntologyRenamer(Ontology onto1, Ontology onto2) throws MergingException
onto1
- ontology 1onto2
- ontology 2
MergingException
Method Detail |
---|
public TypeMap getTypeMap()
public static java.net.URI resolveURI(int onto, java.net.URI uri)
onto
- number for ontologyuri
- uri to base the new unique URI on
public static java.net.URI resolveURI(int onto, java.lang.String uri)
onto
- number for ontologyuri
- uri to base the new unique URI on
public static boolean isBlacklisted(java.lang.String uri)
uri
- URI to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |