RDF and OWL workflow question

纵然是瞬间 提交于 2019-12-03 08:51:02

There are many possible workflows, but it really doesn't have to be that complex.

  1. Generated your OWL ontology in some editor
  2. Export ontology as RDF
  3. Import ontology to triplestore
  4. Import data to triplestore
  5. Query data with SPARQL

The sub/superclass reasoning is what the reasoner is used for, if you use a store with a builtin reasoner then then it's information will be used by SPARQL, so if you do:

SELECT ?pizza
WHERE {
  ?pizza a :VegitarianPizza .
}

You will get back all the pizzas that are members of the class VegitarianPizza, or any of it's subclasses.

I'm guessing that the class VegitarianPizza is defined in your ontology as a pizza that has no ingredients that are meat? Rather than assigning each pizza to a class by hand? Otherwise there's really no need for OWL, and you could just use RDFS, which is much simpler.

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