ibspan.tss.semantic
Class Util

java.lang.Object
  extended by ibspan.tss.semantic.Util

public class Util
extends Object

Author:
maciek

Constructor Summary
Util()
           
 
Method Summary
static String getRDFType(com.ibm.adtech.jastor.Thing t)
          We assume recordes underlying the Thing is assiociated with a model.
static String getReflexion(String conceptURI, com.hp.hpl.jena.ontology.OntModel mRestaurantsDB, com.hp.hpl.jena.ontology.OntModel domain)
          Returns reflextion of the given resource.
 
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

getRDFType

public static String getRDFType(com.ibm.adtech.jastor.Thing t)
We assume recordes underlying the Thing is assiociated with a model.

Parameters:
t -
Returns:

getReflexion

public static String getReflexion(String conceptURI,
                                  com.hp.hpl.jena.ontology.OntModel mRestaurantsDB,
                                  com.hp.hpl.jena.ontology.OntModel domain)
Returns reflextion of the given resource. Relefexion returns: In order to be recognised as an individual (an instance of a class), rather than a generic resource (a class), at least one rdf:type statement, referring to a known class, must be present in the model.

Parameters:
conceptURI - uri of the resource
mRestaurantsDB - model of mRestaurantsDB
domain - domain model describing classes
Returns:
null if reflexion is not defined for the concept TODO: The idea of reflexion becomes illogical when the individual as an instance of more then one type (class).