rdfs:range                                                

Definition

rdfs:range is an instance of rdf:Property that is used to state that the values of a property are instances of one or more classes.

Schema

    <rdf:Property rdf:about="http://www.w3.org/2000/01/rdf-schema#range">

        <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2000/01/rdf-schema#"/>

        <rdfs:label>range</rdfs:label>

        <rdfs:comment>A range of the subject property.</rdfs:comment>

        <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Class"/>

        <rdfs:domain rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/>

    </rdf:Property>

Example listing

Triple

P  rdfs:range  C   states that P is an instance of the class rdf:Property, that C is an instance of the class rdfs:Class and that the resources denoted by the objects of triples whose predicate is P are instances of the class C.

RDF/XML

    <rdf:Property rdf:ID="registeredTo">

        <rdfs:domain rdf:resource="#MotorVehicle"/>

        <rdfs:range rdf:resource="#Person"/>

    </rdf:Property>

 

    <rdf:Property rdf:ID="rearSeatLegRoom">

        <rdfs:domain rdf:resource="#PassengerVehicle"/>

        <rdfs:range rdf:resource="&xsd;integer"/>

    </rdf:Property>

Other information

The range of a property limits the individuals that the property may have as its value. If a property relates an individual to another individual, and the property has a class as its range, then the other individual must belong to the range class. For example, the property hasChild may be stated to have the range of Mammal. From this a reasoner can deduce that if Louise is related to Deborah by the hasChild property, (i.e., Deborah is the child of Louise), then Deborah is a Mammal. Range is also a global restriction as is domain above. Again, see the discussion below on local restrictions (e.g. allValuesFrom) for more information.

Where P has more than one rdfs:range property, then the resources denoted by the objects of triples with predicate P are instances of all the classes stated by the rdfs:range properties.

The rdfs:range property can be applied to itself. The rdfs:range of rdfs:range is the class rdfs:Class. This states that any resource that is the value of an rdfs:range property is an instance of rdfs:Class.

The rdfs:range property is applied to properties. This can be represented in RDF using the rdfs:domain property. The rdfs:domain of rdfs:range is the class rdf:Property. This states that any resource with an rdfs:range property is an instance of rdf:Property.

Use in ISO 15926