1 of 15

Toying�with Techs

Around the Globe�in Eight Technologies

VeDPH Summer School 2022

Daniele Fusi

XML - TEI - XSLT - HTML - CSS - JS - RDF - SPARQL

2 of 15

Presentational Device: Text on Support

  • named entities (stars, places, persons, etc.)
  • mapping on spherical surface
  • longer text descriptions (cartigli)

abc

data (content)

presentation

transformation

3 of 15

  • annotating text to define the structure of a textual record
  • structure allows computation and transformation

lemma

morph. class

meaning

4 of 15

XML�extensible markup language

<lemma>sam-ple </lemma> <nr>1</nr> ... <morph>noun (countable)</morph> ... <sense>1 a small part or amount of a product that people can try in order to find out what it is like</sense>

closing tag

opening tag

text in <> represents tags

tags can be forged at will

each set of tags is a dialect

lemma

5 of 15

One Content, Many Presentations

<lemma>sam-ple</lemma>

data exports

long-term archival

databases

documents

services

web sites

for humans

for machines

transform

content

<span style="color:red">sam-ple</span>

XML

HTML

presentations...

6 of 15

<lemma>sam-ple </lemma> <nr>1</nr> ... <morph>noun (countable)</morph> ... <sense>2 a small amount of a product that people can try in order to find out what it is like</sense>

transformation

content (XML)

presentation (HTML)

other presentations...

for machines

for humans

GAP

7 of 15

Sister Technologies At Work

<entry><lemma>sam-ple</lemma></entry>

<div><p><span style=“color:red”>sam-ple</span>

<xsl:template match=“lemma”>

<span style=“color:red”>

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

</span>

<xsl:template>

XML

XSLT

HTML

whenever you find a “lemma” tag:

emit a span tag with red color and content = lemma’s content

text annotated for content (XML)

text annotated�for presentation (HTML)

text representing a transformation from XML to HTML

8 of 15

A Better User Experience

Physical Object

Digital (Re)Presentation

  • we have:
    • annotated text (XML, TEI dialect)
    • XSLT transformation
    • HTML presentation (hypertext)
  • we want:
    • encyclopedic data about cited entities
    • places on a map
    • places on a spinning 3D globe

abc

abc

9 of 15

Data Flow

transcribed

plain text

annotated text�(XML TEI)

XSLT transfor-mation

HTML text presentation

web application

?

reference data?

10 of 15

Web Generations

1.0

2.0

3.0

web of hypertexts

web of applications

web of data

11 of 15

Web 3 “words”: Global Entities

  • each entity gets its globally unique ID, just like each webpage has its address
  • the web being open, IDs are not assigned by a central authority; everyone can create them, as the infrastructure grants their uniqueness
  • many entity “vocabularies” (ontologies) are available for use�or extension

12 of 15

Web 3 “Sentences”: Triples

triple

predicates ontology

E

is-a

F

has-name

G

is-subclass-of

I

Sokrates

E

is-a

A

man

E

is-a

G

is-subclass-of

C

animal

J

Plato

zoologic ontology

D

man

C

mammal

A

animal

B

reptile

B

reptile

B

mammal

Greek philosopher ontologies

I

Sokrates

J

Plato

H

philosopher

H

philosopher

mammal

is-subclass-of

animal

reptile

is-subclass-of

animal

man

is-a

mammal

philosopher

is-a

man

Sokrates

is-a

philosopher

Plato

is-a

philosopher

Sokrates

is-a

animal

deducton

subject

predicate

object

E

is-a

letters on nodes represent their IDs

Sokrates

subject

is-a

predicate

man

object

13 of 15

The Power�of the Network

Marco Polo

person

explorer of Asia

Marco Polo�@it

Поло, Марко @ru

rdfs:label

Venice

Venezia�@it

1254

rdf:type

foaf:Person

dbr:Marco_Polo

dbr:Venice

dbc:Explorers_of_Asia

Venedig�@de

rdfs:label

Venetian lagoon

dbr:Venetian_Lagoon

dbr:Ferdinand_Magellan

Magellan

rdf:type

rdf:type

Giulia Lama

dbr:Giulia_Lama

Alpi Eagles

dbr:Alpi_Eagles

dbo:hubAirport

Anthony Quinn

dbr:Anthony_Quinn

rdf:type

rdfs:label

rdfs:label

dbo:birthDate

dbo:birthPlace

dbo:nearestCity

dbo:deathPlace

14 of 15

Toy Globe App

web application

transcribed

plain text

annotated text�(XML: TEI)

transformation (XML: XSLT)

HTML text presentation

semantic web�(DBPedia, LOD RDF)

mapping web service�(MapBox)

spinning 3D globe�web service�(Cesium)

globe.fusi-soft.com

15 of 15

3D globe

(spin and zoom)

2D map (pan and zoom)

HTML produced from XML via XSLT

to provide more samples, the text here refers to a passage from Marco Polo, with places and persons

realia: places and persons, extracted from text with data from DBPedia

DBPedia provides all the available languages

see & play with the web 3.0 query language (SPARQL)

github.com/vedph/summer-globe-22

globe.fusi-soft.com

web service

web service

XML

XSLT

HTML

CSS

JS

Cesium

Mapbox

semantic�markup

transform XML

hypertext�markup

hypertext�styles

web app�interactive�behavior

RDF

model for web 3.0 data

SPARQL

query language�for RDF

web services are the backbone of web 2.0 software-based infrastructure, providing data and logic to frontends

TEI

XML dialect for�text documents