以文本方式查看主题

-  计算机科学论坛  (http://bbs.xml.org.cn/index.asp)
--  『 Semantic Web(语义Web)/描述逻辑/本体 』  (http://bbs.xml.org.cn/list.asp?boardid=2)
----  求助:jena API使用问题?  (http://bbs.xml.org.cn/dispbbs.asp?boardid=2&rootid=&id=37129)


--  作者:honghuhuchao
--  发布时间:8/23/2006 4:42:00 PM

--  求助:jena API使用问题?
import com.hp.hpl.jena.rdf.model.*;
import com.hp.hpl.jena.ontology.*;
我在jbuilder包下面引入了。但是在使用变量 OntModel model = null;等的时候,它怎么提示我变量不能识别啊?OntClass 也是,大家帮帮忙啊。我把OntModel换成Model也不行。我用的是jena2.4
--  作者:jpz6311whu
--  发布时间:8/23/2006 5:52:00 PM

--  
请楼主把程序源代码和详细的报错信息贴出来看看
--  作者:honghuhuchao
--  发布时间:8/23/2006 7:11:00 PM

--  
public class parseClassNode {
  OntModel model = null;
  OntClass cls = null;

  public parseClassNode(OntModel model,OntClass clsURI) {
    this.model = model;
    this.cls = clsURI;
  }


cannot find symbol; symbol  : class OntModel, location: class ontology_parse_pac.parse_class_pac.parseClassNode:11:3
Unable to design parseClassNode.java.  Make sure that the file is in the current project, does not contain any syntax errors, and that all resources are compiled.
cannot find symbol; symbol  : class OntModel, location: class ontology_parse_pac.parse_class_pac.parseClassNode:11:3
Unable to design parseClassNode.java.  Make sure that the file is in the current project, does not contain any syntax errors, and that all resources are compiled.
cannot find symbol; symbol  : class OntModel, location: class ontology_parse_pac.parse_class_pac.parseClassNode:11:3
Unable to design parseClassNode.java.  Make sure that the file is in the current project, does not contain any syntax errors, and that all resources are compiled.

代码太多,随便贴一小段出来吧


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