Copyright © 2007 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark and document use rules apply.
@@@TBD@@@
@@@TBD@@@
@@@TBD@@@
... namespace prefix tbd
for namespace URI http://www.w3.org/2007/content#
...
@@@TBD@@@
@@@TBD@@@
@@@TBD@@@
@@@TBD@@@
A resource of type Content
represents content.
There are three subclasses from the Content
class: Base64Content
, TextContent
and XMLContent
.
The Base64Content
class is a subclass of the Content
class. A resource of type Base64Content
represents Base64 encoded binary content. The following properties may appear in resources of type BinaryContent
:
bytes
Example 2.1: A Base64
resource.
<tbd:Base64Content rdf:ID="bc0"> <tbd:bytes>jalbewro3g3ougbwou23osgwbrgowb</tbd:bytes> </tbd:Base64Content>
The TextContent
class is a subclass of the Content
class. A resource of type TextContent
represents textual content. The following properties may appear in resources of type TextContent
:
chars
Example 2.2: A TextContent
resource.
<tbd:TextContent rdf:ID="tc0"> <tbd:chars>body { color: #000; background: #fff } h1 { font-size: 1.6em } h1 { font-size: 1.3em } </tbd:chars> </tbd:TextContent>
The XMLContent
class is a subclass of the Content
class. A resource of type XMLContent
represents XML content. The following properties may appear in resources of type XMLContent
:
xmlDecl
XMLDecl
resource representing the XML declaration,xmlLeadingMisc
docTypeDecl
DocTypeDecl
resource representing the document type declaration,xmlRest
Example 2.5: An XMLContent
resource.
<tbd:XMLContent rdf:ID="xmlc0"> <tbd:xmlDecl rdf:resource="#xmld0"/> <tbd:xmlLeadingMisc rdf:parseType="Literal"><!-- this is a comment --></tbd:xmlLeadingMisc> <tbd:docTypeDecl rdf:resource="#dtd0"/> <tbd:xmlRest rdf:parseType="Literal"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <title>The title</title> </head> <body> <p>Some paragraph.</p> </body> </html></tbd:xmlRest> </tbd:XMLContent>
A resource of type XMLDecl
represents an XML declaration. The following properties may appear in resources of type XMLDecl
:
xmlVersion
xmlEncoding
xmlStandalone
Example 2.6: An XMLDecl
resource.
<tbd:XMLDecl rdf:ID="xmld0"> <tbd:xmlVersion>1.0</tbd:xmlVersion> <tbd:xmlEncoding>UTF-8</tbd:xmlEncoding> <tbd:xmlStandalone>no</tbd:xmlStandalone> </tbd:XMLDecl>
A resource of type DocTypeDecl
represents a document type declaration. The following properties may appear in resources of type DocTypeDecl
:
dtdName
publicId
systemId
internalSubset
Example 2.7: A DocTypeDecl
resource.
<tbd:DocTypeDecl rdf:ID="dtd0"> <tbd:dtdName>html</tbd:dtdName> <tbd:publicId>-//W3C//DTD XHTML 1.0 Strict//EN</tbd:publicId> <tbd:systemId>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</tbd:systemId> </tbd:DocTypeDecl>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:http="http://www.w3.org/2007/content#" > <rdfs:Class rdf:about="http://www.w3.org/2007/content#Base64Content"> <rdfs:label xml:lang="en">Base64 content</rdfs:label> <rdfs:comment xml:lang="en">The base64 encoded content (can be used for all types of content)</rdfs:comment> <rdfs:subClassOf rdf:resource="http://www.w3.org/2007/content#Content"/> </rdfs:Class> <rdfs:Class rdf:about="http://www.w3.org/2007/content#Content"> <rdfs:label xml:lang="en">Content</rdfs:label> <rdfs:comment xml:lang="en">The message body content</rdfs:comment> </rdfs:Class> <rdfs:Class rdf:about="http://www.w3.org/2007/content#DocTypeDecl"> <rdfs:label xml:lang="en">Document type declaration</rdfs:label> <rdfs:comment xml:lang="en">The document type declaration</rdfs:comment> </rdfs:Class> <rdfs:Class rdf:about="http://www.w3.org/2007/content#TextContent"> <rdfs:label xml:lang="en">Text content</rdfs:label> <rdfs:comment xml:lang="en">The text content (can be used for non-XML-wellformed text resources)</rdfs:comment> <rdfs:subClassOf rdf:resource="http://www.w3.org/2007/content#Content"/> </rdfs:Class> <rdfs:Class rdf:about="http://www.w3.org/2007/content#XMLContent"> <rdfs:label xml:lang="en">XML content</rdfs:label> <rdfs:comment xml:lang="en">The XML content (can be used for XML-wellformed resource)</rdfs:comment> <rdfs:subClassOf rdf:resource="http://www.w3.org/2007/content#Content"/> </rdfs:Class> <rdfs:Class rdf:about="http://www.w3.org/2007/content#XMLDecl"> <rdfs:label xml:lang="en">XML declaration</rdfs:label> <rdfs:comment xml:lang="en">The XML declaration</rdfs:comment> </rdfs:Class> <rdf:Property rdf:about="http://www.w3.org/2007/content#docTypeDecl"> <rdfs:label xml:lang="en">Document type declaration</rdfs:label> <rdfs:comment xml:lang="en">The document type declaration</rdfs:comment> <rdfs:domain rdf:resource="http://www.w3.org/2007/content#XMLContent"/> <rdfs:range rdf:resource="http://www.w3.org/2007/content#DocTypeDecl"/> </rdf:Property> <rdf:Property rdf:about="http://www.w3.org/2007/content#dtdName"> <rdfs:label xml:lang="en">DTD name</rdfs:label> <rdfs:comment xml:lang="en">The document type declaration name</rdfs:comment> <rdfs:domain rdf:resource="http://www.w3.org/2007/content#DocTypeDecl"/> <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/> </rdf:Property> <rdf:Property rdf:about="http://www.w3.org/2007/content#publicId"> <rdfs:label xml:lang="en">Public ID</rdfs:label> <rdfs:comment xml:lang="en">The document type declarations's public identifier</rdfs:comment> <rdfs:domain rdf:resource="http://www.w3.org/2007/content#DocTypeDecl"/> <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/> </rdf:Property> <rdf:Property rdf:about="http://www.w3.org/2007/content#systemId"> <rdfs:label xml:lang="en">System ID</rdfs:label> <rdfs:comment xml:lang="en">The document type declarations's system identifier (typed: xsd:anyURI)</rdfs:comment> <rdfs:domain rdf:resource="http://www.w3.org/2007/content#DocTypeDecl"/> <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/> </rdf:Property> <rdf:Property rdf:about="http://www.w3.org/2007/content#xmlDecl"> <rdfs:label xml:lang="en">XML declaration</rdfs:label> <rdfs:comment xml:lang="en">The XML declaration</rdfs:comment> <rdfs:domain rdf:resource="http://www.w3.org/2007/content#XMLContent"/> <rdfs:range rdf:resource="http://www.w3.org/2007/content#XMLDecl"/> </rdf:Property> <rdf:Property rdf:about="http://www.w3.org/2007/content#xmlEncoding"> <rdfs:label xml:lang="en">XML character encoding</rdfs:label> <rdfs:comment xml:lang="en">The XML character encoding</rdfs:comment> <rdfs:domain rdf:resource="http://www.w3.org/2007/content#XMLDecl"/> <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/> </rdf:Property> <rdf:Property rdf:about="http://www.w3.org/2007/content#xmlLeadingMisc"> <rdfs:label xml:lang="en">XML leading misc</rdfs:label> <rdfs:comment xml:lang="en">The XML content preceding the document type declaration</rdfs:comment> <rdfs:domain rdf:resource="http://www.w3.org/2007/content#XMLContent"/> <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#XMLLiteral"/> </rdf:Property> <rdf:Property rdf:about="http://www.w3.org/2007/content#xmlRest"> <rdfs:label xml:lang="en">XML rest</rdfs:label> <rdfs:comment xml:lang="en">The XML content following the document type declaration</rdfs:comment> <rdfs:domain rdf:resource="http://www.w3.org/2007/content#XMLContent"/> <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#XMLLiteral"/> </rdf:Property> <rdf:Property rdf:about="http://www.w3.org/2007/content#xmlStandalone"> <rdfs:label xml:lang="en">XML standalone document declaration</rdfs:label> <rdfs:comment xml:lang="en">The XML standalone document declaration</rdfs:comment> <rdfs:domain rdf:resource="http://www.w3.org/2007/content#XMLDecl"/> <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/> </rdf:Property> <rdf:Property rdf:about="http://www.w3.org/2007/content#xmlVersion"> <rdfs:label xml:lang="en">XML version</rdfs:label> <rdfs:comment xml:lang="en">The XML version</rdfs:comment> <rdfs:domain rdf:resource="http://www.w3.org/2007/content#XMLDecl"/> <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/> </rdf:Property> </rdf:RDF>
The following terms are defined by this specification:
Class name | Label | Allowable types | Required properties | Optional properties |
---|---|---|---|---|
http:Base64Content |
Base64 encoded binary content | tbd:bytes |
||
tbd:Content |
Content | tbd:Base64Content, tbd:TextContent, tbd:XMLContent | ||
tbd:DocTypeDecl |
Document type declaration | tbd:dtdName |
tbd:publicId ,
tbd:systemId ,
tbd:internalSubset |
|
tbd:TextContent |
Textual content | tbd:chars |
||
tbd:XMLContent |
XML content | tbd:xmlRest |
tbd:xmlLeadingMisc ,
tbd:docTypeDecl |
|
tbd:XMLDecl |
XML declaration | tbd:xmlVersion ,
tbd:xmlEncoding ,
tbd:xmlStandalone |
Property name | Label | Domain | Range | Restriction |
---|---|---|---|---|
tbd:bytes |
Bytes | tbd:Base64Content |
Literal | Exactly one per tbd:Base64Content |
tbd:chars |
Characters | tbd:TextContent |
Literal | Exactly one per tbd:TextContent |
tbd:docTypeDecl |
Document type declaration | tbd:XMLContent |
tbd:DocTypeDecl |
At most one per tbd:XMLContent |
tbd:dtdName |
DTD name | tbd:DocTypeDecl |
Literal | Exactly one per tbd:DocTypeDecl |
tbd:internalSubset |
Internal subset | tbd:DocTypeDecl |
Literal | At most one per tbd:DocTypeDecl |
tbd:publicId |
Formal public identifier | tbd:DocTypeDecl |
Literal | At most one per tbd:DocTypeDecl |
tbd:systemId |
System identifier | tbd:DocTypeDecl |
Literal | At most one per tbd:DocTypeDecl |
tbd:xmlDecl |
XML declaration | tbd:XMLContent |
tbd:XMLDecl |
At most one per tbd:XMLContent |
tbd:xmlEncoding |
XML character encoding | tbd:XMLDecl |
Literal | At most one per tbd:XMLDecl |
tbd:xmlLeadingMisc |
XML preceding the document type declaration | tbd:XMLContent |
Literal | At most one per tbd:XMLContent |
tbd:xmlRest |
XML following the document type declaration | tbd:XMLContent |
Literal | Exactly one per tbd:XMLContent |
tbd:xmlStandalone |
XML standalone document declaration | tbd:XMLDecl |
Literal | At most one per tbd:XMLDecl |
tbd:xmlVersion |
XML version | tbd:XMLDecl |
Literal | At most one per tbd:XMLDecl |
The XML file
<?xml version="1.0" encoding="UTF-8" standalone="no"> <!-- this is a comment --> <!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <title>The title</title> </head> <body> <p>Some paragraph.</p> </body> </html>
represented as TextContent
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:http="http://www.w3.org/2007/content#" > <tbd:TextContent rdf:ID="textc0"> <tbd:chars><?xml version="1.0" encoding="UTF-8" standalone="no"> <!-- this is a comment --> <!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <title>The title</title> </head> <body> <p>Some paragraph.</p> </body> </html></tbd:chars> </tbd:TextContent> </rdf:RDF>
or as XMLContent
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:tbd="http://www.w3.org/2007/content#" > <tbd:XMLContent rdf:ID="xmlc0"> <tbd:xmlDecl rdf:resource="#xmld0"/> <tbd:xmlLeadingMisc rdf:parseType="Literal"><!-- this is a comment --></tbd:xmlLeadingMisc> <tbd:docTypeDecl rdf:resource="#dtd0"/> <tbd:xmlRest rdf:parseType="Literal"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <title>The title</title> </head> <body> <p>Some paragraph.</p> </body> </html></tbd:xmlRest> </tbd:XMLContent> <tbd:XMLDecl rdf:ID="xmld0"> <tbd:xmlVersion>1.0</tbd:xmlVersion> <tbd:xmlEncoding>UTF-8</tbd:xmlEncoding> <tbd:xmlStandalone>no</tbd:xmlStandalone> </tbd:XMLDecl> <tbd:DocTypeDecl rdf:ID="dtd0"> <tbd:dtdName>html</tbd:dtdName> <tbd:publicId>-//W3C//DTD XHTML 1.0 Strict//EN</tbd:publicId> <tbd:systemId>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</tbd:systemId> </tbd:DocTypeDecl> </rdf:RDF>