fr.inrialpes.exmo.align.gen
Class ClassHierarchy
java.lang.Object
fr.inrialpes.exmo.align.gen.ClassHierarchy
public class ClassHierarchy
- extends Object
Method Summary |
void |
addClass(String childURI,
String parentURI)
|
void |
buildClassHierarchy(com.hp.hpl.jena.ontology.OntModel model)
|
boolean |
flattenClassHierarchy(com.hp.hpl.jena.ontology.OntModel model,
int level,
ArrayList<com.hp.hpl.jena.ontology.OntClass> childClasses,
ArrayList<com.hp.hpl.jena.ontology.OntClass> parentClasses,
ArrayList<com.hp.hpl.jena.ontology.OntClass> superLevelClasses)
|
void |
flattenHierarchy(List<URITree> childrenNodes)
|
void |
getClass(com.hp.hpl.jena.ontology.OntClass cls,
List occurs,
int depth)
|
List<com.hp.hpl.jena.ontology.OntClass> |
getClassesFromLevel(com.hp.hpl.jena.ontology.OntModel model,
int level)
|
int |
getMaxLevel()
|
List<URITree> |
getNodesFromLevel(int level)
|
com.hp.hpl.jena.ontology.OntClass |
getRandomClassFromLevel(com.hp.hpl.jena.ontology.OntModel model,
int level)
|
URITree |
getRootClassHierarchy()
|
protected void |
indent(int depth)
|
void |
printClassHierarchy()
|
com.hp.hpl.jena.ontology.OntClass |
removeClass(com.hp.hpl.jena.ontology.OntModel model,
com.hp.hpl.jena.ontology.OntClass cls)
|
void |
removeUri(URITree root,
String uri)
|
protected void |
renderAnonymous(com.hp.hpl.jena.rdf.model.Resource anon,
String name)
|
void |
renderClassDescription(com.hp.hpl.jena.ontology.OntClass c,
int depth)
|
protected void |
renderRestriction(com.hp.hpl.jena.ontology.Restriction r)
|
protected String |
renderURI(com.hp.hpl.jena.shared.PrefixMapping prefixes,
String uri)
|
void |
updateClassHierarchy(Properties params)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
root
private URITree root
m_anonIDs
private Map m_anonIDs
m_anonCount
private int m_anonCount
maxDepth
private int maxDepth
ClassHierarchy
public ClassHierarchy()
getRootClassHierarchy
public URITree getRootClassHierarchy()
getMaxLevel
public int getMaxLevel()
printClassHierarchy
public void printClassHierarchy()
addClass
public void addClass(String childURI,
String parentURI)
updateClassHierarchy
public void updateClassHierarchy(Properties params)
getClassesFromLevel
public List<com.hp.hpl.jena.ontology.OntClass> getClassesFromLevel(com.hp.hpl.jena.ontology.OntModel model,
int level)
getNodesFromLevel
public List<URITree> getNodesFromLevel(int level)
removeUri
public void removeUri(URITree root,
String uri)
removeClass
public com.hp.hpl.jena.ontology.OntClass removeClass(com.hp.hpl.jena.ontology.OntModel model,
com.hp.hpl.jena.ontology.OntClass cls)
getRandomClassFromLevel
public com.hp.hpl.jena.ontology.OntClass getRandomClassFromLevel(com.hp.hpl.jena.ontology.OntModel model,
int level)
flattenClassHierarchy
public boolean flattenClassHierarchy(com.hp.hpl.jena.ontology.OntModel model,
int level,
ArrayList<com.hp.hpl.jena.ontology.OntClass> childClasses,
ArrayList<com.hp.hpl.jena.ontology.OntClass> parentClasses,
ArrayList<com.hp.hpl.jena.ontology.OntClass> superLevelClasses)
flattenHierarchy
public void flattenHierarchy(List<URITree> childrenNodes)
buildClassHierarchy
public void buildClassHierarchy(com.hp.hpl.jena.ontology.OntModel model)
getClass
public void getClass(com.hp.hpl.jena.ontology.OntClass cls,
List occurs,
int depth)
renderClassDescription
public void renderClassDescription(com.hp.hpl.jena.ontology.OntClass c,
int depth)
renderURI
protected String renderURI(com.hp.hpl.jena.shared.PrefixMapping prefixes,
String uri)
renderRestriction
protected void renderRestriction(com.hp.hpl.jena.ontology.Restriction r)
renderAnonymous
protected void renderAnonymous(com.hp.hpl.jena.rdf.model.Resource anon,
String name)
indent
protected void indent(int depth)
(C) INRIA & friends, 2003-${curryear}