Toying�with Techs
Around the Globe�in Eight Technologies
VeDPH Summer School 2022
Daniele Fusi
XML - TEI - XSLT - HTML - CSS - JS - RDF - SPARQL
Presentational Device: Text on Support
abc
data (content)
presentation
transformation
lemma
morph. class
meaning
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
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...
<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
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
A Better User Experience
Physical Object
Digital (Re)Presentation
abc
abc
Data Flow
transcribed
plain text
annotated text�(XML TEI)
XSLT transfor-mation
HTML text presentation
web application
?
reference data?
Web Generations
1.0
2.0
3.0
web of hypertexts
web of applications
web of data
Web 3 “words”: Global Entities
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
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
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
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