diff --git a/index.rdfa.html b/index.rdfa.html index 461c4dd..bc91bb7 100644 --- a/index.rdfa.html +++ b/index.rdfa.html @@ -242,58 +242,58 @@
-
+

Supisara Burapachaisri

Dear (Cross) Maker,

PDF

-
+

Kimberley Cosmilla

"To whom it may affect"

PDF

-
+ -
+

Jian Haake [ohjian]

MODULAR MATTER

PDF

-
+

Chaeyoung Kim

Minor Stories

PDF

-
+

Francesco Luzzana, km0, sumo, tofu, etc.

Hello Worlding

PDF

-
+

mitsitron [mitsa chaida michelakou]

Thanks for listening

PDF

-
+

Ål Nik [Alexandra Nikolova]

Sound Jams: Deluxe Edition

PDF

-
+ -
+

Gersande Schellinx

The Social Shelf Project

PDF

-
+

Miriam Schöb

How to be a social justice warrior

PDF @@ -307,53 +307,53 @@

-
+

Kendal Beynon

Virtual Gardens

PDF

-
+

Martin Foucaut

Count On Me

PDF

-
+

Camilo García A.

Attempting Diffraction

PDF

-
+

Clara Gradel

a and a

PDF

-
+ -
+

Euna Lee

Frabjousish

PDF

-
+

Jacopo Lega

Habitat

PDF

-
+

Floor van Meeuwen

Sobremesa

PDF

-
+ -
+

Louisa Teichmann

868 MHz

PDF @@ -374,48 +374,48 @@ -->

-
+ -
+

Mark van den Heuvel

Low-Tech Chronicles

PDF

-
+

Avital Barkai

Writing Cure

PDF

-
+ -
+

Ioana Tomici

Terrafying Hear/Say

PDF

-
+ -
+

Mika Motskobili

Lever Burns

PDF

-
+ -
+

Tisa Neža Herlec

The Constitution

PDF

@@ -432,43 +432,43 @@
-
+

Simon Browne

the bootleg library

PDF

-
+

Tancredi Di Giovanni

ilinx

PDF

-
+ -
+ -
+

Artemis Gryllaki

Syster Papyri Magicae

PDF

-
+

Pedro Sá Couto

Tactical Watermarks

PDF

-
+

Rita Graça

Networks of Care

PDF

-
+

Biyi Wen

The Repeater Archive

PDF

@@ -484,33 +484,33 @@
-
+

Natasha Berting

Instant Warnet

PDF

-
+ -
+

Joca van der Horst

Smart Speaker Theatre

PDF

-
+

Alexander Roidl

Poetic Software

PDF

-
+ -
+

Zalán Szakács

Eigengrau

PDF

@@ -524,32 +524,32 @@
-
+

Karina Dukalska

Back It Up

PDF // IMG

-
+

Franc González

Referendum Medialogs

PDF // IMG

-
+

Max Franklin

Anomolous faces

PDF // IMG

-
+

Nadine Rotem-Stibbe

Unpublishing

PDF // IMG

-
+

Pleun Gremmen

Alt Reality Lexicon

PDF // IMG

-
+

Giulia de Giovanelli

Unlearning the Rules of Collectivity

PDF // IMG

diff --git a/scripts/extract_rdf.py b/scripts/extract_rdf.py index 57ea3a2..82df841 100644 --- a/scripts/extract_rdf.py +++ b/scripts/extract_rdf.py @@ -13,4 +13,15 @@ import sys g = Graph() g.parse("https://project.xpub.nl/index.rdfa.html", format="rdfa") -print (g.serialize()) + +context = { + "@context": { + "@language": "en", + "xpub": "http://xpub.nl/terms/", + "dc": "http://purl.org/dc/terms/", + "student": { "@id": "xpub:student", "@lang": "en" }, + "project": { "@id": "xpub:project", "@type": "@id" }, + "thesis": { "@id": "xpub:thesis", "@type": "@id" } + } +} +print (g.serialize(format="json-ld", context=context, auto_compact=True)) diff --git a/scripts/insert_rdfa.py b/scripts/insert_rdfa.py index fc00c9a..56b45b1 100644 --- a/scripts/insert_rdfa.py +++ b/scripts/insert_rdfa.py @@ -24,6 +24,7 @@ for div in t.findall('.//div[@class="subrow"]'): project_link = p.find("./a") project_link.attrib['property'] = "xpub:project" title = project_link.text + div.attrib['resource'] = "#"+project_link.attrib['href'].rstrip("/").split("/")[-1] elif i == 2: for ai, pdf_link in enumerate(p.findall("./a")): if ai == 0: