|
|
@ -16,6 +16,7 @@ g.parse("https://project.xpub.nl/index.rdfa.html", format="rdfa")
|
|
|
|
|
|
|
|
|
|
|
|
context = {
|
|
|
|
context = {
|
|
|
|
"@context": {
|
|
|
|
"@context": {
|
|
|
|
|
|
|
|
"@vocab": "http://xpub.nl/terms/",
|
|
|
|
"@language": "en",
|
|
|
|
"@language": "en",
|
|
|
|
"xpub": "http://xpub.nl/terms/",
|
|
|
|
"xpub": "http://xpub.nl/terms/",
|
|
|
|
"xpubproject": "https://project.xpub.nl/",
|
|
|
|
"xpubproject": "https://project.xpub.nl/",
|
|
|
@ -26,7 +27,9 @@ context = {
|
|
|
|
"image": {"@id": "dc:image", "@type": "@id" },
|
|
|
|
"image": {"@id": "dc:image", "@type": "@id" },
|
|
|
|
"title": "dc:title",
|
|
|
|
"title": "dc:title",
|
|
|
|
"date": {"@id": "dc:date", "@type": "http://www.w3.org/2001/XMLSchema#date"},
|
|
|
|
"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))
|
|
|
|
print (g.serialize(format="json-ld", context=context, auto_compact=True))
|
|
|
|