description-logic

Sparql query Subclass or EquivalentTo

守給你的承諾、 提交于 2019-11-26 14:39:17
问题 I want to query all subclass of Nicotine (product). the result must be (Nasal form nicotine, Oropharyngeal from ni ..(4 items).. see in the picture) i try to query by rdfs:subClassOf+ and owl:equivalentClass+ but didn't work try from this example the code same here. PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT * WHERE { ?s owl:equivalentClass+ ?o . # and try ?s rdfs:subClassOf

OWL 2 rolification

戏子无情 提交于 2019-11-26 07:39:45
问题 In description logic, there is a concept called \"rolification\" (OWL and Rules, Sec 3.2). It converts a concept (class) into a role (property). For example, when we rolify R(x) , we get r(x,x) . This technique is useful for expressing some rules in DL. How do we do this in OWL 2? It seems that there is no direct support for rolification in OWL 2 specification. 回答1: Section 3.2 of the paper that you linked to says: It is indeed possible to translate this rule into OWL 2—however this involves