de.fuberlin.wiwiss.semmf.util
Class Util

java.lang.Object
  extended by de.fuberlin.wiwiss.semmf.util.Util

public class Util
extends java.lang.Object

A class providing some useful utility methods for the matching package

Version:
1.1 last modified on 29.11.2006
Author:
Radoslaw Oldakowski

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

Util

public Util()
Method Detail

printHierarchyTree

public static void printHierarchyTree(java.lang.String taxonURL,
                                      java.lang.String rootConceptURI,
                                      float k_factor)
Utility method printing the taxonomy tree on screen including milestones. Works only with the build-in ExpMilestCalc.

Parameters:
taxonURL - location of the taxonomy file (RDF or OWL)
rootConceptURI - URI of the taxonomy's root concept

printMatchingResult

public static void printMatchingResult(MatchingResult mr)
Prints the matching result out

Parameters:
mr - - object returned by the engine

printHierarchyTree

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

Parameters:
m - Jena RDF model reresenting a taxonomy
r - Jena Resource from this model
level - taxonomy level
k_factor - k factor for the build-in ExpMilestCalc

multiplyUnderscore

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.

Parameters:
i - hierarchy level