Numeric-restrictions-different-type

From OWL Test Cases

Jump to:navigation, search
[Download OWL]
Test Id Consistent Numeric Restrictions of Different Type
Description The data property dp has a restriction to bytes >= 5 (4.5 needs to be rounded up) and <= 7 and a restriction to decimals >= 6.0 and <= 6.8. The individual a is required to have a dp successor, but 6 is a value that fulfils both restrictions.
Status Rejected (2009-06-12 (xsd:float is disjoint from xsd:decimal so constraining facet is invalid))
Author Birte Glimm
Original syntax Functional
Syntactic Species/Profile OWL 2 DL (EL profile assertion missing, QL profile assertion missing, RL profile assertion missing)
Semantics This test is applicable under both direct and RDF-based semantics.
Consistent ontology (download)

Convert syntax: RDF, 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.

Prefix(:=<http://example.org/>)
Prefix(xsd:=<http://www.w3.org/2001/XMLSchema#>)
Prefix(rdfs:=<http://www.w3.org/2000/01/rdf-schema#>)
Ontology(
  Declaration(NamedIndividual(:a))
  Declaration(DataProperty(:dp))
  Declaration(Class(:A))
  SubClassOf(:A 
    DataAllValuesFrom(:dp DatatypeRestriction(
      xsd:byte 
      xsd:minInclusive "4.5"^^xsd:decimal 
      xsd:maxInclusive "7"^^xsd:short)
    )
  ) 
  SubClassOf(:A 
    DataAllValuesFrom(:dp DatatypeRestriction(
      xsd:decimal 
      xsd:minInclusive "6.0"^^xsd:float 
      xsd:maxInclusive "6.8"^^xsd:decimal)
    )
  ) 
  ClassAssertion(:A :a)
  ClassAssertion(DataSomeValuesFrom(:dp rdfs:Literal) :a)
)
Imported ontologies none
Navigation
OWL 2 Informative
OWL 2 Normative
Toolbox