more rdfa for gradshow links

master
Michael Murtaugh 12 months ago
parent e96638475a
commit cfc3cf2754

@ -111,8 +111,8 @@
<p class="gradShow" property="dc:title">Making things Bubblic</p> <p class="gradShow" property="dc:title">Making things Bubblic</p>
<p><datetime datetime="2023-06-01" property="dc:date">June 2023</datetime></p> <p><datetime datetime="2023-06-01" property="dc:date">June 2023</datetime></p>
<div class="ext"> <div class="ext">
<p><a href="https://media.xpub.nl/2023/" target="_blank" class="ext" style="display: none">📻 Collective Publication</a></p> <p><a href="https://media.xpub.nl/2023/" property="dc:link" target="_blank" class="ext" style="display: none">📻 Collective Publication</a></p>
<p><a href="https://media.xpub.nl/2023/" target="_blank" class="ext" style="display: none">📻 Video documentation</a></p> <p><a href="https://media.xpub.nl/2023/" property="dc:link" target="_blank" class="ext" style="display: none">📻 Video documentation</a></p>
</div> </div>
</div> </div>
<div class="col6"> <div class="col6">
@ -178,8 +178,8 @@
<p class="gradShow" property="dc:title">Walkie-Talkie</p> <p class="gradShow" property="dc:title">Walkie-Talkie</p>
<p><datetime datetime="2022-06-01" property="dc:date">June 2022</datetime></p> <p><datetime datetime="2022-06-01" property="dc:date">June 2022</datetime></p>
<div class="ext"> <div class="ext">
<p><a href="https://media.xpub.nl/2022/walkie-talkie-final.email.pdf" target="_blank" class="ext">📻 Collective Publication</a></p> <p><a href="https://media.xpub.nl/2022/walkie-talkie-final.email.pdf" property="dc:link" target="_blank" class="ext">📻 Collective Publication</a></p>
<p><a href="https://media.xpub.nl/2022/gradshow/Walkie_Talkie.720p.mp4" target="_blank" class="ext">📻 Video documentation</a></p> <p><a href="https://media.xpub.nl/2022/gradshow/Walkie_Talkie.720p.mp4" property="dc:link" target="_blank" class="ext">📻 Video documentation</a></p>
</div> </div>
</div> </div>
<div class="col6"> <div class="col6">
@ -241,12 +241,6 @@
<p class="gradShow" property="dc:title">blue links</p> <p class="gradShow" property="dc:title">blue links</p>
<p><datetime datetime="2021-07-01" property="dc:date">July 2021</datetime></p> <p><datetime datetime="2021-07-01" property="dc:date">July 2021</datetime></p>
</div> </div>
<!--
&lt;div class='attch'&gt;
&lt;p&gt;&lt;a href="linkto/attachment1" target='_blank' class="ext"&gt;📎 Attachment 1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="linkto/attachment2" class="int"&gt;📎 Attachment 2&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
-->
<div class="col6"> <div class="col6">
<div class="subrow" typeof="xpub:project" property="dc:hasPart" id="nothanks" resource="/nothanks/"> <div class="subrow" typeof="xpub:project" property="dc:hasPart" id="nothanks" resource="/nothanks/">
<p class="subcl1" property="xpub:student">Damlanur Bilgin</p> <p class="subcl1" property="xpub:student">Damlanur Bilgin</p>
@ -301,7 +295,7 @@
<p class="gradShow" property="dc:title">c_o_l_l_e_c_t_i_v_e_i_o_n_i_n_g</p> <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> <p><datetime datetime="2020-07-01" property="dc:date">July 2020</datetime></p>
<div class="ext"> <div class="ext">
<p><a href="https://collectiveioning.xpub.nl/" target="_blank" class="ext">🛰️ Mini site</a></p> <p><a href="https://collectiveioning.xpub.nl/" property="dc:link" target="_blank" class="ext">🛰️ Mini site</a></p>
</div> </div>
</div> </div>
<div class="col6"> <div class="col6">
@ -353,8 +347,8 @@
<p class="gradShow" property="dc:title">UPSETTING SETTINGS</p> <p class="gradShow" property="dc:title">UPSETTING SETTINGS</p>
<p><datetime datetime="2019-07-01" property="dc:date">July 2019</datetime></p> <p><datetime datetime="2019-07-01" property="dc:date">July 2019</datetime></p>
<div class="attch"> <div class="attch">
<p><a href="2019/postergenerator/" target="_blank" class="ext">📎 poster generator</a></p> <p><a href="2019/postergenerator/" property="dc:link" target="_blank" class="ext">📎 poster generator</a></p>
<p><a href="README19.NFO" class="int">📎 README19.NFO</a></p> <p><a href="README19.NFO" property="dc:link" class="int">📎 README19.NFO</a></p>
</div> </div>
</div> </div>
<div class="col6"> <div class="col6">
@ -395,7 +389,7 @@
<p class="gradShow" property="dc:title">Ex, XPUB</p> <p class="gradShow" property="dc:title">Ex, XPUB</p>
<p><datetime datetime="2018-07-01" property="dc:date">July 2018</datetime></p> <p><datetime datetime="2018-07-01" property="dc:date">July 2018</datetime></p>
<div class="attch"> <div class="attch">
<p><a href="https://media.xpub.nl/gradshow-2018-web.mp4" target="_blank" class="ext">📎 gradshow.mp4</a></p> <p><a href="https://media.xpub.nl/gradshow-2018-web.mp4" property="dc:link" target="_blank" class="ext">📎 gradshow.mp4</a></p>
</div> </div>
</div> </div>
<div class="col6"> <div class="col6">

@ -3,33 +3,8 @@ from rdflib import RDF, URIRef, Namespace
XPUB = Namespace("http://xpub.nl/terms/") XPUB = Namespace("http://xpub.nl/terms/")
import sys 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 = Graph()
g.parse("https://project.xpub.nl/index.rdfa.html", format="rdfa") # 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")
# 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"}
# }
# }
print (g.serialize(format="json-ld", context="https://xpub.nl/contexts/projects.json", auto_compact=True)) print (g.serialize(format="json-ld", context="https://xpub.nl/contexts/projects.json", auto_compact=True))

Loading…
Cancel
Save