RDFS constructs are the RDFS classes, associated properties and utility properties built on the
vocabulary of RDF.
Classes ; : Represents the class of everything. All things described by RDF are resources. ; : An
rdfs:Class declares a resource as a
class for other resources. A typical example of an rdfs:Class is in the Friend of a Friend (
FOAF) vocabulary. An instance of is a resource that is linked to the class using the
property, such as in the following formal expression of the
natural-language sentence: 'John is a Person'. ex:John rdf:type foaf:Person The definition of is recursive: is the class of classes, and so it is an instance of itself. rdfs:Class rdf:type rdfs:Class The other classes described by the RDF and RDFS specifications are: ; :
literal values such as strings and integers. Property values such as textual strings are examples of RDF literals. Literals may be plain or typed. ; : the class of datatypes. is both an instance of and a subclass of . Each instance of is a subclass of . ; : the class of XML literal values. is an instance of (and thus a subclass of ). ; : the class of properties.
Properties Properties are instances of the class and describe a relation between subject resources and object resources. When used as such a property is a
predicate (see also
RDF: reification). ; : the
rdfs:domain of an declares the class of the
subject in a
triple whose predicate is that property. ; : the
rdfs:range of an declares the class or datatype of the
object in a triple whose predicate is that property. For example, the following declarations are used to express that the property relates a subject, which is of type , to an object, which is of type : ex:employer rdfs:domain foaf:Person ex:employer rdfs:range foaf:Organization Given the previous two declarations, from the triple: ex:John ex:employer ex:CompanyX can be inferred (resp. follows) that is a , and is a . ; : a property used to state that a resource is an instance of a class. A commonly accepted
QName for this property is "a". ; : allows declaration of hierarchies of classes.{{Cite web|url=https://www.w3.org/TR/rdf11-primer/|title=RDF 1.1 Primer|date=2014-06-24|access-date=2021-04-23|website=W3C|version=Working Group Note|publisher=RDF Working Group For example, the following declares that 'Every Person is an Agent': foaf:Person rdfs:subClassOf foaf:Agent Hierarchies of classes support inheritance of a property domain and range (see definitions in the next section) from a class to its subclasses. ; : an instance of that is used to state that all resources related by one property are also related by another. ; : an instance of that may be used to provide a human-readable version of a resource's name. ; : an instance of that may be used to provide a human-readable description of a resource.
Utility properties ; : an instance of that is used to indicate a resource that might provide additional information about the subject resource. ; : an instance of that is used to indicate a resource defining the subject resource. This property may be used to indicate an RDF vocabulary in which a resource is described. == RDFS entailment ==