How to add vocabulary in Jena?

岁酱吖の 提交于 2021-02-19 08:49:07

问题


In Jena there are some default ontologies like RDF, FOAF...

So we can add property to resource like:

resource.addProperty(FOAF.name, person.getMFirstName());

But I need another ontology that does not exist in Jena like SIOC, pimo that I have the URI for.

How can I do this?


回答1:


Jena has a tool for generating Java classes that contain the constants from ontologies and RDF schemas: schemagen



来源:https://stackoverflow.com/questions/5979747/how-to-add-vocabulary-in-jena

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!