Digital Media Technology Week 8. Digital Lifecycle.

16
Digital Media Technology Week 8

Transcript of Digital Media Technology Week 8. Digital Lifecycle.

Page 1: Digital Media Technology Week 8. Digital Lifecycle.

Digital Media Technology

Week 8

Page 2: Digital Media Technology Week 8. Digital Lifecycle.

Digital Lifecycle

Page 3: Digital Media Technology Week 8. Digital Lifecycle.

□ XML documents themselves □ Root element: <xsl:stylesheet>□ <xsl:template>□ First template which point to root element of source□ Elements within <xsl:template> :

□ <xsl:value-of>□ <xsl:text>□ <xsl:for-each>□ <xsl:sort>□ <xsl:if>

XSLT Stylesheets

Page 4: Digital Media Technology Week 8. Digital Lifecycle.

□ Database theory

□ W9: Relational data model□ W10: Entity-relationship modelling□ W11: SQL

□ Webprogramming

□ W12: PHP (variables, operators)□ W13: PHP (flow control)□ W14: PHP (HTML forms)

From next week onwards

Page 5: Digital Media Technology Week 8. Digital Lifecycle.

Why XML?

□ Different outputs (paper, pdf, html, mobile phone, etc.)

□ Reuse text; change content (order) and form

□ Exchange text

□ Selecting and searching

Page 6: Digital Media Technology Week 8. Digital Lifecycle.

Different outputs

□ Illustration:

www.vangoghletters.org

□ Other TEI projects:

http://www.tei-c.org/Activities/Projects/

Page 7: Digital Media Technology Week 8. Digital Lifecycle.

Exchange of data

Data providers

Service providers

OAI-PMH

Page 8: Digital Media Technology Week 8. Digital Lifecycle.

Examples of service provides

□ OAIster

□ ArXiv□ Narcis

Page 9: Digital Media Technology Week 8. Digital Lifecycle.

Examples of OAI-PMH requests

□ http://lcweb2.loc.gov/cgi-bin/oai2_0?verb=GetRecord&metadataPrefix=marc21&identifier=oai:lcoa1.loc.gov:loc.gmd/g3791p.rr002300

□ http://lcweb2.loc.gov/cgi-bin/oai2_0?verb=ListRecords&metadataPrefix=oai_dc&set=mussm

□ http://export.arxiv.org/oai2?verb=ListRecords&metadataPrefix=oai_dc&set=cs

Page 11: Digital Media Technology Week 8. Digital Lifecycle.

Use of computer in Digital Humanities

<xsl:for-each select=“item”>

<xsl:value-of select=“imprint/place”/>

</xsl:for-each>

□ XSLT and Xpath:

Page 12: Digital Media Technology Week 8. Digital Lifecycle.

<xsl:for-each select=“item”>

<xsl:value-of select=“.” />

</xsl:for-each>

<xsl:for-each select=“//note”>

<xsl:value-of select=“p” />

</xsl:for-each>

XPath

Page 13: Digital Media Technology Week 8. Digital Lifecycle.

<xsl:value-if select=“collection/body/letter/author/@type” />

<xsl:for-each select=“letter[language=‘English’ ]”>

</xsl:for-each>

XPath

Page 14: Digital Media Technology Week 8. Digital Lifecycle.

Xpath functions

□ count()

<xsl:value-of select=“count ( body/letter )”/>

□ contains()

<xsl:if test=“contains( letter/author , ‘Bohn’ )”>

<xsl:value-of select=“letter” />

</xsl:if>

Page 15: Digital Media Technology Week 8. Digital Lifecycle.

<xsl:apply-templates>

□ Add structure to your stylesheet

□ Modularity

□ <apply-templates select=“[element name]”/>

Page 16: Digital Media Technology Week 8. Digital Lifecycle.

Example

<xsl:template match=“body”>

<xsl:apply-templates select=“letter[language = ‘English’ ] />

<xsl:apply-templates select=“letter[language = ‘German’ ] >

<xsl:template match=“letter”>…</xsl:template>