rdfs:comment is an instance of rdf:Property that may be used to provide a human-readable description of a resource.

The rdfs:domain of rdfs:comment is rdfs:Resource. The rdfs:range of rdfs:comment is rdfs:Literal.

NOTE: In keeping with their definition in RDF, rdfs:label  can only be used with data literals.


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

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


        <rdfs:comment>A description of the subject resource.</rdfs:comment>

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

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


Example listing


R   rdfs:comment   L  states that L is a human readable description of R.


    <rdf:Description rdf:about="urn:example:xhtmldocument-css">

        <rdfs:comment>The document style sheet.</rdfs:comment>

        <xpackage:location xlink:href="stylesheet.css"/>



Other information

A textual comment helps clarify the meaning of RDF classes and properties. Such in-line documentation complements the use of both formal techniques (Ontology and rule languages) and informal (prose documentation, examples, test cases). A variety of documentation forms can be combined to indicate the intended meaning of the classes and properties described in an RDF vocabulary. Since RDF vocabularies are expressed as RDF graphs, vocabularies defined in other namespaces may be used to provide richer documentation.

Multilingual documentation is supported through use of the language tagging facility of RDF literals.

Use in ISO 15926