c_o_l_l_e_c_t_i_v_e_i_o_n_i_n_g
July 2020
diff --git a/scripts/extract_rdf.py b/scripts/extract_rdf.py
index f2fbe07..4ab1d6b 100644
--- a/scripts/extract_rdf.py
+++ b/scripts/extract_rdf.py
@@ -16,6 +16,7 @@ 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/",
@@ -26,7 +27,9 @@ context = {
"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"}
+ "hasPart": {"@id": "dc:hasPart", "@type": "@id"},
+ "url": {"@id": "@id", "@type": "@id"},
+ "type": {"@id": "@type", "@type": "@id"}
}
}
print (g.serialize(format="json-ld", context=context, auto_compact=True))