Warning:
This wiki has been archived and is now read-only.

OMM-RDFa-Sample

From Object Memory Modeling Incubator Group Wiki
Jump to: navigation, search

This HTML5 file shows an exemplary representation of the Object Memory Model in RDFa notation. The transformation is based on this XML sample file. It contains an object memory with a header and one block. In addition a table of contents (as a subset of the memory's blocks) is defined, indexing the mentioned block. The following hierarchy shows a simplified version of the sample memory:

  • OMM
    • HEADER
    • ToC
      • ToC-Entry Block '12345'
    • BLOCKS
      • Block '12345'


RDFa:
<!DOCTYPE html>
<html lang="en" 
xmlns:omm="http://www.w3.org/2005/Incubator/omm/elements/1.0/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <head>
        <meta charset="utf-8" />
        <title>OMM-Sample</title>
    </head>
    <body>
        <article typeof="omm:omm">
            <header>
                <span rel="omm:hasHeader">
                    <section typeof="omm:header">
                        <p>
                            OMM-Header:
                        </p>
                        <ul>
                            <li>
                                OMM-Version: <span property="omm:version">1</span>
                            </li>
                            <li>
                                OMM-PrimaryID: <span property="omm:primaryID">http://www.w3.org/2005/Incubator/omm/microdata/samples/p1</span>
                            </li>
                            <li rel="omm:hasAdditionalBlocks">
                                OMM-Additional Blocks: 
                                <ul>
                                    <li typeof="omm:additionalBlocks">
                                        <span property="omm:uri">http://www.w3.org/2005/Incubator/omm/microdata/samples/p1/ext</span>
                                        of type: <span property="omm:type">omm_http</span>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                    </section>
                </span>
                <span rel="omm:hasToc">
                    <section typeof="omm:toc">
                        <p>
                            OMM-Table of Contents:
                        </p>
                        <ul>
                            <li rel="omm:hasTocEntry">
                                <section typeof="omm:tocEntry">
                                    OMM-ToC Entry:
                                    <ul>
                                        <li>
                                            ID: <span property="omm:blockID">12345</span>
                                        </li>
                                        <li>
                                            Title: <span property="omm:title">sample title</span>
                                        </li>
                                        <li>
                                            Namespace: <span property="omm:namespace">http://www.w3.org/2005/Incubator/omm/microdata/ns/sample</span>
                                        </li>
                                        <li rel="omm:hasCreation">
                                            Creation:
                                            <ul typeof="omm:creation">
                                                <li>
                                                    Creator: <span property="omm:creator">195505177</span>
                                                    of type: <span property="omm:type">duns</span>
                                                </li>
                                                <li>
                                                    Date: <span property="omm:date" datatype="xsd:dateTime">2011-01-30T18:30:00+02:00</span>
                                                    of encoding: <span property="omm:encoding">ISO8601</span>
                                                </li>
                                            </ul>
                                        </li>
                                        <li rel="omm:hasContribution">
                                            Contribution:
                                            <ul>
                                                <li>Contributor:<br/>
                                                    <ul typeof="omm:contribution">
                                                        <li>
                                                            Contributor: <span property="omm:contributor">user@dfki.de</span>
                                                            of type: <span property="omm:type">email</span>
                                                        </li>
                                                        <li>
                                                            Date: <span property="omm:date" datatype="xsd:dateTime">2011-01-31T08:12:50+02:00</span>
                                                            of encoding: <span property="omm:encoding">ISO8601</span>
                                                        </li>
                                                    </ul>
                                                </li>
                                            </ul>
                                        </li>
                                    </ul>
                                </section>
                            </li>
                        </ul>
                    </section>
                </span>
                <span rel="omm:hasBlockList">
                    <section typeof="omm:blockList">
                        <p>
                            OMM-Blocks:
                        </p>
                        <ul>
                            <li rel="omm:hasBlock">
                                    <section typeof="http://www.w3.org/2005/Incubator/omm/microdata/block">
                                        OMM-Block Entry:
                                        <ul>
                                            <li>
                                                ID: <span property="omm:blockID">12345</span>
                                            </li>
                                            <li>
                                                Title: <span property="omm:title">sample title</span>
                                            </li>
                                            <li>
                                                Description: <span property="omm:description">sample description</span>
                                            </li>
                                            <li>
                                                Namespace: <span property="omm:namespace">http://www.w3.org/2005/Incubator/omm/microdata/ns/sample</span>
                                            </li>
                                            <li rel="omm:hasCreation">
                                                Creation:
                                                <ul typeof="omm:creation">
                                                    <li>
                                                        Creator: <span property="omm:creator">195505177</span>
                                                        of type: <span property="omm:type">duns</span>
                                                    </li>
                                                    <li>
                                                        Date: <span property="omm:date" datatype="xsd:dateTime">2011-01-30T18:30:00+02:00</span>
                                                        of encoding: <span property="omm:encoding">ISO8601</span>
                                                    </li>
                                                </ul>
                                            </li>
                                            <li rel="omm:hasContribution">
                                                Contribution:
                                                <ul>
                                                    <li>Contributor:<br/>
                                                        <ul typeof="omm:contribution">
                                                            <li>
                                                                Contributor: <span property="omm:contributor">user@dfki.de</span>
                                                                of type: <span property="omm:type">email</span>
                                                            </li>
                                                            <li>
                                                                Date: <span property="omm:date" datatype="xsd:dateTime">2011-01-31T08:12:50+02:00</span>
                                                                of encoding: <span property="omm:encoding">ISO8601</span>
                                                            </li>
                                                        </ul>
                                                    </li>
                                                </ul>
                                            </li>
                                            <li rel="omm:hasFormat">
                                                <span typeof="omm:format">Format: <span property="omm:format">application/xml</span>of schema: <span property="omm:schema">http://www.w3.org/2005/Incubator/omm/microdata/schema/sample.xsd</span> with encryption: <span property="omm:encryption">none</span></span>
                                            </li>
                                            <li rel="omm:hasType">
                                                <span typeof="omm:type">Type: <span property="omm:type">http://purl.org/dc/dcmitype/Dataset</span></span>
                                            </li>
                                            <li rel="omm:hasSubject">
                                            <ul typeof="omm:subject">
                                                <li rel="omm:hasTag">
                                                    <span typeof="omm:tag">Value: <span property="omm:value">http://o.org/def.owl#ManufacturerData</span> of type <span property="omm:type">ontology</span></span>
                                                </li>
                                                <li rel="omm:hasTag">
                                                    <span typeof="omm:tag">Value: <span property="omm:value">http://www.w3.org/2005/Incubator/omm/ontologies/v1/phase.owl#Production</span> of type <span property="omm:type">ontology</span></span>
                                                </li>
                                                <li rel="omm:hasTag">
                                                    <span typeof="omm:tag">Value: <span property="omm:value">ingredients</span> of type <span property="omm:type">text</span></span>
                                                </li>
                                                <li rel="omm:hasTag">
                                                    <span typeof="omm:tag">
                                                    Value: <span rel="omm:hasComplexValue">
                                                                <span typeof="omm:complexValue">
                                                                     <span property="omm:value">norms</span>
                                                                    .<span rel="omm:hasTag">
                                                                        <span typeof="omm:tag">
                                                                            <span rel="omm:hasComplexValue">
                                                                                <span typeof="omm:complexValue">
                                                                                    <span property="omm:value">din</span>
                                                                                    .<span rel="omm:hasTag">
                                                                                        <span typeof="omm:tag">
                                                                                            <span property="omm:value">e12</span>
                                                                                            <span property="omm:type">text</span>
                                                                                        </span>
                                                                                    </span>
                                                                                </span>
                                                                            </span>
                                                                        </span>
                                                                    </span>
                                                                </span>
                                                        </span>
                                                    </span>
                                                </li>
                                            </ul>
                                            </li>
                                            <span rel="omm:hasLink">
                                            <span property="omm:link" omm:type="url" omm:hash="d32b568cd1b96d459e7291ebf4b25d007f275c9f13149beeb782fac0716613f8">http://www.w3.org/2005/Incubator/omm/samples/p1/ext.xml</omm:link>
                                            </span>
                                            <span rel="omm:hasPayload">
                                                <span property="omm:value">...</span>
                                                <span property="omm:encoding" content="base64"></span>
                                            </span>
                                        </ul>
                                    </section>
                                </span>
                            </li>
                        </ul>
                    </section>
                            </header>
                </article>
            </body>
            </html>