ibspan.tss.semantic
Class Util
java.lang.Object
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 |
Util
public Util()
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:
- URI of class, if the given resource is instance of this class and
this class belongs to the domain
- URI of class, if the given resource is class and belongs to the
domain,
- null -- otherwise.
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 resourcemRestaurantsDB
- model of mRestaurantsDBdomain
- 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).