| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rpt="http://openoffice.org/2005/report" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" office:version="1.2" grddl:transformation="http://docs.oasis-open.org/office/1.2/xslt/odf2rdf.xsl"> |
| 3 |
<office:scripts/> |
| 4 |
<office:font-face-decls> |
| 5 |
<style:font-face style:name="FreeSans1" svg:font-family="FreeSans"/> |
| 6 |
<style:font-face style:name="Times New Roman" svg:font-family="'Times New Roman'" style:font-family-generic="roman" style:font-pitch="variable"/> |
| 7 |
<style:font-face style:name="Arial" svg:font-family="Arial" style:font-family-generic="swiss" style:font-pitch="variable"/> |
| 8 |
<style:font-face style:name="Droid Sans" svg:font-family="'Droid Sans'" style:font-family-generic="system" style:font-pitch="variable"/> |
| 9 |
<style:font-face style:name="FreeSans" svg:font-family="FreeSans" style:font-family-generic="system" style:font-pitch="variable"/> |
| 10 |
</office:font-face-decls> |
| 11 |
<office:automatic-styles/> |
| 12 |
<office:body> |
| 13 |
<office:text> |
| 14 |
<text:sequence-decls> |
| 15 |
<text:sequence-decl text:display-outline-level="0" text:name="Illustration"/> |
| 16 |
<text:sequence-decl text:display-outline-level="0" text:name="Table"/> |
| 17 |
<text:sequence-decl text:display-outline-level="0" text:name="Text"/> |
| 18 |
<text:sequence-decl text:display-outline-level="0" text:name="Drawing"/> |
| 19 |
</text:sequence-decls> |
| 20 |
<text:p text:style-name="Standard"> |
| 21 |
This document has RDF linked via the xml:id tag. The entire third paragraph is linked, The first time the string "Barry" appears in the subsequent paragraph is linked using text:meta, The header after that is linked (text:h), the bookmark containing the second sentence after the header is linked, and the table cell which delcares itself linked is linked. There is text before and after linked elements so you can see that when the cursor moves out of them then the RDF is no longer linked. For example, after the "Barry" text:meta link you should no longer find the RDF for barry, this is to test that scoping is working as it should. This is the first paragraph. Have you no sense of decency sir at long last? Frankly my dear, I don’t give an xml element.</text:p> |
| 22 |
<text:p text:style-name="Standard"/> |
| 23 |
|
| 24 |
<text:p text:style-name="Standard"> |
| 25 |
This document contains xml:id references to text:p, text:h, bookmarks, text:meta, and a table cell. |
| 26 |
I should move the RDF menu entries to their own to level menu, but at the moment you move the cursor and select "Collaborate/Dump RDF for point." and the UT_debugmsgs should tell you what RDF is linked to the document elements around the current cursor position. |
| 27 |
</text:p> |
| 28 |
<text:p text:style-name="Standard"/> |
| 29 |
|
| 30 |
<text:p text:style-name="Standard" xml:id="dan" >This entire paragraph is linked to dan's foaf entry. And the fun puns continue in this second paragraph. Self describing documents are load of fun eh? Why does anyone read Tolstoy when this masterpiece is available? How long is a string, longer than a USB cable?</text:p> |
| 31 |
<text:p text:style-name="Standard"/> |
| 32 |
|
| 33 |
<text:p text:style-name="Standard">This paragraph includes a text:meta tag which surrounds the following reference to <text:meta xml:id="barry">Barry</text:meta>. If you have the point on that last "Barry" then you should be able to discover some RDF information too.</text:p> |
| 34 |
<text:p text:style-name="Standard"/> |
| 35 |
|
| 36 |
<text:h text:style-name="Heading" xml:id="h1">This header is linked to RDF</text:h> |
| 37 |
|
| 38 |
<text:p> |
| 39 |
This is just some plain text in a text:p.<text:bookmark-start text:name="rdf bookmark" xml:id="mark1" /> |
| 40 |
You will find this sentence which is in a bookmark also has |
| 41 |
some RDF.<text:bookmark-end text:name="rdf bookmark"/> This is after the bookmark, so you shouldn't find it in the RDF at point for anything here. |
| 42 |
</text:p> |
| 43 |
|
| 44 |
<text:p> |
| 45 |
What follows is a table which has some RDF linked to some cells. |
| 46 |
</text:p> |
| 47 |
|
| 48 |
<table:table table:name="mytable1" table:style-name="mytable1"> |
| 49 |
<table:table-column table:number-columns-repeated="3"/> |
| 50 |
<table:table-header-rows> |
| 51 |
<table:table-row> |
| 52 |
<table:table-cell office:value-type="string"> |
| 53 |
<text:p text:style-name="Table_20_Heading">Header R1C1</text:p> |
| 54 |
</table:table-cell> |
| 55 |
<table:table-cell office:value-type="string"> |
| 56 |
<text:p text:style-name="Table_20_Heading">Header R1C2</text:p> |
| 57 |
</table:table-cell> |
| 58 |
<table:table-cell office:value-type="string"> |
| 59 |
<text:p text:style-name="Table_20_Heading">Header R1C3</text:p> |
| 60 |
</table:table-cell> |
| 61 |
</table:table-row> |
| 62 |
</table:table-header-rows> |
| 63 |
|
| 64 |
<table:table-row> |
| 65 |
<table:table-cell> |
| 66 |
<text:p text:style-name="Table_20_Contents">Raw data</text:p> |
| 67 |
</table:table-cell> |
| 68 |
<table:table-cell xml:id="r1c2" > |
| 69 |
<text:p text:style-name="Table_20_Contents">This cell is linked!</text:p> |
| 70 |
</table:table-cell> |
| 71 |
<table:table-cell> |
| 72 |
<text:p text:style-name="Table_20_Contents">No link here</text:p> |
| 73 |
</table:table-cell> |
| 74 |
</table:table-row> |
| 75 |
</table:table> |
| 76 |
|
| 77 |
<text:p> |
| 78 |
Something after the table... |
| 79 |
</text:p> |
| 80 |
|
| 81 |
</office:text> |
| 82 |
</office:body> |
| 83 |
</office:document-content> |