[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [office-metadata] Export / Import of metadata
Bruce D'Arcus wrote:
Imagine we have the following RDF statement in N3: bruce:example test:literal "level-1 level-2 level-1". We have the RDF statement encoded with RDFa in ODF <text:p rdf:about="bruce:example" rdf:property="test:literal"> <text:span style="styleA">level-1<text:span style="styleB"> level-2 </text:span>level-1</text:span> </text:p> Exported to RDF/XML it can be <rdf:description about="bruce:example"> <test:literal>level-1 level-2 level-1</test:literal> </rdf:description> or <rdf:description about="bruce:example"> <test:literal rdf:parseType="Literal"><text:span style="styleA">level-1<text:span style="styleB"> level-2 </text:span>level-1</text:span></test:literal> </rdf:description> I propose to define the first short variation to be able to directly map a literal from ODF as RDF object literal. The second seems unnecessary large, as the XML subtree is not required and if it would be required the xml:id approach would work. We might add later further RDFa attributes, which define the data-type. But waiting until RDFa is further matured (standarized) might make sense. Elias, you are our RDFa expert. would that be fine for you? Good wording is always important ;-) We should simply reference to the XPATH string() function method and state something like: "The RDF object from a element with RDFa attributes is a literal, which is similar to the result of a Xpath string() with the RDFa element as parameter." http://www.w3.org/TR/xpath#section-String-Functions states "A node-set is converted to a string by returning the string-value of the node in the node-set that is first in document order. If the node-set is empty, an empty string is returned."
Svante |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]