OASIS Open Document Format for Office Applications (OpenDocument) TC

 View Only
  • 1.  citation example

    Posted 06-11-2007 15:36
    While waiting on the more comprehensive examples document, here's the 
    promised citation example that will illustrate:
    
    1. the new field
    2. registering files in the manifest, and
    3. the binding mechanism.
    
    Svante, please feel to correct me if I have a detail wrong.
    
    Moving on ...
    
    A citation is an ordered list of references to sources. It may be 
    represented in a number of different styles, and must be able to be 
    regenerated.
    
    So user adds a citation to their document with two references. They use 
    an APA style, and it displays like:
    
         (Doe, 1999:23; Smith, 2000)
    
    In the content file, then, we have a nested field; something like:
    
    
    
    Now, we have to hook up our RDF/XML to these fields to the RDF.
    
    First, we define two RDF graphs (files) and register them in the 
    manifest. Within that, we add a binding to associate content with a 
    stable URI, which we can use to make further statements about (note: 
    this is an abbreviated manifest file just for illustration):
    
    
    
    So we're dealing with four files now:
    
    content.xml
    manifest.rdf
    citation.rdf
    bibliography.rdf
    
    Note: I have omitted the rdf:RDF wrapper and associated namespace 
    declarations in these RDF/XML examples below.
    
    Second, within the citation.rdf file we have the following to encode 
    the field "instructions":
    
    
    
    
    
    Finally, within the bibliography.rdf file we store the raw source 
    metadata (for one; I've omitted the other because I'm in a hurry!):
    
    
    
    
    
    
    
    Any questions?
    
    Bruce