3 SPDX-FileCopyrightText: 2024 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"/>
49 <resource name="awol:body"/>
51 <cardinality>1</cardinality>
55 <resource name="awol:src"/>
57 <cardinality>0</cardinality>
65 <resource name="awol:body"/>
67 <cardinality>0</cardinality>
71 <resource name="awol:src"/>
73 <cardinality>1</cardinality>
87 <resource name="awol:type"/>
92 <resource name="xsd:string"/>
95 <pattern>.*[+/][Xx][Mm][Ll]</pattern>
102 <resource name="awol:body"/>
104 <qualifiedCardinality>0</qualifiedCardinality>
106 <resource name="rdf:PlainLiteral"/>
115 <resource name="awol:type"/>
117 <qualifiedCardinality>0</qualifiedCardinality>
121 <resource name="xsd:string"/>
124 <pattern>.*[+/][Xx][Mm][Ll]</pattern>
131 <resource name="awol:body"/>
136 <resource name="xsd:string"/>
137 <resource name="xsd:base64Binary"/>
146 <resource name="awol:type"/>
148 <cardinality>0</cardinality>