Rdf 如何将OWL本体注册到Jade代理中?
我使用OWL和Jena创建了代理,用于本体开发。我想在Rdf 如何将OWL本体注册到Jade代理中?,rdf,jena,owl,agents-jade,Rdf,Jena,Owl,Agents Jade,我使用OWL和Jena创建了代理,用于本体开发。我想在servicescription中注册本体。我该怎么做?我应该使用OWL类还是Jena模型?我不知道如何设置sd.setOwnership()和sd.addontologys()。我的代码: DFAgentDescription dfd = new DFAgentDescription(); ServiceDescription sd = new ServiceDescription(); sd.setType(agentType); sd.
servicescription
中注册本体。我该怎么做?我应该使用OWL类还是Jena模型?我不知道如何设置sd.setOwnership()
和sd.addontologys()
。我的代码:
DFAgentDescription dfd = new DFAgentDescription();
ServiceDescription sd = new ServiceDescription();
sd.setType(agentType);
sd.setName(a.getName());
sd.setOwnership(???);
sd.addOntologies(???);
dfd.setName(a.getAID());
dfd.addServices(sd);
我没有使用Jade,但是and的文档中说,这些方法中的每一个都使用一个
字符串
,因此都不希望使用OWL类或Jena模型
Jade似乎有自己的类,所以猫头鹰本体论和Jade本体论之间可能存在脱节(尽管我不确定)。似乎本体与名称相关联,我希望那些注册的名称是addontologys
方法所期望的