Re: Re: ODS Meta Data

Svante Schubert - Sun Germany - Software Engineer <[email protected]> Thu, 15 Oct 2009 18:59:25 +0100
Newsgroups gmane.comp.openoffice.devel.xml
Message-ID <[email protected]>
Hi Gannon,

I had the vision to provide one GRDDL file for creating an RDF graph 
(file) from the ODF files (content.xml, styles.xml and meta.xml) for all 
ODF and provide it on the OASIS site


Did not work for months on it and would be happy if you could have a 
review on this, before I work myself again into it and find a better on 
the OASIS site:
http://www.oasis-open.org/committees/download.php/30609/odf2rdf.xsl

A small command line test scenario  (5MB including Saxon.jar) can be 
found on the odftoolkit.org site:
http://odftoolkit.org/projects/odfdom/downloads/download/OpenDocument-v1.2-draft%252FODF_GRDDL_TEST.zip

PS: After a review of the test package today, I believe I need to 
document the test coverage better, to show that
a) I map all meta.xml elements and
b) all cases for the content (e.g. text content from a bookmark).

PPS: Must admit I did yet not fully understand your form mapping 
scenario. Perhaps you could you tell me what is missing in the GRDDL above?

Thanks,
Svante


On 10/15/09 12:05, Michael Stahl wrote:
> Gannon Dick wrote:
...
>> 3. There are 20
>> or so fields in a drop down box.  If you want to use GRDDL* you'll have
>> to a) take spaces out of the name and b) include a namespace with the
>> dot notation:  e.g. "Checked By" would have to be typed in as
>> "ODF.Checked_By", with a link to "schema.ODF".
> 
> i'm not sure about that... it depends on how you do the mapping...
> if you map to one triple, then you probably get this problem.
> if you map to two triples, one for the name and one for the value, you
> probably do not get this problem.
> in general, the XML datatype for the name is "string", so a transformation
> must handle all possible string values.
> 
>> * there might be no reason for GRDDL.  I've only tested it with spread
>> sheets, but this transform should work for *.odt, etc.  It's an export
>> filter from (flat) ODF to RDF/XML.  It uses the OASIS namespace as a
>> default.  (Warning: Don't modify it to work on the ODF file, just the
>> meta.xml component plus two attributes from office:documents gives 295
>> triples! see: http://www.rustprivacy.org/odf/sstest.zip ).
>>
>> The transform is :  http://www.rustprivacy.org/odf/ODSmeta2RDFXML.xsl
> 
> Svante has also defined a GRDDL transformation, to be hosted at OASIS as
> part of the ODF specification.
> i hope he will answer here with more details.
> 
>> (the name is case sensitive, download it if you like and change the
>> name)