-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to annotate flavours in SBF JSON #1
Comments
@giancarlobi as a discussion point: (means i have no strong opinion yet). maybe we want to have all control/flv elements somewhere more shallow. Like grouped inside some |
@DiegoPino I fully agree, this was a first draft to allow continue with the code. It cuold be a key at the same level than as:image (i.e. ap:flavour) which can include all flavours as single subarray. "ap:flavours" : {
"flv:exif": {
"urn:uuid:35915592-83c8-40b6-b097-29c51c134cc7": {
"status": 0,
"data": {
"urn:uuid:12345678-83c8-40b6-b097-29c51c134cc7": {
"status": 0,
"data": {
"flv:hocr": {
"urn:uuid:35915592-83c8-40b6-b097-29c51c134cc7": {
"status": 0,
"data": {
"urn:uuid:12345678-83c8-40b6-b097-29c51c134cc7": {
"status": 0,
"data": { Yes, we have to male a good plan for this. |
@giancarlobi i'm ok with your approach for now. I will think a bit about this when doing my first attempts at generalising. One of the problems i foresee with having too deep nested structures for this is when trying to use Twig templates for extracting/displaying data and also possible issues with overlapping write/read processes. But for now we are good. Lets keep track of this, i will open an issue later tonight to talk about this |
@DiegoPino as an alternative we can reduce by one level removing ap_flavours and changing flv:hocr and flv_exif to ap:hocr and ap:exif and putting them to same root level than as:image : "ap:exif": {
"urn:uuid:35915592-83c8-40b6-b097-29c51c134cc7": {
"status": 0,
"data": {
"urn:uuid:12345678-83c8-40b6-b097-29c51c134cc7": {
"status": 0,
"data": {
"ap:hocr": {
"urn:uuid:35915592-83c8-40b6-b097-29c51c134cc7": {
"status": 0,
"data": {
"urn:uuid:12345678-83c8-40b6-b097-29c51c134cc7": {
"status": 0,
"data": {
"as:image": {
"urn:uuid:35915592-83c8-40b6-b097-29c51c134cc7": { |
Hi, for now lets keep it as it is. I have to test how expensive/cheap it is to fetch it from there first, and see also what the best metadata v/s operational data separation is. No worries for now!!
|
@DiegoPino after our talk, I figure out something like this to annotate flavours into SBF JSON:
So to mark an image to require "exif" flavour, we write this:
And after runner update SBF JSON looks like this:
The text was updated successfully, but these errors were encountered: