Abstract

@@@TBD@@@

Status of this document

@@@TBD@@@


Table of Contents

  1. Introduction
  2. Classes and Properties

Appendices

  1. Schema in RDF/XML
  2. Schema Limitations
  3. Vocabulary Terms
  4. Practical Example
  5. Document Changes
  6. References

1. Introduction

@@@TBD@@@

1.1. Namespaces

... namespace prefix tbd for namespace URI http://www.w3.org/2007/content# ...

@@@TBD@@@

1.2. Naming Conventions

@@@TBD@@@

1.3. Use Cases

@@@TBD@@@

2. Classes and Properties

@@@TBD@@@

2.1. Content Class

A resource of type Content represents content.

There are three subclasses from the Content class: Base64Content, TextContent and XMLContent.

2.2. Base64Content Class

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
representing the Base64 encoded byte sequence.

Example 2.1: A Base64 resource.

<tbd:Base64Content rdf:ID="bc0">
  <tbd:bytes>jalbewro3g3ougbwou23osgwbrgowb</tbd:bytes>
</tbd:Base64Content>

2.3. TextContent Class

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
representing the character sequence.

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>

2.4. XMLContent Class

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
pointing to an XMLDecl resource representing the XML declaration,
xmlLeadingMisc
representing as an XML Literal the part of the XML following the XML declaration and preceding the document type declaration,
docTypeDecl
pointing to a DocTypeDecl resource representing the document type declaration,
xmlRest
representing as an XML Literal the part of the XML following the document type declaration if there is a document type declaration, or the part following the XML declaration if there is no document type declaration.

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>

2.5. XMLDecl Class

A resource of type XMLDecl represents an XML declaration. The following properties may appear in resources of type XMLDecl:

xmlVersion
representing the XML version specified in the XML declaration,
xmlEncoding
representing the character encoding specified in the XML declaration,
xmlStandalone
representing the standalone document declaration.

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>

2.6. DocTypeDecl Class

A resource of type DocTypeDecl represents a document type declaration. The following properties may appear in resources of type DocTypeDecl:

dtdName
representing the DTD name,
publicId
representing the formal public identifier,
systemId
representing the system identifier,
internalSubset
representing the internal subset.

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>

Appendix A: Schema in RDF/XML

Appendix A.1: Content Schema

<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>

Appendix B: Schema Limitations

Appendix C: Vocabulary Terms

The following terms are defined by this specification:

Classes

Classes in the Content namespace
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

Properties

Properties in the Content namespace
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

Appendix D: Practical Example

Scenario Description

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>

Resulting RDF/XML

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>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"&gt;
&lt;!-- this is a comment --&gt;
&lt;!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" lang="en"&gt;
  &lt;head&gt;
    &lt;title&gt;The title&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;p&gt;Some paragraph.&lt;/p&gt;
  &lt;/body&gt;
&lt;/html&gt;</tbd:chars&gt;
</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>

Appendix E: Document Changes

Appendix F: References