Skip to content

Instantly share code, notes, and snippets.

@BigBlueHat
Forked from stain/linkset.jsonld
Last active March 13, 2019 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BigBlueHat/e566722e631559751e242b6da6c90f54 to your computer and use it in GitHub Desktop.
Save BigBlueHat/e566722e631559751e242b6da6c90f54 to your computer and use it in GitHub Desktop.
Linkset JSON as JSON-LD https://github.com/dret/I-D/issues/119
{
"@context": {
"@vocab": "https://www.iana.org/assignments/link-relations/",
"anchor": "@id",
"href": "@id",
"dct": "http://purl.org/dc/terms/",
"link": "https://www.iana.org/assignments/link-relations#",
"title": "http://purl.org/dc/terms/title"
"title*": "http://purl.org/dc/terms/title"
"type": "dct:format",
"language": "@language",
"value": "@value",
"hreflang": {
"@id": "https://www.w3.org/ns/activitystreams#hreflang",
"@container": "@set"
},
"linkset": {
"@container": "@list"
}
},
"linkset": [
{
"anchor": "https://example.org/article/view/7507",
"author": [
{
"href": "https://orcid.org/0000-0002-4311-0897",
"type": "rdf/xml"
}
],
"item": [
{
"href": "https://example.org/article/7507/item/1",
"type": "application/pdf"
},
{
"href": "https://example.org/article/7507/item/2",
"type": "text/csv"
}
],
"cite-as": [
{
"href": "https://doi.org/10.841/zk2557"
}
]
},
{
"anchor": "https://example.com/links",
"alternate": [
{
"href": "https://mirror.example.com/links"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment