Skip to content

Instantly share code, notes, and snippets.

@inukshuk
Last active June 17, 2020 08:12
Show Gist options
  • Save inukshuk/a0d163b3ef731a801cec385cacff8b3e to your computer and use it in GitHub Desktop.
Save inukshuk/a0d163b3ef731a801cec385cacff8b3e to your computer and use it in GitHub Desktop.
Tropy JSON items export/import examples
[
{
"@type": "Item",
"template": "https://tropy.org/v1/templates/dc",
"http://purl.org/dc/elements/1.1/title": "Veduta di Castel St Angelo. S. Pietro",
"http://purl.org/dc/elements/1.1/creator": " Eugène Constant",
"http://purl.org/dc/elements/1.1/type": "Foto",
"http://purl.org/dc/elements/1.1/source": " Gilman Collection, Museum Purchase, 2005 ",
"http://purl.org/dc/elements/1.1/rights": "Public Domain",
"http://purl.org/dc/elements/1.1/identifier": "2005.100.799 (9)",
"http://purl.org/dc/elements/1.1/coverage": "1848/1852",
"http://purl.org/dc/elements/1.1/date": "1848",
"list": [
"Met"
],
"tag": [
"City",
"Water",
"Statues",
"Architecture"
],
"photo": [
{
"@type": "Photo",
"path": "DP155021.jpg",
"checksum": "abc",
"mimetype": "image/jpg",
"protocol": "file",
"template": "https://tropy.org/v1/templates/photo",
"http://purl.org/dc/elements/1.1/title": "DP155021",
"http://purl.org/dc/elements/1.1/date": "2017-10-12T18:47:18.812Z",
"note": [
{
"html": "<p>Veduta di Castel St Angelo. S. Pietro.</p>"
}
],
"selection": [
{
"@type": "Selection",
"template": "https://tropy.org/v1/templates/selection",
"x": 1644,
"y": 284,
"height": 269,
"width": 259,
"http://purl.org/dc/elements/1.1/title": "Il angelo"
}
]
}
]
},
{
"@type": "Item",
"template": "https://tropy.org/v1/templates/generic",
"http://purl.org/dc/elements/1.1/type": "Screenshot",
"http://purl.org/dc/elements/1.1/date": "2019-02",
"http://purl.org/dc/elements/1.1/rights": "Public Domain",
"http://purl.org/dc/elements/1.1/title": "Tropy Screenshots",
"list": [
"Tropy Screenshots"
],
"tag": [
"Windows",
"macOS"
],
"photo": [
{
"@type": "Photo",
"checksum": "abc",
"mimetype": "image/png",
"path": "Tropy Light.png",
"protocol": "file",
"template": "https://tropy.org/v1/templates/photo",
"http://purl.org/dc/elements/1.1/date": "2018-05-23T10:48:03.578Z",
"http://purl.org/dc/elements/1.1/title": "Tropy Light (macOS)"
},
{
"@type": "Photo",
"checksum": "abc",
"mimetype": "image/png",
"path": "All Windows.PNG",
"protocol": "file",
"template": "https://tropy.org/v1/templates/photo",
"http://purl.org/dc/elements/1.1/date": "2018-05-23T10:49:28.758Z",
"http://purl.org/dc/elements/1.1/title": "Tropy Light (Windows)",
"note": [
{
"html": "<p>A screenhost of Tropy’s interface on <em>Windows 10</em>.</p>"
}
]
},
{
"@type": "Photo",
"path": "Tropy Dark.png",
"checksum": "abc",
"mimetype": "image/png",
"protocol": "file",
"template": "https://tropy.org/v1/templates/photo",
"http://purl.org/dc/elements/1.1/date": "2018-05-23T10:48:04.638Z",
"http://purl.org/dc/elements/1.1/title": "Tropy Dark (macOS)",
"selection": [
{
"@type": "Selection",
"template": "https://tropy.org/v1/templates/selection",
"x": 90,
"y": 1004,
"height": 722,
"width": 1357,
"http://purl.org/dc/elements/1.1/title": "About Window"
},
{
"@type": "Selection",
"template": "https://tropy.org/v1/templates/selection",
"x": 1553,
"y": 740,
"height": 1245,
"width": 1257,
"http://purl.org/dc/elements/1.1/title": "Preferences Window"
}
]
}
]
}
]
{
"@context": {
"@version": 1.1,
"@vocab": "https://tropy.org/v1/tropy#",
"template": {
"@type": "@id"
},
"photo": {
"@id": "https://tropy.org/v1/tropy#photo",
"@container": "@list",
"@context": {
"note": {
"@id": "https://tropy.org/v1/tropy#note",
"@container": "@list"
},
"selection": {
"@id": "https://tropy.org/v1/tropy#selection",
"@container": "@list",
"@context": {
"note": {
"@id": "https://tropy.org/v1/tropy#note",
"@container": "@list"
}
}
}
}
},
"title": "http://purl.org/dc/elements/1.1/title",
"creator": "http://purl.org/dc/elements/1.1/creator",
"type": "http://purl.org/dc/elements/1.1/type",
"source": "http://purl.org/dc/elements/1.1/source",
"rights": "http://purl.org/dc/elements/1.1/rights",
"identifier": "http://purl.org/dc/elements/1.1/identifier",
"coverage": "http://purl.org/dc/elements/1.1/coverage",
"date": {
"@id": "http://purl.org/dc/elements/1.1/date",
"@type": "https://tropy.org/v1/tropy#date"
}
},
"@graph": [
{
"@type": "Item",
"template": "https://tropy.org/v1/templates/dc",
"title": "Veduta di Castel St Angelo. S. Pietro",
"creator": " Eugène Constant",
"type": "Foto",
"source": " Gilman Collection, Museum Purchase, 2005 ",
"rights": "Public Domain",
"identifier": "2005.100.799 (9)",
"coverage": "1848/1852",
"date": "1848",
"list": [
"Met"
],
"tag": [
"City",
"Water",
"Statues",
"Architecture"
],
"photo": [
{
"@type": "Photo",
"checksum": "1a7f5a710433686ffc97a2aa022fe84a",
"color": "rgb(184,171,158,1)",
"density": null,
"mimetype": "image/jpeg",
"orientation": 1,
"page": 0,
"path": "/home/dupin/Sync/Pictures/DP155021.jpg",
"protocol": "file",
"size": 701716,
"template": "https://tropy.org/v1/templates/photo",
"angle": 0,
"brightness": 0,
"contrast": 0,
"height": 1678,
"hue": 0,
"mirror": false,
"negative": false,
"saturation": 0,
"sharpen": 10,
"width": 2314,
"title": "DP155021",
"date": "2017-10-12T18:47:18.812Z",
"note": [
{
"@type": "Note",
"text": {
"@value": "Veduta di Castel St Angelo. S. Pietro.",
"@language": "en"
},
"html": {
"@value": "<p>Veduta di Castel St Angelo. S. Pietro.</p>",
"@language": "en"
}
}
],
"selection": [
{
"@type": "Selection",
"template": "https://tropy.org/v1/templates/selection",
"x": 1644,
"y": 284,
"angle": 0,
"brightness": 0,
"contrast": 0,
"height": 269,
"hue": 0,
"mirror": false,
"negative": false,
"saturation": 0,
"sharpen": 0,
"width": 259,
"title": "Il angelo"
}
]
}
]
},
{
"@type": "Item",
"template": "https://tropy.org/v1/templates/generic",
"type": "Screenshot",
"date": "2019-02",
"rights": "Public Domain",
"title": "Tropy Screenshots",
"list": [
"Tropy Screenshots"
],
"tag": [
"Windows",
"macOS"
],
"photo": [
{
"@type": "Photo",
"checksum": "95f6347a70b3221648389d568f034e66",
"color": "rgb(193,194,196,1)",
"density": null,
"mimetype": "image/png",
"orientation": 1,
"page": 0,
"path": "/home/dupin/Sync/Tropy Light.png",
"protocol": "file",
"size": 2285914,
"template": "https://tropy.org/v1/templates/photo",
"angle": 0,
"brightness": 0,
"contrast": 0,
"height": 2006,
"hue": 0,
"mirror": false,
"negative": false,
"saturation": 0,
"sharpen": 0,
"width": 2834,
"date": "2018-05-23T10:48:03.578Z",
"title": "Tropy Light (macOS)"
},
{
"@type": "Photo",
"checksum": "2380c3d5b344840df9dc5f9d16c85773",
"color": "rgb(178,182,184,1)",
"density": null,
"mimetype": "image/png",
"orientation": 1,
"page": 0,
"path": "/home/dupin/Sync/All Windows.PNG",
"protocol": "file",
"size": 1694471,
"template": "https://tropy.org/v1/templates/photo",
"angle": 0,
"brightness": 0,
"contrast": 0,
"height": 1481,
"hue": 0,
"mirror": false,
"negative": false,
"saturation": 0,
"sharpen": 0,
"width": 2483,
"date": "2018-05-23T10:49:28.758Z",
"title": "Tropy Light (Windows)",
"note": [
{
"@type": "Note",
"text": {
"@value": "fdsd",
"@language": "en"
},
"html": {
"@value": "<p>A screenhost of Tropy’s interface on <em>Windows 10</em>.</p>",
"@language": "en"
}
}
]
},
{
"@type": "Photo",
"checksum": "7c38716352da33782371e3b9999158fa",
"color": "rgb(51,52,53,1)",
"density": null,
"mimetype": "image/png",
"orientation": 1,
"page": 0,
"path": "/home/dupin/Sync/Tropy Dark.png",
"protocol": "file",
"size": 676187,
"template": "https://tropy.org/v1/templates/photo",
"angle": 0,
"brightness": 0,
"contrast": 0,
"height": 2012,
"hue": 0,
"mirror": false,
"negative": false,
"saturation": 0,
"sharpen": 0,
"width": 2826,
"date": "2018-05-23T10:48:04.638Z",
"title": "Tropy Dark (macOS)",
"selection": [
{
"@type": "Selection",
"template": "https://tropy.org/v1/templates/selection",
"x": 90,
"y": 1004,
"angle": 0,
"brightness": 0,
"contrast": 0,
"height": 722,
"hue": 0,
"mirror": false,
"negative": false,
"saturation": 0,
"sharpen": 0,
"width": 1357,
"title": "About Window"
},
{
"@type": "Selection",
"template": "https://tropy.org/v1/templates/selection",
"x": 1553,
"y": 740,
"angle": 0,
"brightness": 0,
"contrast": 0,
"height": 1245,
"hue": 0,
"mirror": false,
"negative": false,
"saturation": 0,
"sharpen": 0,
"width": 1257,
"title": "Preferences Window"
}
]
}
]
}
],
"version": "1.7.0"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment