LISTSERV mailing list manager LISTSERV 16.0

Help for METS Archives


METS Archives

METS Archives


METS@LISTSERV.LOC.GOV


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

METS Home

METS Home

METS  May 2009

METS May 2009

Subject:

Web-deliverable and re-referenceable packages

From:

Brett Zamir <[log in to unmask]>

Reply-To:

Metadata Encoding and Transmission Standard <[log in to unmask]>

Date:

Tue, 12 May 2009 23:04:00 +0800

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (326 lines)

Hello,

This idea is about deliverable packages of files over the web which can 
be linked to, automatically processed, and subsequently referenced for 
offline viewing, with the possibility of different links leading to 
different views of the same data.

I have begun building support within a Firefox extension and would love 
feedback, especially on my METS markup, given I have no prior experience 
with METS.

The basic idea is that one could use a special URI (like 
urn:METSPackage:....), in a browser or other user agent, which would 
either simply reference some content in a simple fashion or link to a 
manifest file in METS which listed a file or group of files, compressed 
or otherwise, which could then be automatically downloaded by the 
browser for viewing or optionally for offline use, being reassembled 
(with stylesheets and templates). While I anticipate our using this for 
XML as well (with XPath, XQuery, XSL, etc. being optionally applied to 
such files, including files already downloaded by the user from other 
sites), I've started with SQL, whereby the browser would download and 
install such a database, and afterwards allow for browsing of the data 
in a customizable fashion.

For example, the user could choose which columns to show, and in what 
order--basically like an SQL database administrator tool, but also 
accessible to the average user who wouldn't need (unless they wished) to 
see all possible tools such as making SQL queries, editing fields, etc. 
One might, for example, simply make a link which opened up a book which 
had accompanying notations (or translations) for each paragraph, and one 
could either let the user choose which columns to show, or let a link 
lead to a particular view (e.g., show the columns for paragraph number, 
text, and translation, and in a particular color/font/etc., but let's 
say, not the column providing automated word-by-word translations of the 
text). One could even include a template which suggested each record be 
shown one at a time, in single-page/flashcard format, as opposed to 
being in one large table.

This kind of tool should be useful for a variety of database tables (or 
XML), while also allowing for sites (even third-party ones) to suggest 
specific views of the data (styles or content arrangement). Again, it 
could be used on live content, offline content, or offline content which 
periodically checked for updates to the file(s) or manifest file. One 
should, for example, be able to use such a link to link to a different 
webpage, but show that webpage in certain colors, transformed, etc.--all 
without the author of such a link or link+manifest file needing to do 
the processing on their own server--potentially offering more power and 
speed to users (and not raise security issues (or for that matter, 
copyright issues) for the server) who could execute queries which would 
be performed on the user's own computer.

I've pasted the XML for such a proposed manifest file below 
(Alternatively, you can also see the file at pastebin (with syntax 
coloring): http://pastebin.com/m60dc086e ).  My comments themselves ask 
additional questions which would be great to have answered, especially 
if others think this might catch on for wider use (and at least might 
illumine areas which would benefit from further clarification in the 
docs). Some questions relate to proposed schema changes as well as seek 
confirmation that I'm on the right track with the approach.

<!-- Note the files below do not exist or have not been placed online 
yet -->
<!-- Might use OBJID's within a predictable URN pattern, so that 
components of the file (or the file object itself), can be
directly targeted within links or other packages; e.g., another file 
could target this file's database contents (so another
download would not be necessary), while also allowing the rendering CSS 
to be substituted -->
<mets xmlns="http://www.loc.gov/METS/" 
xmlns:xlink="http://www.w3.org/1999/xlink"
     LABEL="My first attempt at a mets file (to store a database of 
Chinese characters and mnemonics to remember them)"
     TYPE="dataset"
     OBJID="brettz9.blogspot.com/chinese_db"
 >
<metsHdr CREATEDATE="2009-05-10T11:39:00+08:00">
<agent ROLE="CREATOR" TYPE="INDIVIDUAL">
<name>Brett Zamir</name>
</agent>
</metsHdr>
<fileSec>
<fileGrp VERSDATE="2009-05-10T11:39:00+08:00" USE="databaseCollection">
<!-- we'll only use different fileGrp's if they are identical 
collections but differ in media (and/or zipped
             together); we'll use structMap (or @USE) for conceptual 
distinctions-->
<file ID="chineseMnemonicsZip"
                 OWNERID="chineseMnemonicsDictionaryZip1"
                 SEQ="1"
                 MIMETYPE="application/zip" 
CREATED="2009-05-10T11:39:00+08:00"
                 USE="databasePackage"
 >
<FLocat
                     USE="database"
                     LOCTYPE="URL"
                     
xlink:href="http://bahai-library.com/zamir/chineseMnemonics.zip"
                     xlink:title="Chinese mnemonics dictionary database 
(zipped)"
                     
xlink:role="http://www.iana.org/assignments/media-types/application/zip"
                     />
<transformFile
                     TRANSFORMTYPE="decompression" 
TRANSFORMALGORITHM="unzip" TRANSFORMORDER="1"
                     TRANSFORMBEHAVIOR="zipReader"
                     />
<!-- file: is used as a prefix for relative files in the METS docs; is 
this a standard? -->
<!-- putting MIME type as application/x-sqlite (non-standard); if need 
to use text/plain, change USE to
                 "sqlite" so we have a automatable hook to know the 
database type -->
<file ID="chineseMnemonicsDatabase"
                     OWNERID="chineseMnemonicsDictionary"
                     MIMETYPE="application/x-sqlite" 
CREATED="2009-05-10T11:39:00+08:00"
                     USE="database"><!-- Subsidiary file in zip -->
<FLocat
                         USE="database"
                         LOCTYPE="URL"
                         xlink:href="file:chineseMnemonics.sqlite"
                         xlink:title="Chinese mnemonics dictionary database"
                         
xlink:role="http://bahai-library.com/zamir/xlink-roles/data"
                     />
</file>
<!-- This template is for the database list screen -->
<file ID="chineseMnemonicsTemplatesDb"
                     OWNERID="chineseMnemonicsDictionaryTemplatesDb"
                     MIMETYPE="application/xhtml+xml" 
CREATED="2009-05-10T11:39:00+08:00"
                     USE="template"><!-- Subsidiary file in zip -->
<!-- We might use xlink:show/actuate for how our GUI will show the whole 
assembled package, so
                     adding this info to template files as they most 
closely represent which files in the package will
                     open (though it really is a whole package) -->
<FLocat
                         USE="template"
                         LOCTYPE="URL"
                         xlink:href="file:chineseMnemonicsTemplatesDb.html"
                         xlink:title="Chinese mnemonics dictionary 
database template"
                         
xlink:role="http://bahai-library.com/zamir/xlink-roles/template"
                         xlink:show="new" xlink:actuate="onLoad"
                     />
</file>
<!-- This template is for the database-and-tables screen -->
<file ID="chineseMnemonicsTemplatesDbAndTable"
                     OWNERID="chineseMnemonicsDictionaryTemplatesDbAndTable"
                     MIMETYPE="application/xhtml+xml" 
CREATED="2009-05-10T11:39:00+08:00"
                     USE="template"><!-- Subsidiary file in zip -->
<FLocat
                         USE="template"
                         LOCTYPE="URL"
                         
xlink:href="file:chineseMnemonicsTemplatesDbAndTable.html"
                         xlink:title="Chinese mnemonics dictionary 
database and tables template"
                         
xlink:role="http://bahai-library.com/zamir/xlink-roles/template"
                         xlink:show="new" xlink:actuate="onLoad"
                     />
</file>
<!-- These are user variables in JavaScript which can shape how the 
template is populated -->
<file ID="chineseMnemonicsUserVarsObj"
                     OWNERID="chineseMnemonicsDictionaryUserVarsObj"
                     MIMETYPE="application/javascript" 
CREATED="2009-05-10T11:39:00+08:00"
                     USE="data script"><!-- Subsidiary file in zip -->
<FLocat
                         USE="data script"
                         LOCTYPE="URL"
                         xlink:href="file:chineseMnemonicsUserVarsObj.js"
                         xlink:title="Chinese mnemonics dictionary data 
script"
                         
xlink:role="http://bahai-library.com/zamir/xlink-roles/data-script"
                     />
</file>
</file>
<!-- Putting file outside zip package for the sake of showing how METS 
can structure independent
               of original packaging -->
<file ID="chineseMnemonicsCSSStylesheet"
                     OWNERID="chineseMnemonicsDictionaryCSSStylesheet"
                     MIMETYPE="text/css" CREATED="2009-05-10T11:39:00+08:00"
                     USE="xml-stylesheet">
<FContent
                     USE="xml-stylesheet"
                     
xlink:role="http://www.iana.org/assignments/media-types/text/css"
 >
<!-- Can  there just be a simple CDATA element type to avoid need for 
encoding like this? -->
<binData>LmRiQW5kVGFibGVMaXN0Um93IHtjb2xvcjpyZWQ7fQouZGJMaXN0Um93IHtjb2xvcjpibHVlO30=</binData>
<!-- i.e.,
                             .dbAndTableListRow {color:red;}
                             .dbListRow {color:blue;}
                     -->
</FContent>
</file>
</fileGrp>
</fileSec>
<structMap>
<div ORDER="1" LABEL="List of databases" TYPE="selectionScreen">
<fptr>
<par><!-- The following are not shown in parallel, but used 
simultaneously  -->
<area FILEID="chineseMnemonicsDatabase"/>
<area FILEID="chineseMnemonicsTemplatesDb"/>
<area FILEID="chineseMnemonicsUserVarsObj"/>
<area FILEID="chineseMnemonicsCSSStylesheet"/>
</par>
</fptr>
</div>
<div ORDER="2" LABEL="List of databases with tables"  
TYPE="selectionScreen" >
<fptr>
<par><!-- We only differ here from the previous fptr by the templates 
file, but the portions from each
                                 file used are different -->
