TestCase:WebOnt-cardinality-004
From OWL Test Cases
[Download OWL] | |
Test Id | WebOnt-cardinality-004 |
---|---|
Description | An owl:cardinality constraint is simply shorthand for a pair of owl:minCardinality and owl:maxCardinality constraints.
|
Status | Approved (2009-07-02 when passed by two or more implementations) (proposed 2009-06-08) |
Author | Jeremy J. Carroll |
Original syntax | RDF-XML |
Syntactic Species/Profile | OWL 2 DL (not EL, not QL, not RL) |
Semantics | This test is applicable under both direct and RDF-based semantics. |
WebOnt test | http://www.w3.org/2002/03owlt/cardinality/Manifest004#test |
Premise ontology (download)
Convert syntax: functional, XML, Manchester This informative conversion will be incorrect for OWL 2 Full. info.pngConversions are provided by the OWL Syntax Converter which tries to "repair" OWL 2 Full inputs to become DL. | |
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xml:base="http://www.w3.org/2002/03owlt/cardinality/premises004" > <owl:Ontology/> <owl:Class rdf:about="conclusions004#c"> <rdfs:subClassOf> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Restriction> <owl:onProperty rdf:resource="conclusions004#p"/> <owl:maxCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger" >2</owl:maxCardinality> </owl:Restriction> <owl:Restriction> <owl:onProperty rdf:resource="conclusions004#p"/> <owl:minCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger" >2</owl:minCardinality> </owl:Restriction> </owl:intersectionOf> </owl:Class> </rdfs:subClassOf> </owl:Class> <owl:ObjectProperty rdf:about="conclusions004#p"/> </rdf:RDF> | |
Conclusion ontology (download)
Convert syntax: functional, XML, Manchester This informative conversion will be incorrect for OWL 2 Full. info.pngConversions are provided by the OWL Syntax Converter which tries to "repair" OWL 2 Full inputs to become DL. | |
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xml:base="http://www.w3.org/2002/03owlt/cardinality/conclusions004" > <owl:Ontology/> <owl:Class rdf:ID="c"> <rdfs:subClassOf> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Restriction> <owl:onProperty rdf:resource="#p"/> <owl:cardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger" >2</owl:cardinality> </owl:Restriction> </owl:intersectionOf> </owl:Class> </rdfs:subClassOf> </owl:Class> <owl:ObjectProperty rdf:ID="p"/> </rdf:RDF> | |
Imported ontologies | none |
The version of this test approved by the WebOnt WG was incorrect. The premise ontology present in that version of the test was marked as an OWL DL document, but was not OWL DL because it did not contain a triple of the form O rdf:type owl:Ontology. The ontology has been revised to contain the necessary triple.
The version of this test approved by the WebOnt WG was incorrect. The conclusion ontology present in that version of the test was marked as an OWL DL document, but was not OWL DL because it did not contain a triple of the form O rdf:type owl:Ontology. The ontology has been revised to contain the necessary triple.
OWL EL Report (Informative)
Ontology violates the OWL EL constraints in at least the following:
- The following axiom is not allowed: SubClassOf(c ExactCardinality(2 p Thing))
- due to class description ExactCardinality(2 p Thing)
- The following axiom is not allowed: SubClassOf(c IntersectionOf(MinCardinality(2 p Thing) MaxCardinality(2 p Thing)))
- due to class description IntersectionOf(MinCardinality(2 p Thing) MaxCardinality(2 p Thing))
OWL QL Report (Informative)
Ontology violates the OWL QL constraints in at least the following:
- The following axiom is not allowed: SubClassOf(c IntersectionOf(MinCardinality(2 p Thing) MaxCardinality(2 p Thing)))
- due to class description IntersectionOf(MinCardinality(2 p Thing) MaxCardinality(2 p Thing))
- The following axiom is not allowed: SubClassOf(c ExactCardinality(2 p Thing))
- due to class description ExactCardinality(2 p Thing)
OWL RL Report (Informative)
Ontology violates the OWL RL constraints in at least the following:
- The following axiom is not allowed: SubClassOf(c ExactCardinality(2 p Thing))
- due to class description ExactCardinality(2 p Thing)
- The following axiom is not allowed: SubClassOf(c IntersectionOf(MinCardinality(2 p Thing) MaxCardinality(2 p Thing)))
- due to class description IntersectionOf(MinCardinality(2 p Thing) MaxCardinality(2 p Thing))</t