Jen-Jou Hung
DDBC Authority Database
Web Services & Widgets
Jen-Jou Hung
Assistant Professor
Dharma Drum Buddhist College
PNC/ECAI 2009 (2009.10.06)
A Data-Sharing/Integrating Idea of Digital Archive
Projects
Jen-Jou HungJen-Jou Hung
We have already built up many silos.
How to integrate these silos?
2
Digital Archive Projects = Silos?
Jen-Jou HungJen-Jou Hung3
Common Portal Site
Meta Data
Meta Data
Meta Data Meta Data
Meta Data
Meta DataMeta DataMeta Data
Jen-Jou HungJen-Jou Hung
What is in our mind
5
Integration = Data Sharing
take data form one digital archive
get a content enriched digital archive
integrate into other digital archive
Jen-Jou HungJen-Jou Hung
Provide Data on Internet for downloading Database Dump Technical Documents
After downloading data1. to understand the structure and logic of
downloaded data. 2. to write a program to transform the
downloaded data into the your data structure.3. to write another program to make sure the
transformation does not lost any required information.
6
The Most Common Data-Sharing Way
Jen-Jou HungJen-Jou Hung
1. Need time to understand data and write programs.
2. data won’t update automatically. To keep data fresh, continually migrating new data dump is required. (static share)
3. Once the data structure of the new release data dump changing, the data migrating program might need to be changed too.
7
The drawback of using data-dump-share
Jen-Jou HungJen-Jou Hung
A better model for sharing data:1. have an easy way to migrate data
into other system2. independent from the data structure
of source data3. data will be automatically updated
once the source changed (dynamic share)
8
Dynamic Data Sharing
Jen-Jou HungJen-Jou Hung
Providing data access service instead of only data dump.
Project access required data through services No need to understand the complicate structure of
data in backend. Always get the newest data.
9
Data Access service
Data
Data Access Service
Access Required Data on demand
Data
Jen-Jou HungJen-Jou Hung
Google Map is the most famous example.People use Google map api in a web
application to access required map(data) from Google server.
Other famous web APIs:
10
Web Services (Web API)
1. YouTube API2. Google Search
API3. Yahoo Search
API4. Facebook API
5. Flickr API
6. Twitter API
Jen-Jou HungJen-Jou Hung
When digital archives link together(mashup)
11
Digital Archive Networks
Request
Response
Access Multiple Digital Archive at once.
Jen-Jou HungJen-Jou Hung
Easiest way to use DDBC authority database data (http://authority.ddbc.edu.tw/docs)
Web service:Annotation Service
Widgets:Date SelectorPerson SelectorPlace Selector
12
DDBC Authority Database Web Services/Widgets
Jen-Jou HungJen-Jou Hung
Provide annotation for time, person, place entities
Only Two Steps:Includes a java-script package reference in your html
<script type="text/javascript“ src="http://authority.ddbc.edu.tw/webwidget/popup.js">
</script>
Mark-up the authority entry with special tag: <span class="iba:ddbc:authDate" id=“j17488711749224"> <span class="iba:ddbc:authDate" id=“s+0300-01-01+0399-12-31"> <span class=“iba:ddbc:authPerson” id=“A001583“ > <span class="iba:ddbc:authPlace" id=“CN0610102Z01AA“>
13
Annotation Service
Demo
Jen-Jou HungJen-Jou Hung
Help web applications to construct Chinese date input facility
A web widget, which allows user to specify a period of time by selecting from a set of dropdown boxes which contains detail Chinese calendar data.
The widget will send back the begin and the end date in Julian Date number(JDN) format.
14
Date Selector
Demo
Jen-Jou HungJen-Jou Hung15
Person Selector
Demo
Help web applications to construct person input facility
Allow users input just part of person’s name, and popup a box
contains a list of all possible candidates.
The return value is the authority id of selected person.
Jen-Jou HungJen-Jou Hung
Demo
Help web applications to construct Place input facility
A visualization tool which allows user to select a geographical region by drop and draw in a map.
16
Place Selector
System will return the coordinates of Top-left and bottom-right points.
Provide coordinates of historical Chinese cities.
Jen-Jou Hung17
Thank you.
DDBC Web Services:
http://authority.ddbc.edu.tw/docs