Skip to content

Instantly share code, notes, and snippets.

@abollini
Created March 2, 2017 16:23
Show Gist options
  • Save abollini/990017419b26b53c1f67a8590c9cf851 to your computer and use it in GitHub Desktop.
Save abollini/990017419b26b53c1f67a8590c9cf851 to your computer and use it in GitHub Desktop.
Hierarchy metadata in bitstream.json
{
"name": "license.txt",
"handle": null,
"type": "bitstream",
"bundleName": "LICENSE",
"sizeBytes": 1748,
"checkSum": {
"checkSumAlgorithm": "MD5",
"value": "8a4605be74aa9ea9d79846c1fba20a33"
},
"sequenceId": null,
"_links": {
"format": {
"href": "http://localhost:8080/dspace-spring-rest/api/core/bitstreams/bd30fbfc-562e-4c1b-ad51-7ccb7d1acff9/format"
},
"metadata": {
"href": "http://localhost:8080/dspace-spring-rest/api/core/bitstreams/bd30fbfc-562e-4c1b-ad51-7ccb7d1acff9/metadata"
},
"self": {
"href": "http://localhost:8080/dspace-spring-rest/api/core/bitstreams/bd30fbfc-562e-4c1b-ad51-7ccb7d1acff9"
}
},
"_embedded": {
"metadata": {
"data": {},
"_links": {
"dc": {
"href": "http://localhost:8080/dspace-spring-rest/api/core/bitstreams/bd30fbfc-562e-4c1b-ad51-7ccb7d1acff9/metadata/dc"
},
"self": {
"href": "http://localhost:8080/dspace-spring-rest/api/core/bitstreams/bd30fbfc-562e-4c1b-ad51-7ccb7d1acff9/metadata"
}
},
"_embedded": {
"dc": {
"_links": {
"source": {
"href": "http://localhost:8080/dspace-spring-rest/api/core/bitstreams/bd30fbfc-562e-4c1b-ad51-7ccb7d1acff9/metadata/dc/source"
},
"title": {
"href": "http://localhost:8080/dspace-spring-rest/api/core/bitstreams/bd30fbfc-562e-4c1b-ad51-7ccb7d1acff9/metadata/dc/title"
},
"metadataSchema": {
"href": "http://localhost:8080/dspace-spring-rest/api/core/metadataschemas/1"
},
"self": {
"href": "http://localhost:8080/dspace-spring-rest/api/core/bitstreams/bd30fbfc-562e-4c1b-ad51-7ccb7d1acff9/metadata/dc"
}
},
"_embedded": {
"metadataSchema": {
"prefix": "dc",
"namespace": "http://dublincore.org/documents/dcmi-terms/",
"type": "metadataschema",
"_links": {
"self": {
"href": "http://localhost:8080/dspace-spring-rest/api/core/metadataschemas/1"
}
}
},
"source": {
"_links": {
"nullQualifier": {
"href": "http://localhost:8080/dspace-spring-rest/api/core/bitstreams/bd30fbfc-562e-4c1b-ad51-7ccb7d1acff9/metadata/dc/source/nullQualifier"
},
"self": {
"href": "http://localhost:8080/dspace-spring-rest/api/core/bitstreams/bd30fbfc-562e-4c1b-ad51-7ccb7d1acff9/metadata/dc/source"
}
},
"_embedded": {
"nullQualifier": {
"values": [
{
"value": "Written by org.dspace.content.LicenseUtils",
"confidence": -1,
"authorityValue": null,
"lang": null
}
],
"_links": {
"metadataField": {
"href": "http://localhost:8080/dspace-spring-rest/api/core/metadatafields/61"
},
"self": {
"href": "http://localhost:8080/dspace-spring-rest/api/core/bitstreams/bd30fbfc-562e-4c1b-ad51-7ccb7d1acff9/metadata/dc/source/nullQualifier"
}
},
"_embedded": {
"metadataField": {
"element": "source",
"qualifier": null,
"scopeNote": "Do not use; only for harvested metadata.",
"type": "metadatafield",
"_links": {
"self": {
"href": "http://localhost:8080/dspace-spring-rest/api/core/metadatafields/61"
}
}
}
}
}
}
},
"title": {
"_links": {
"nullQualifier": {
"href": "http://localhost:8080/dspace-spring-rest/api/core/bitstreams/bd30fbfc-562e-4c1b-ad51-7ccb7d1acff9/metadata/dc/title/nullQualifier"
},
"self": {
"href": "http://localhost:8080/dspace-spring-rest/api/core/bitstreams/bd30fbfc-562e-4c1b-ad51-7ccb7d1acff9/metadata/dc/title"
}
},
"_embedded": {
"nullQualifier": {
"values": [
{
"value": "license.txt",
"confidence": -1,
"authorityValue": null,
"lang": null
}
],
"_links": {
"metadataField": {
"href": "http://localhost:8080/dspace-spring-rest/api/core/metadatafields/70"
},
"self": {
"href": "http://localhost:8080/dspace-spring-rest/api/core/bitstreams/bd30fbfc-562e-4c1b-ad51-7ccb7d1acff9/metadata/dc/title/nullQualifier"
}
},
"_embedded": {
"metadataField": {
"element": "title",
"qualifier": null,
"scopeNote": "Title statement/title proper.",
"type": "metadatafield",
"_links": {
"self": {
"href": "http://localhost:8080/dspace-spring-rest/api/core/metadatafields/70"
}
}
}
}
}
}
}
}
}
}
},
"format": {
"shortDescription": "License",
"description": "Item-specific license agreed upon to submission",
"mimetype": "text/plain; charset=utf-8",
"supportLevel": 0,
"internal": true,
"extensions": null,
"type": "bitstreamformat",
"_links": {
"self": {
"href": "http://localhost:8080/dspace-spring-rest/api/core/bitstreamformats/2"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment