a gentle introduction to ddi - what's in it for me? jim jacobs university of california, san...
TRANSCRIPT
![Page 1: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/1.jpg)
A Gentle Introduction to DDI - What's in it for me?
Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota
![Page 2: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/2.jpg)
![Page 3: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/3.jpg)
List of handouts
• Module description
• DDI track
• Guide to sourceforge
• List of websites and documents
• List of people, e-mails
![Page 4: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/4.jpg)
Quick Review: HTML / XML
< >stuff</>
![Page 5: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/5.jpg)
Quick Review: HTML / XML
The Sun Also Rises
![Page 6: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/6.jpg)
Quick Review: HTML / XML
<i>The Sun Also Rises</i>
![Page 7: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/7.jpg)
Quick Review: HTML / XML
<i>The Sun Also Rises</i>
<title>The Sun Also Rises</title>
![Page 8: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/8.jpg)
Quick Review: HTML / XML
<i>The Sun Also Rises</i>
<title>The Sun Also Rises</title>
HTML documents can impart appearance. XML documents impart meaning.
![Page 9: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/9.jpg)
Quick Review: HTML / XML
• <author>• <au>• <pi>
But…where are the rules for <i> and <title>??
Why not <ti> or <t>?
What do we use?
![Page 10: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/10.jpg)
Quick Review: HTML / XML
• <author>• <au>• <pi>
But…where are the rules for <i> and <title>??
Why not <ti> or <t>?
What do we use?The vocabulary and syntax are defined in a special document.
There are two kinds of these special documents:
Document Type Definition (DTD)Schema
![Page 11: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/11.jpg)
Quick Review: HTML / XML
HTML is defined in a DTD:
http://www.w3.org/TR/html4/sgml/dtd.html
<!ENTITY % fontstyle "TT | I | B | BIG | SMALL">
![Page 12: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/12.jpg)
DDI
• DDI 1 and 2 were defined by a DTDhttp://www.icpsr.umich.edu/DDI/Version2-1.dtd
• DDI 3 is defined by a Schemahttp://cvs.sourceforge.net/viewcvs.py/*checkout*/ddi-alliance/ddi/w3c/Version2-1.xsd
![Page 13: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/13.jpg)
DTDs and Schemas
HTML document
HTML DTD
HTML document
![Page 14: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/14.jpg)
DTDs and Schemas
DDI 2 document
DDI 2 DTD
DDI 2 document
![Page 15: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/15.jpg)
DTDs and Schemas
DDI 2 document
DDI 2 DTD
DDI 2 document
DDI 3.0Document
DDI 3.0 Schema
DDI 3.0Document
![Page 16: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/16.jpg)
What is the advantage of Schema over DTD?
• XML as a document format
• XML as a data format
• DTDs are more useful for describing XML document formats
• Schemas are more useful for describing XML data formats.
![Page 17: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/17.jpg)
What is the advantage of Schema over DTD?
Despite the intentions of XML's inventors, who mostly envisioned XML as a format for web pages and other narrative documents to be read by people, the most common applications of XML today involve the storage and transmission of information for use by different software applications and systems.
-- XML in a Nutshell, Elliotte Rusty and W. Scott Means
![Page 18: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/18.jpg)
What is the advantage of Schema over DTD?
• Schemas make it easier to treat metadata like data.
• The focus becomes on the content (e.g., the variables, questions, question groups, concepts, etc.), not the application (e.g. SAS, SPSS, PDF…).
![Page 19: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/19.jpg)
A little vocabulary…
• Elements
<table></table>
• Attributes
<a href=“http://nytimes.com”></a>
![Page 20: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/20.jpg)
A little vocabulary…
• Elements
<title></title>
• Attributes
<recGrp rectype="Person record">
![Page 21: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/21.jpg)
A little vocabulary…
• Data types– string – decimal– integer – boolean – date – time
![Page 22: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/22.jpg)
A little vocabulary…
• Namespace
A means of distinguishing between elements and attributesfrom different XML vocabularies that have the same name.
<table> <tr> <td>Apples</td> <td>Bananas</td> </tr></table>
<table> <name>African Coffee Table</name> <width>80</width> <length>120</length></table>
![Page 23: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/23.jpg)
A little vocabulary…
• Namespace
A means of distinguishing between elements and attributesfrom different XML vocabularies that have the same name.
<h:table> <h:tr> <h:td>Apples</h:td> <h:td>Bananas</h:td> </h:tr></h:table>
<f:table> <f:name>African Coffee Table</f:name> <f:width>80</f:width> <f:length>120</f:length></f:table>
![Page 24: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/24.jpg)
What are the advantages of Schema over DTD?
• Written in XML• Support for data types• Support for namespaces• Better control over information (e.g., minimum and
maxium values)• Support for XML as a data format• Modularity• Machine-Actionable
![Page 25: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/25.jpg)
So… what can we do with DDI 3.0?
• Better manage our local archives with the Archive Module.
• Better manage different (and multiple) physical formats and/or record subsets.
• Transform information from XML into rss, rdf, pdf, html, xml, SPSS, etc.
• Record information on the lifecycle of research [versioning information]
![Page 26: A Gentle Introduction to DDI - What's in it for me? Jim Jacobs University of California, San Diego Wendy Thomas University of Minnesota](https://reader036.vdocuments.us/reader036/viewer/2022070305/5514a698550346ea6e8b5c53/html5/thumbnails/26.jpg)