|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectibspan.tss.core.semantic.Util
public class Util
Class helping in operation on ontological data. Provides implementation of reflection function.
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static String |
getClosestRDFType(com.ibm.adtech.jastor.Thing t)
Returns the main rdf:type of the given Thing. |
static Map<String,String> |
getMap(Map inMap)
Translates Map object from Messaging ontology into
Java Map form. |
static Resource |
getReflection(Resource r,
OntModel mDB,
OntModel mDomain)
Returns reflection of the given resource r into given domain mDomain . |
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 String getClosestRDFType(com.ibm.adtech.jastor.Thing t)
t
- is thing object
public static Resource getReflection(Resource r, OntModel mDB, OntModel mDomain)
r
into given domain mDomain
.
uri
- uri of the resource to be reflectedmDB
- is model, which contains statements about resource
uri
mDomain
- domain model describing classes
uri
if resource with this uri
,
i.e. this resource occurs as a subject of a any statement in
mDomain
.
C
, if resource with this
uri
does NOT belong do mDomain
and
instance of resource (class) C, belonging do mDomain
.
null
-- otherwise.
public static Map<String,String> getMap(Map inMap)
Map
object from Messaging ontology into
Java Map
form.
inMap
- is Map object from the ontology
inMap
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |