Datatype-DataComplementOf-001

From OWL Test Cases

Jump to:navigation, search
[Download OWL]
Test Id Datatype-DataComplementOf-001
Description Demonstrates that the complement of a datatype contains literals from other datatypes.
Status Approved (2009-05-20, when passed by 2 implementations) (proposed 2009-05-19)
Author Mike Smith
Original syntax Functional
Syntactic Species/Profile OWL 2 DL (not EL, not QL, not RL)
Semantics This test is applicable under both direct and RDF-based semantics.
Specification Reference http://www.w3.org/TR/owl2-syntax/#Complement_of_Data_Ranges
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( xsd: = <http://www.w3.org/2001/XMLSchema#> )
Prefix( : = <http://example.org/> )

Ontology(
  Declaration( DataProperty( :p ) )

  DataPropertyRange( :p DataComplementOf( xsd:positiveInteger ) )

  DataPropertyAssertion( :p :i "-1"^^xsd:negativeInteger )
  DataPropertyAssertion( :p :i "A string"^^xsd:string )
)
Imported ontologies none
Auxiliary syntax documents Datatype-DataComplementOf-001-RDFXML
Navigation
OWL 2 Informative
OWL 2 Normative
Toolbox