diff --git a/index.html b/index.html index c1a98ba..ef5e93d 100644 --- a/index.html +++ b/index.html @@ -111,8 +111,8 @@

Making things Bubblic

June 2023

-

-

+

+

@@ -178,8 +178,8 @@

Walkie-Talkie

June 2022

-

📻 Collective Publication

-

📻 Video documentation

+

📻 Collective Publication

+

📻 Video documentation

@@ -241,12 +241,6 @@

blue links

July 2021

-

Damlanur Bilgin

@@ -301,7 +295,7 @@

c_o_l_l_e_c_t_i_v_e_i_o_n_i_n_g

July 2020

@@ -353,8 +347,8 @@

UPSETTING SETTINGS

July 2019

@@ -395,7 +389,7 @@

Ex, XPUB

July 2018

diff --git a/scripts/extract_rdf.py b/scripts/extract_rdf.py index d8d1a76..363840c 100644 --- a/scripts/extract_rdf.py +++ b/scripts/extract_rdf.py @@ -3,33 +3,8 @@ from rdflib import RDF, URIRef, Namespace XPUB = Namespace("http://xpub.nl/terms/") import sys -# url = "https://gallery.constantvzw.org/index.php/Maison-des-arts-expo/" - -# g = Graph() -# with open("index.rdfa.html") as fin: -# data = fin.read() -# g.parse(publicID="index.html", data=data, format="rdfa") -# # g.parse(file=fin, format="rdfa", override_encoding="utf-8") g = Graph() -g.parse("https://project.xpub.nl/index.rdfa.html", format="rdfa") - - -# context = { -# "@context": { -# "@vocab": "http://xpub.nl/terms/", -# "@language": "en", -# "xpub": "http://xpub.nl/terms/", -# "xpubproject": "https://project.xpub.nl/", -# "dc": "http://purl.org/dc/terms/", -# "student": { "@id": "xpub:student", "@lang": "en" }, -# "project": { "@id": "xpub:project", "@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"}, -# "hasPart": {"@id": "dc:hasPart", "@type": "@id"}, -# "url": {"@id": "@id", "@type": "@id"}, -# "type": {"@id": "@type", "@type": "@id"} -# } -# } +# g.parse("https://project.xpub.nl/index.rdfa.html", format="rdfa") +# parsing the local file is failing (issues with rdflib + pyrdfa3) +g.parse("https://project.xpub.nl/index.html", format="rdfa") print (g.serialize(format="json-ld", context="https://xpub.nl/contexts/projects.json", auto_compact=True))