<!-- If we put stylesheets, etc. as behavior (to avoid possibly abusing 
"parallel"), we can't include
                         it in a zip, etc.; may allow large XSL later, 
so this is important -->
<!-- Put instead in seq to indicate first load database, then evaluate 
user vars for whole file and for each
                         row of data, then populate templates, then 
attach stylesheet?; but not showing these files on screen
                         separately -->
<area FILEID="chineseMnemonicsDatabase"/>
<area FILEID="chineseMnemonicsTemplatesDbAndTable"/>
<area FILEID="chineseMnemonicsUserVarsObj"/>
<area FILEID="chineseMnemonicsCSSStylesheet"/>
</par>
</fptr>
</div>
</structMap>
<!-- while we use a Mozilla-specific API, it is expected that the 
behaviors (at least
        implementation/mechanism) are optional, so this could say work 
in another browser;
        it is hoped the BTYPE for our profile (and/or xlink:role?) could 
indicate what needs to be done by any consuming app -->
<behaviorSec
         CREATED="2009-05-10T11:39:00+08:00" LABEL="Compression method 
in Mozilla">
<behavior
             ID="zipReader" BTYPE="unzip"
             CREATED="2009-05-10T11:39:00+08:00" LABEL="Zip Reader"
 >
<!-- Assuming arcrole means general nature of the link as opposed to 
target (as xlink:role?);
             using (fake) urn in xlink:href to be independent of 
changing doc site;
             -->
<interfaceDef LOCTYPE="URN"
                 ID="nsIZipReader" LABEL="nsIZipReader interface"
                     xlink:href="urn:org:mozilla:interfaces:nsIZipReader"
                     
xlink:role="https://developer.mozilla.org/en/Interfaces"
                     xlink:arcrole="interface"
                 />
<mechanism
                 ID="zip-reader" 
LABEL="@mozilla.org/libjar/zip-reader;1" LOCTYPE="URN"
                     
xlink:href="urn:org:mozilla:classes:@mozilla.org/libjar/zip-reader;1"
                     
xlink:role="https://developer.mozilla.org/en/Components.classes"
                     xlink:arcrole="class"
                 />
</behavior>
</behaviorSec>
<behaviorSec CREATED="2009-05-10T11:39:00+08:00" LABEL="Template 
combination steps">
<!-- Since no order attributes here, we assume they will be executed in 
document order -->
<!-- Since only IDs to link here with above is through transformFile 
(this is not decompression or validation),
                 or STRUCTID (which is too general), how to refer 
behavior to specific files -->
<behavior BTYPE="sql">
<!-- Could there be a data child (not only mechanism) which allowed 
additional data to be supplied
                         for the action? For example, we might give 
specific SQL code here for querying the tables to
                         produce the two views represented by the two 
divs above; if not can the schema be made to
                         allow any namespace here (and elsewhere where 
it may be useful too)?-->
<!-- PUT MOZILLA SQLITE INTERFACE/CLASS INFO HERE -->
</behavior>
<!-- Do another behavior for applying JS to templates? -->
<behavior
                 BTYPE="evaluateJSForTemplateFile"
                 CREATED="2009-05-10T11:39:00+08:00" LABEL="JavaScript 
for templates to evaluate once for each file">
<!-- PUT JSON OR E4X, ETC. INTERFACE/CLASS HERE -->
</behavior>
<behavior
                 BTYPE="evaluateJSForTemplatePerRow"
                 CREATED="2009-05-10T11:39:00+08:00" LABEL="JavaScript 
for templates to evaluate once per row of data">
<!-- PUT JSON OR E4X, ETC. INTERFACE/CLASS HERE -->
</behavior>
<!-- Since our stylesheet might not be attached or attached properly, we 
have to include a behavior to indicate
               how to associate the stylesheet -->
<behavior
                 BTYPE="associateStylesheet"
                 CREATED="2009-05-10T11:39:00+08:00" LABEL="Associate 
stylesheeet to resulting template (both
                 will be stored in database)">
<!-- PUT DOM INTERFACE/CLASS INFO HERE (appending stylesheet in 
temporary document) -->
</behavior>
</behaviorSec>
</mets>

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
May 2019
April 2019
March 2019
November 2018
October 2018
September 2018
July 2018
June 2018
April 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
July 2017
June 2017
May 2017
April 2017
January 2017
October 2016
August 2016
July 2016
June 2016
May 2016
April 2016
January 2016
September 2015
August 2015
June 2015
May 2015
April 2015
March 2015
February 2015
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
January 2014
December 2013
October 2013
September 2013
August 2013
June 2013
May 2013
April 2013
February 2013
November 2012
October 2012
September 2012
August 2012
June 2012
May 2012
March 2012
February 2012
January 2012
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
December 2003
November 2003
October 2003
September 2003
August 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001

ATOM RSS1 RSS2



LISTSERV.LOC.GOV

CataList Email List Search Powered by the LISTSERV Email List Manager