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