Skip to content

Instantly share code, notes, and snippets.

@fogonwater
Last active August 29, 2015 14:17
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 fogonwater/b94105b3c618569c9b95 to your computer and use it in GitHub Desktop.
Save fogonwater/b94105b3c618569c9b95 to your computer and use it in GitHub Desktop.
Attempts to describe the artist Rita Angus as an EDM Agent contextual entity.

JSON-LD EDM experiments

This gist contains two attempts to describe the artist Rita Angus as an EDM Agent contextual entity using the JSON-LD format. They are intended to facilitate conversation between DigitalNZ and Europeana rather than indicate a final data format.

  • rita_angus_v1.json is close to the examples expressed in the "JSON-LD profile for EDM contextual entities" proposal document.
  • rita_angus_v2a.json deviates significantly from the v1 context mapping structure. The document's fieldnames are terms like name and description, which differ from the EDM Agent schema skos:prefLabel and rdaGr2:biographicalInformation fields.
  • rita_angus_v2b.json references the @context section rather then presenting it inline. This is the default format that we are likely to adopt.

The rita_angus_v2 examples follows the model presented by Manu Spooney in the JSON-LD W3.org context specs. See: EXAMPLE 5: In-line context definition.

With the exception of "@container": "@language" / @en language specifications missing from rita_angus_v2.json the examples resolve to the same Expanded, Compacted, Flattened, Framed, N-Quads and Normalized structures on the JSON-LD Playground:

{
"@context": {
"edm": "http://www.europeana.eu/schemas/edm/",
"owl": "http://www.w3.org/2002/07/owl#",
"rdaGr2": "http://rdvocab.info/ElementsGr2/",
"skos": "http://www.w3.org/2004/02/skos/core#",
"skos:prefLabel": {
"@container": "@language"
},
"skos:altLabel": {
"@container": "@language"
},
"rdaGr2:biographicalInformation": {
"@container": "@language"
},
"rdaGr2:placeOfBirth": {
"@type": "@id"
},
"rdaGr2:placeOfDeath": {
"@type": "@id"
},
"edm:hasMet": {
"@type": "@id"
},
"owl:sameAs": {
"@type": "@id"
}
},
"@id": "http://digitalnz.org/person/42",
"@type": "edm:Agent",
"skos:prefLabel": {
"en": "Rita Angus"
},
"skos:altLabel": [
{"@language": "en", "@value": "Henrietta Catherine Angus"},
{"@language": "en", "@value": "Rita McKenzie"}
],
"rdaGr2:biographicalInformation": {
"en": "Rita Angus (12 March 1908 – 25 January 1970), known as Rita McKenzie after 1941, was a New Zealand painter. Along with Colin McCahon and Toss Woollaston, she is credited as one of the leading figures in twentieth century New Zealand art."
},
"rdaGr2:dateOfBirth": "1908-03-12",
"rdaGr2:dateOfDeath": "1970-01-25",
"rdaGr2:placeOfBirth": "http://digitalnz.org/place/921",
"rdaGr2:placeOfDeath": "http://digitalnz.org/place/18",
"rdaGr2:gender": "Female",
"edm:hasMet": [
"http://digitalnz.org/person/89",
"http://digitalnz.org/person/916"
],
"owl:sameAs": [
"http://viaf.org/viaf/42777921",
"http://collections.tepapa.govt.nz/Person/74",
"http://en.wikipedia.org/wiki/Rita_Angus"
]
}
{
"@context": {
"skos": "http://www.w3.org/2004/02/skos/core#",
"name": "skos:prefLabel",
"alternateName": "skos:altLabel",
"rdaGr2": "http://rdvocab.info/ElementsGr2/",
"description": "rdaGr2:biographicalInformation",
"birthDate": "rdaGr2:dateOfBirth",
"deathDate": "rdaGr2:dateOfDeath",
"birthPlace": {
"@id": "rdaGr2:placeOfBirth",
"@type": "@id"
},
"deathPlace": {
"@id": "rdaGr2:placeOfDeath",
"@type": "@id"
},
"gender": "rdaGr2:gender",
"edm": "http://www.europeana.eu/schemas/edm/",
"hasMet": {
"@id": "edm:hasMet",
"@type": "@id"
},
"sameAs": {
"@id": "http://www.w3.org/2002/07/owl#sameAs",
"@type": "@id"
}
},
"@id": "http://digitalnz.org/person/42",
"@type": "edm:Agent",
"name": "Rita Angus",
"alternateName": [
"Henrietta Catherine Angus",
"Rita McKenzie"
],
"description": "Rita Angus (12 March 1908 – 25 January 1970), known as Rita McKenzie after 1941, was a New Zealand painter. Along with Colin McCahon and Toss Woollaston, she is credited as one of the leading figures in twentieth century New Zealand art.",
"birthDate": "1908-03-12",
"deathDate": "1970-01-25",
"birthPlace": "http://digitalnz.org/place/921",
"deathPlace": "http://digitalnz.org/place/18",
"gender": "Female",
"hasMet": [
"http://digitalnz.org/person/89",
"http://digitalnz.org/person/916"
],
"sameAs": [
"http://viaf.org/viaf/42777921",
"http://collections.tepapa.govt.nz/Person/74",
"http://en.wikipedia.org/wiki/Rita_Angus"
]
}
{
"@context": "http://digitalnz.org/schema/agent",
"sameAs": {
"@id": "http://www.w3.org/2002/07/owl#sameAs",
"@type": "@id"
},
"@id": "http://digitalnz.org/person/42",
"@type": "edm:Agent",
"name": "Rita Angus",
"alternateName": [
"Henrietta Catherine Angus",
"Rita McKenzie"
],
"description": "Rita Angus (12 March 1908 – 25 January 1970), known as Rita McKenzie after 1941, was a New Zealand painter. Along with Colin McCahon and Toss Woollaston, she is credited as one of the leading figures in twentieth century New Zealand art.",
"birthDate": "1908-03-12",
"deathDate": "1970-01-25",
"birthPlace": "http://digitalnz.org/place/921",
"deathPlace": "http://digitalnz.org/place/18",
"gender": "Female",
"hasMet": [
"http://digitalnz.org/person/89",
"http://digitalnz.org/person/916"
],
"sameAs": [
"http://viaf.org/viaf/42777921",
"http://collections.tepapa.govt.nz/Person/74",
"http://en.wikipedia.org/wiki/Rita_Angus"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment