Best Practice: Use rdfs:label and rdfs:comment in RDF Vocabularies

State: Approved

Contact: Nick Crossley


This Best Practice recommends appropriate usage of rdfs:label and rdfs:comment in RDF vocabularies.

This Best Practice is closely related to Best Practice: When to Use rdfs:label Versus =dcterms:title= which discusses when to use similar terms defined in the Dublin Core vocabulary.


The RDF Schema vocabulary defines the terms rdfs:label and rdfs:comment, which have a similar meaning to Dublin Core vocabulary terms dcterms:title and dcterms:description.

The RDF Schema terms SHOULD only be used in vocabulary documents. The value of rdfs:label SHOULD be the part of the URI that comes after the final hash or slash. The value of rdfs:comment should be a brief description of the term.

On the other hand, the Dublin Core terms SHOULD be used in descriptions of individual document-like resources, e.g. those defined in Open Services for Lifecycle Collaboration (OSLC) specifications. dcterms:title SHOULD be a one line summary of the resource, e.g. the title of an article or the headline of a bug report. dcterms:description should be a longer description, possibly containing multiple paragraphs. If either term contains markup then the datatype MUST be XML Literal. The preferred markup for text is XHTML. Note that RDF Schema 1.1 introduced a new literal type for HTML, so this Best Practice needs to be revised.


Here is an example snippet of an RDF vocabulary document:

@prefix oslc: <> .
@prefix rdfs: <> .

oslc:ServiceProvider a rdfs:Class ;
   rdfs:isDefinedBy oslc: ;
   rdfs:label "ServiceProvider" ;
   rdfs:comment "The Service Provider resource" ;
   rdfs:seeAlso <> .

See Also

This topic: LinkedData > WebHome > BestPractices > UseRdfsLabelAndCommentInVocabularies
History: r4 - 2015-10-14 - 00:31:55 - Main.ndjc
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Contributions are governed by our Terms of Use
Ideas, requests, problems regarding TWiki? Send feedback