master
Michael Murtaugh 5 months ago
parent cbacb3d81b
commit 075f0999f1

@ -0,0 +1,4 @@
index.json: index.rdfa.html
python3 scripts/extract_rdf.py > $@

@ -370,7 +370,7 @@
</div>
</div>
<div id="year2020" class="row">
<div class="col1"><a href="https://collectiveioning.xpub.nl/"><img src="img/xpub_logo_2020.svg" class="logo" style="width: 95%;"></a>
<div class="col1"><img src="img/xpub_logo_2020.svg" class="logo" style="width: 95%;">
<p class="gradShow">c_o_l_l_e_c_t_i_v_e_i_o_n_i_n_g</p>
<p>July 2020</p>
<div class="ext">

@ -368,7 +368,7 @@
</div>
</div>
<div id="c_o_l_l_e_c_t_i_v_e_i_o_n_i_n_g" class="row" typeof="xpub:gradshow" resource="#c_o_l_l_e_c_t_i_v_e_i_o_n_i_n_g">
<div class="col1"><a href="https://collectiveioning.xpub.nl/"><img src="img/xpub_logo_2020.svg" class="logo" style="width: 95%;" property="dc:image"></a>
<div class="col1"><img src="img/xpub_logo_2020.svg" class="logo" style="width: 95%;" property="dc:image">
<p class="gradShow" property="dc:title">c_o_l_l_e_c_t_i_v_e_i_o_n_i_n_g</p>
<p><datetime datetime="2020-07-01" property="dc:date">July 2020</datetime></p>
<div class="ext">

@ -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))

Loading…
Cancel
Save