+
Making things Bubblic
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
Walkie-Talkie
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
blue links
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
UPSETTING SETTINGS
-
+
-
+
-
+
-
+
-
+
-
-
+
Ex, XPUB
-
+
-
+
-
+
-
+
-
+
-
+
Giulia de Giovanelli
diff --git a/scripts/extract_rdf.py b/scripts/extract_rdf.py index 94faf48..b29c4d2 100644 --- a/scripts/extract_rdf.py +++ b/scripts/extract_rdf.py @@ -22,7 +22,10 @@ context = { "dc": "http://purl.org/dc/terms/", "student": { "@id": "xpub:student", "@lang": "en" }, "project": { "@id": "xpub:project", "@type": "@id" }, - "thesis": { "@id": "xpub:thesis", "@type": "@id" } + "thesis": { "@id": "xpub:thesis", "@type": "@id" }, + "image": {"@id": "dc:image", "@type": "@id" }, + "title": "dc:title", + "date": {"@id": "dc:date", "@type": "http://www.w3.org/2001/XMLSchema#date"} } } print (g.serialize(format="json-ld", context=context, auto_compact=True)) diff --git a/scripts/insert_rdfa.py b/scripts/insert_rdfa.py index fd5ed70..915045b 100644 --- a/scripts/insert_rdfa.py +++ b/scripts/insert_rdfa.py @@ -5,6 +5,7 @@ import datetime def patch_project_div (div): div.attrib['typeof'] = "xpub:project" + div.attrib['property'] = "dc:isPartOf" student, title = None, None for i, p in enumerate(div.findall("./p")): # print (f"{i}: p") @@ -35,13 +36,15 @@ def patch_year_div(div): col1 = div.find('.//div[@class="col1"]') logo = col1.find('.//img[@class="logo"]') if logo is None: - print ('no logo') return logo.attrib["property"] = "dc:image" + year = None for pi, p in enumerate(col1.findall("./p")): print (f"{pi}: {p}: {p.text}") if pi == 0: p.attrib['property'] = "dc:title" + div.attrib["id"] = p.text.replace(" ", "-") + div.attrib["resource"] = "#"+div.attrib["id"] elif pi == 1: # p.attrib['property'] = "dc:date" month, year = p.text.split(" ")
Gersande Schellinx
The Social Shelf Project
PDF
Miriam Schöb
How to be a social justice warrior
PDF