Difference between revisions of "Meta data"
From Apache OpenOffice Wiki
| Line 6: | Line 6: | ||
[[Image:MetaData_DC_Creator_Mr_X.jpg]] | [[Image:MetaData_DC_Creator_Mr_X.jpg]] | ||
| + | |||
| + | ==== Sample FlatXML ==== | ||
| + | |||
| + | <pre> | ||
| + | <office:document xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" | ||
| + | xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" | ||
| + | xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"> | ||
| + | <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
| + | xmlns:dc="http://purl.org/dc/elements/1.1/"> | ||
| + | <rdf:Description rdf:about="content.xml#graphics01"> | ||
| + | <dc:creator>Mr. X</dc:creator> | ||
| + | </rdf:Description> | ||
| + | <office:body> | ||
| + | <office:text> | ||
| + | <text:p>This | ||
| + | <draw:frame> | ||
| + | <draw:image> | ||
| + | <office:binary-data>...</office:binary-data> | ||
| + | </draw:image> | ||
| + | </draw:frame> | ||
| + | has metadata.</text:p> | ||
| + | </office:text> | ||
| + | </office:body> | ||
| + | </office:document> | ||
| + | </pre> | ||
| + | |||
| + | |||
==== Sample (external RDF stream) ==== | ==== Sample (external RDF stream) ==== | ||
Revision as of 14:42, 1 March 2007
OpenDocument and Metadata Primer
- Flat XML?
Sample adding dc:creator metadata to a frame
Sample FlatXML
<office:document xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<rdf:Description rdf:about="content.xml#graphics01">
<dc:creator>Mr. X</dc:creator>
</rdf:Description>
<office:body>
<office:text>
<text:p>This
<draw:frame>
<draw:image>
<office:binary-data>...</office:binary-data>
</draw:image>
</draw:frame>
has metadata.</text:p>
</office:text>
</office:body>
</office:document>
Sample (external RDF stream)
<office:office:document-content> <office:body> <office:text> <text:p> This <draw:frame><draw:image xml:id="graphics01" xlink:href="Pictures/samplepic.png"/></draw:frame> has metadata. </text:p> </office:text> </office:body> </office:office:document-content>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<rdf:Description rdf:about="content.xml#graphics01">
<dc:creator>Mr. X</dc:creator>
</rdf:Description>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<rdf:Description rdf:about="Pictures/samplepic.png">
<dc:creator>Mr. X</dc:creator>
</rdf:Description>
Sample (RDFa)
(not possible)
