2
實例OWL-類的假設我有一個OWL-類如下:與unionOf(N3)
:picture rdf:type owl:Class ;
owl:unionOf(:creator :theme :title :date) .
:creator
隨着,:theme
,:title
和:date
任一種owl:ObjectProperty
或owl:DataProperty
。
例如:
:creator rdf:type owl:ObjectProperty ;
rdfs:comment "The creator of this picture." ;
rdfs:domain :picture ;
rdfs:range foaf:Person .
我怎麼能創造這幅畫類的實例?
(我明白,我怎麼創造的一件容易的事情,例如一個實例:<http://dbpedia.org/resource/Paris> rdf:type :location .
將是一個位置的一個實例)如果你想描述其可以包含屬性:creator
,:theme
類
你不能,因爲你的類定義不是有效的OWL。你不能在屬性列表中使用'owl:unionOf'約束(值只能是類描述)。你能描述一下你試圖建模嗎? –