Skip to content

RSL and Schema.org ​

RSL integrates with Schema.org to enable publishers to associate additional metadata with licensable digital assets.

Adding Schema.org metadata to an RSL license ​

The optional RSL <schema> element provides a reference to additional metadata about a digital asset, including the author, publisher, or date of creation. This element must contain a URL that resolves to a Schema.org CreativeWork declaration.

Example Code ​

Below is an example RSL file that links to a Schema.org declaration.

xml
<rsl xmlns="https://rslstandard.org/rsl">
 <content url="https://gutenberg.org/2701/pg2701-h.zip">
   <schema>https://gutenberg.org/ebooks/2701</schema>
   <license>
     <payment type="free"/>
   </license>
 </content>
</rsl>

Corresponding corresponding Schema.org declaration.

json
{
  "@context": "https://schema.org",
  "@type": "Book",
  "name": "Moby Dick; Or, The Whale by Herman Melville",
  "author": {
    "@type": "Person",
    "name": "Herman Melville"
  }
}

Adding an RSL license to a Schema.org CreativeWork ​

The Schema.org license property may be used to link a CreativeWork to an RSL file that defines machine-readable usage rights and licensing terms.

Example Code ​

Below is a Schema.org declaration that links to an RSL license file.

json
{
  "@context": "https://schema.org",
  "@type": "Book",
  "name": "Moby Dick; Or, The Whale by Herman Melville",
  "author": {
    "@type": "Person",
    "name": "Herman Melville"
  },
  "license": "https://gutenberg.org/ebooks-rsl-license.xml"
}