Difference between revisions of "Meta data"
From Apache OpenOffice Wiki
B michaelsen (talk | contribs) |
|||
| (12 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
== OpenDocument and Metadata Primer == | == OpenDocument and Metadata Primer == | ||
| − | === Sample === | + | * Flat XML? |
| + | |||
| + | === Sample adding dc:creator metadata to a frame === | ||
| + | |||
| + | [[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:nodeID="graphics01"> | ||
| + | <dc:creator>Mr. X</dc:creator> | ||
| + | </rdf:Description> | ||
| + | </rdf:RDF> | ||
| + | |||
| + | <office:body> | ||
| + | <office:text> | ||
| + | <text:p>This | ||
| + | <draw:frame> | ||
| + | <draw:image rdf:nodeID="graphics01"> | ||
| + | <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) ==== | ||
<pre> | <pre> | ||
| Line 8: | Line 43: | ||
<office:text> | <office:text> | ||
<text:p> | <text:p> | ||
| − | This <draw:frame xml:id=" | + | This <draw:frame><draw:image xml:id="graphics01" xlink:href="Pictures/samplepic.png"/></draw:frame> has metadata. |
</text:p> | </text:p> | ||
</office:text> | </office:text> | ||
| Line 18: | Line 53: | ||
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
xmlns:dc="http://purl.org/dc/elements/1.1/"> | xmlns:dc="http://purl.org/dc/elements/1.1/"> | ||
| − | <rdf:Description rdf: | + | <rdf:Description rdf:about="content.xml#graphics01"> |
<dc:creator>Mr. X</dc:creator> | <dc:creator>Mr. X</dc:creator> | ||
</rdf:Description> | </rdf:Description> | ||
</pre> | </pre> | ||
| + | |||
| + | <pre> | ||
| + | <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> | ||
| + | </pre> | ||
| + | |||
| + | ==== Sample (RDFa) ==== | ||
| + | (not possible) | ||
| + | [[Category:Metadata]] | ||
Latest revision as of 00:02, 16 March 2010
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:nodeID="graphics01">
<dc:creator>Mr. X</dc:creator>
</rdf:Description>
</rdf:RDF>
<office:body>
<office:text>
<text:p>This
<draw:frame>
<draw:image rdf:nodeID="graphics01">
<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)
