3 SPDX-FileCopyrightText: 2024, 2025 Lady <https://www.ladys.computer/about/#lady>
 
   4 SPDX-License-Identifier: CC0-1.0
 
   6 <!DOCTYPE Class SYSTEM "../../DTD">
 
   8         <label xml:lang="en">Content</label>
 
   9         <comment xml:lang="en">
 
  11                         A thing which represents a specific representation of an information resource: that conveyed by its <ref target="awol:body">body</ref> or by its <ref target="awol:src">source</ref>.
 
  14                         <ptr target="(AWOL)"/> remarks that this class encompasses things similar to “what one can get from a H·T·T·P connection”, in that it has a body as well as other associated metadata (provided by its other properties).
 
  15                         Providing a literal body, rather than a source, is strongly preferred.
 
  18                         The <ref target="awol:type">media type</ref> of the body may be provided, regardless of whether the body is provided literally or via a source.
 
  19                         However, there are restrictions on literal bodies :—
 
  24                                         If the media type ends in <code>/xml</code> or <code>+xml</code> (case‐insensitively), then the literal body must not be a <resource name="rdf:PlainLiteral"/>.
 
  29                                         If the media type is present, but does not end in <code>/xml</code> or <code>+xml</code> (case‐insensitively), then the literal body must not be a <resource name="rdf:XMLLiteral"/>.
 
  34                                         If the body is a language‐tagged string, then there must not be a media type.
 
  40                 <SpecificResource source="(AWOL)" fragment="Content"/>
 
  47                                                 <resource name="awol:body"/>
 
  49                                         <cardinality>1</cardinality>
 
  53                                                 <resource name="awol:src"/>
 
  55                                         <cardinality>1</cardinality>
 
  61                 <resource name="siocactions:DigitalArtifact"/>
 
  70                                                                 <resource name="awol:type"/>
 
  75                                                                                 <resource name="xsd:string"/>
 
  78                                                                                 <pattern>.*[+/][Xx][Mm][Ll]</pattern>
 
  85                                                                 <resource name="awol:body"/>
 
  87                                                         <qualifiedCardinality>0</qualifiedCardinality>
 
  89                                                                 <resource name="rdf:PlainLiteral"/>
 
  98                                                                 <resource name="awol:type"/>
 
 100                                                         <qualifiedCardinality>0</qualifiedCardinality>
 
 104                                                                                 <resource name="xsd:string"/>
 
 107                                                                                 <pattern>.*[+/][Xx][Mm][Ll]</pattern>
 
 114                                                                 <resource name="awol:body"/>
 
 119                                                                                 <resource name="xsd:string"/>
 
 120                                                                                 <resource name="xsd:base64Binary"/>
 
 129                                                 <resource name="awol:type"/>
 
 131                                         <cardinality>0</cardinality>
 
 137                 <resource name="awol:Link"/>