Help:COAP-3180/week7: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
 
(11 intermediate revisions by the same user not shown)
Line 7: Line 7:
* Digital identities
* Digital identities


=== Classroom activities ===
=== Classroom activities Monday ===


* Installing the cformsII plugin for Wordpress as explained in [[Wordpress_installation_and_configuration#Using_the_CformsII_plugin_to_collect_and_display_data|Using the CformsII plugin to collect and display data]]
* Installing the cformsII plugin for Wordpress as explained in [[Wordpress_installation_and_configuration#Using_the_CformsII_plugin_to_collect_and_display_data|Using the CformsII plugin to collect and display data]]
* Recall of FLOWR principles. Some Xquery practice with the following URLs
** http://www.dbis.informatik.uni-goettingen.de/Mondial/mondial.xml
** http://www.cafeconleche.org/examples/shakespeare/ (on of the Hamlet files, you may [http://xml.coverpages.org/bosakShakespeare200.htmlget its zip from OASIS]
* Visit of [http://exist.sourceforge.net/index.html eXist database] home (if time left)
=== Classroom activities Wednesday ===
; First hour: talk and some visits/demos
* A tour of ''identity and authentication'' on the web issues
** Get an OpenID from https://www.myopenid.com/ and configure
** Find a service where you can login with this OpenID
* Identity management and privacy
** Have a look at what Internet knows about you: http://123people.com (select the right country)
** Get an XRI (i-name) from http://www.freexri.com/ and configure
* [[LDAP]] (local) and [http://en.wikipedia.org/wiki/Shibboleth_%28Internet2%29 Shibboleth] (nation-wide, based on SAML)
** [http://www.ukfederation.org.uk/content/Documents/HowItWorks How it works] (UK Access federation)
** Look at [http://video.google.co.uk/videoplay?docid=6664146721575915928# Shibboleth video]
; Second hour
* Exam Q/A
* Work on Term project Q/A


=== Homework 6 ===
=== Homework 6 ===


=== Task ===
==== Task ====
 
* Create three XQuery scripts that extract three different data from a single large XML File.
 
* You are expected to use at least simple FLWR expressions like the following one:
<source lang="xml">
<result>
  { for $t in
    fn:doc("http://tecfa.unige.ch/guides/xml/examples/shakespeare.1.10.xml/hamlet.xml")//ACT//SCENE/TITLE
  return $t }
</result>
</source>
 
* You will get a better grade if you render in HTML, e.g.
<source lang="xml">
xquery version "1.0";
 
let $source_doc := fn:doc("http://tecfa.unige.ch/guides/xml/examples/shakespeare.1.10.xml/hamlet.xml")
return
<html>
<head> <title>Questionnaire Items</title> </head>
<body>
  Acts of Hamlet
  <ol>
  { for $t in $source_doc//ACT//SCENE/TITLE
  return
  <li> {$t/text()} </li>
  }
  </ol>
</body>
</html>
</source>


* Create three XQuery scripts that extract three different data from a single large XML File
... you will get an A if your are somewhat original and/or if you produce more complex queries.


==== Submission Dates ====
==== Submission Dates ====


* This homework is due at start of Monday lesson, week 8.
* This homework is due at start of Monday lesson, week 8.
* Students must provide three XQuery scripts plus a URL of the XML file.
* Students must provide three XQuery scripts plus a copy of the XML file.
* Each homework counts 10% in your global evaluation. The four best homeworks will be taken into account.
* Each homework counts 10% in your global evaluation. The four best homeworks will be taken into account.


Line 32: Line 90:


* Read my handout first, you may need to find some extra reading.
* Read my handout first, you may need to find some extra reading.
* If you use the XQuery USE ME plugin, set the '''Output file ext. to html''' !


=== Links and teaching materials ===
=== Links and teaching materials XQuery ===
 


; Online software
; Online software
Line 46: Line 104:


; Optional reading
; Optional reading
* Darshan Singh, [http://www.yukonxml.com/articles/xquery/ Essential XQuery - The XML Query Language]
* Darshan Singh, [http://www.yukonxml.com/articles/xquery/ Essential XQuery - The XML Query Language] (currently broken ?)
* [http://en.wikipedia.org/wiki/XQuery XQuery] (Wikipedia)
* [http://en.wikipedia.org/wiki/XQuery XQuery] (Wikipedia)
* [http://www.datadirect.com/developer/xquery/xquerybook/index.ssp XQuery: A Guided Tour - Download the free tutorial today]. This is an 80-page tutorial from the ''XQuery from the Experts: A Guide to the W3C XML Query Language'' book by Howard Katz, Don Chamberlin, Denise Draper, Mary Fernandez, Michael Kay, Jonathan Robie, Michael Rys, Jerome Simeon, Jim Tivy, and Philip Wadler, (ISBN 0-321-18060-7), 2004.
* [http://en.wikibooks.org/wiki/XQuery XQuery] (Wikibooks, for the ambitious).
=== Links and teaching materials Digital identity ===
* Web IDs and authentication [[Digital identity]], [[OpenID]], [[i-name]]
* Institutional authentication [[single sign-on]], [[LDAP]], [http://en.wikipedia.org/wiki/Shibboleth_%28Internet2%29 Shibboleth] (Wikipedia)

Latest revision as of 09:47, 24 February 2010

Week 7 - COAP 3180

Topics Covered

  • Termproject - Getting it done with Wordpress
  • XQuery (follow-up)
  • Digital identities

Classroom activities Monday

Classroom activities Wednesday

First hour
talk and some visits/demos
  • A tour of identity and authentication on the web issues
Second hour
  • Exam Q/A
  • Work on Term project Q/A

Homework 6

Task

  • Create three XQuery scripts that extract three different data from a single large XML File.
  • You are expected to use at least simple FLWR expressions like the following one:
<result>
  { for $t in 
    fn:doc("http://tecfa.unige.ch/guides/xml/examples/shakespeare.1.10.xml/hamlet.xml")//ACT//SCENE/TITLE
   return $t }
</result>
  • You will get a better grade if you render in HTML, e.g.
xquery version "1.0";

let $source_doc := fn:doc("http://tecfa.unige.ch/guides/xml/examples/shakespeare.1.10.xml/hamlet.xml")
return
<html>
 <head> <title>Questionnaire Items</title> </head>
 <body>
  Acts of Hamlet
  <ol>
  { for $t in $source_doc//ACT//SCENE/TITLE
   return 
   <li> {$t/text()} </li>
   }
   </ol> 
 </body>
</html>

... you will get an A if your are somewhat original and/or if you produce more complex queries.

Submission Dates

  • This homework is due at start of Monday lesson, week 8.
  • Students must provide three XQuery scripts plus a copy of the XML file.
  • Each homework counts 10% in your global evaluation. The four best homeworks will be taken into account.

Evaluation

  • Three working scripts
  • Complexity of the query
  • Rendering quality, e.g. you get a bonus if you render in a (X)HTML page.

Tips for the homework

  • Read my handout first, you may need to find some extra reading.
  • If you use the XQuery USE ME plugin, set the Output file ext. to html !

Links and teaching materials XQuery

Online software
Teaching materials
Optional reading

Links and teaching materials Digital identity