以文本方式查看主题

-  计算机科学论坛  (http://bbs.xml.org.cn/index.asp)
--  『 Semantic Web(语义Web)/描述逻辑/本体 』  (http://bbs.xml.org.cn/list.asp?boardid=2)
----  如何用jena获取类的属性的定义域和值域?  (http://bbs.xml.org.cn/dispbbs.asp?boardid=2&rootid=&id=64397)


--  作者:lh57
--  发布时间:7/6/2008 10:44:00 AM

--  如何用jena获取类的属性的定义域和值域?
如何用jena获取类的属性的定义域和值域?
--  作者:jpz6311whu
--  发布时间:7/7/2008 8:19:00 PM

--  
com.hp.hpl.jena.ontology
Interface OntProperty

getDomain
OntResource getDomain()Answer a resource that represents the domain class of this property. If there is more than one such resource, an arbitrary selection is made.


Returns:
An resource representing the class that forms the domain of this property
Throws:
OntProfileException - If the Profile.DOMAIN() property is not supported in the current language profile.


getRange
OntResource getRange()Answer a resource that represents the range class of this property. If there is more than one such resource, an arbitrary selection is made.


Returns:
An resource representing the class that forms the range of this property
Throws:
OntProfileException - If the Profile.RANGE() property is not supported in the current language profile.


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
31.250ms