本文整理汇总了C++中TJNICache::getOName方法的典型用法代码示例。如果您正苦于以下问题:C++ TJNICache::getOName方法的具体用法?C++ TJNICache::getOName怎么用?C++ TJNICache::getOName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TJNICache
的用法示例。
在下文中一共展示了TJNICache::getOName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: getJ
/*
* Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
* Method: getTopObjectProperty
* Signature: ()Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;
*/
JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getTopObjectProperty
(JNIEnv * env, jobject obj)
{
TRACE_JNI("getTopObjectProperty");
TJNICache* J = getJ(env,obj);
return J->ObjectProperty(J->getOName("http://www.w3.org/2002/07/owl#topObjectProperty"));
}
示例2: getJ
/*
* Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
* Method: askObjectProperties
* Signature: (Luk/ac/manchester/cs/factplusplus/IndividualPointer;)[Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;
*/
JNIEXPORT jobjectArray JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_askObjectProperties
(JNIEnv * env, jobject obj, jobject arg)
{
TRACE_JNI("askObjectProperties");
TRACE_ARG(env,obj,arg);
TJNICache* J = getJ(env,obj);
ReasoningKernel::NamesVector Rs;
PROCESS_QUERY ( J->K->getRelatedRoles ( getROIndividualExpr(env,arg), Rs, /*data=*/false, /*needI=*/false ) );
std::vector<TExpr*> acc;
for ( ReasoningKernel::NamesVector::const_iterator p = Rs.begin(), p_end = Rs.end(); p < p_end; ++p )
acc.push_back(J->getOName((*p)->getName()));
return J->buildArray ( acc, J->ObjectPropertyPointer );
}
示例3: name
/*
* Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
* Method: getObjectProperty
* Signature: (Ljava/lang/String;)Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;
*/
JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_getObjectProperty
(JNIEnv * env, jobject obj, jstring str)
{
TRACE_JNI("getObjectProperty");
TRACE_STR(env,str);
TJNICache* J = getJ(env,obj);
JString name(env,str);
jobject ret = (jobject)0;
try
{
ret = J->ObjectProperty(J->getOName(name()));
}
catch (const EFPPCantRegName&)
{
Throw ( env, "FaCT++ Kernel: Can not register new object property name" );
}
return ret;
}