基于属性值

时间:2017-05-18 09:24:44

标签: owl ontology protege object-properties

在我的本体论中,我想说一个人可以根据他/她的性别赢得奖品 我有一个班级“演员”和一个班级“奖”,它有两个子类:“男性奖品”和“女性奖品”。
我通过这种方式指定了类“Actor”:

 Actor subclass of:
 Actor that gender value "female" and won_prize some Female_Prizes
 Actor that gender value "male" and won_prize some Male_Prizes

这是处理此问题的正确方法吗?我不太确定。 OWL输出为:

Prefix: : <http://www.semanticweb.org/mary/ontologies/2017/4/MoviesOntology#>
Prefix: owl: <http://www.w3.org/2002/07/owl#>
Prefix: rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
Prefix: rdfs: <http://www.w3.org/2000/01/rdf-schema#>
Prefix: xml: <http://www.w3.org/XML/1998/namespace>
Prefix: xsd: <http://www.w3.org/2001/XMLSchema#>
Prefix: foaf: <http://xmlns.com/foaf/0.1/>

Ontology: <http://www.semanticweb.org/mary/ontologies/2017/4/MoviesOntology>

Datatype: rdf:PlainLiteral
ObjectProperty: starred_in
ObjectProperty: won_prize
DataProperty: foaf:gender

Class: foaf:Person

Class: Actor
    SubClassOf: 
        foaf:Person,
        Actor
         and (won_prize some Female_Prizes)
         and (foaf:gender value "female"),
        Actor
         and (won_prize some Male_Prizes)
         and (foaf:gender value "male"),
        starred_in some Movie

Class: Female_Prizes
Class: Male_Prizes

Class: Movie

0 个答案:

没有答案