|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fuberlin.wiwiss.semmf.util.Util
public class Util
A class providing some useful utility methods for the matching package
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
private static java.lang.String |
multiplyUnderscore(int i)
Helper method used in printHierarchyTree() to mark the indentation of a concept with a series of "_ " according to its hierarchy level. |
private static void |
printHierarchyTree(com.hp.hpl.jena.rdf.model.Model m,
com.hp.hpl.jena.rdf.model.Resource r,
int level,
float k_factor)
Recursive method used to iterate through a taxonomy |
static void |
printHierarchyTree(java.lang.String taxonURL,
java.lang.String rootConceptURI,
float k_factor)
Utility method printing the taxonomy tree on screen including milestones. |
static void |
printMatchingResult(MatchingResult mr)
Prints the matching result out |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static void printHierarchyTree(java.lang.String taxonURL,
java.lang.String rootConceptURI,
float k_factor)
taxonURL - location of the taxonomy file (RDF or OWL)rootConceptURI - URI of the taxonomy's root conceptpublic static void printMatchingResult(MatchingResult mr)
mr - - object returned by the engine
private static void printHierarchyTree(com.hp.hpl.jena.rdf.model.Model m,
com.hp.hpl.jena.rdf.model.Resource r,
int level,
float k_factor)
m - Jena RDF model reresenting a taxonomyr - Jena Resource from this modellevel - taxonomy levelk_factor - k factor for the build-in ExpMilestCalcprivate static java.lang.String multiplyUnderscore(int i)
i - hierarchy level
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||