TestCase:WebOnt-oneOf-004

From OWL Test Cases

Jump to:navigation, search
[Download OWL]
Test Id WebOnt-oneOf-004
Description This test illustrates the use of dataRange in OWL DL.

This test combines some of the ugliest features of XML, RDF and OWL.

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/oneOf/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.
Open in RDF Validator

<!DOCTYPE rdf:RDF [
   <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#">
   <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#">
]>
<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#"
 xmlns:first="http://www.w3.org/2002/03owlt/oneOf/premises004#"
 xml:base="http://www.w3.org/2002/03owlt/oneOf/premises004" >
 <owl:Ontology/>
 <owl:DatatypeProperty rdf:ID="p">
  <rdfs:range>
   <owl:DataRange>
    <owl:oneOf>
     <rdf:List>
      <rdf:first rdf:datatype="&xsd;integer">1</rdf:first>
      <rdf:rest>
       <rdf:List>
        <rdf:first rdf:datatype="&xsd;integer">2</rdf:first>
        <rdf:rest>
         <rdf:List>
          <rdf:first rdf:datatype="&xsd;integer">3</rdf:first>
          <rdf:rest>
           <rdf:List>
            <rdf:first rdf:datatype="&xsd;integer">4</rdf:first>
            <rdf:rest rdf:resource="&rdf;nil"/>
           </rdf:List>
          </rdf:rest>
         </rdf:List>
        </rdf:rest>
       </rdf:List>
      </rdf:rest>
     </rdf:List>
    </owl:oneOf>
   </owl:DataRange>
  </rdfs:range>
  <rdfs:range>
   <owl:DataRange>
    <owl:oneOf>
     <rdf:List>
      <rdf:first rdf:datatype="&xsd;integer">4</rdf:first>
      <rdf:rest>
       <rdf:List>
        <rdf:first rdf:datatype="&xsd;integer">5</rdf:first>
        <rdf:rest>
         <rdf:List>
          <rdf:first rdf:datatype="&xsd;integer">6</rdf:first>
          <rdf:rest rdf:resource="&rdf;nil"/>
         </rdf:List>
        </rdf:rest>
       </rdf:List>
      </rdf:rest>
     </rdf:List>
    </owl:oneOf>
   </owl:DataRange>
  </rdfs:range>
 </owl:DatatypeProperty>
 <owl:Thing rdf:ID="i">
  <rdf:type>
   <owl:Restriction>
    <owl:onProperty rdf:resource="#p"/>
    <owl:minCardinality rdf:datatype="&xsd;int">1</owl:minCardinality>
   </owl:Restriction>
  </rdf:type>
 </owl:Thing>
</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.
Open in RDF Validator

<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns:first="http://www.w3.org/2002/03owlt/oneOf/premises004#"
    xml:base="http://www.w3.org/2002/03owlt/oneOf/conclusions004" >
   <owl:Ontology/>
   <owl:DatatypeProperty rdf:about="premises004#p"/>
   <owl:Thing rdf:about="premises004#i">
     <first:p rdf:datatype=
"http://www.w3.org/2001/XMLSchema#integer">4</first:p>
   </owl:Thing>
</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 Lite document, but was not OWL Lite 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:

OWL QL Report (Informative)

Ontology violates the OWL QL constraints in at least the following:

OWL RL Report (Informative)

Ontology violates the OWL RL constraints in at least the following:

Navigation
OWL 2 Informative
OWL 2 Normative
Toolbox