[英]OWL How to use multiple restrictions on a class
如何為給定的貓頭鷹類設置多個限制?
示例:給定的課程必須至少由1名學生參加,但最多10名學生:
:Course a owl:Class;
owl:equivalentClass [a owl:Restriction;
owl:onProperty :takenBy;
owl:minCardinality 1] .
:Student a owl:Class .
:takenBy a rdf:Property;
rdfs:domain :Course;
rdfs:range :Student .
這設置了一個限制,即課程必須至少由一名學生參加,但是我還應如何應用限制owl:maxCardinality 10?
您可以為此使用owl:intersectionOf
。
:Course a owl:Class;
owl:equivalentClass [
owl:intersectionOf [ a owl:Restriction ;
owl:onProperty :takenBy;
owl:minCardinality 1] ;
[ a owl:Restriction ;
owl:onProperty :takenBy;
owl:maxCardinality 10]
]
].
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.