openMetadataInitiative / openMINDS_SANDS

A metadata model capturing Spatial Anchoring of Neuroscience Data Structures, including brain atlas definitions.
MIT License
12 stars 11 forks source link

schema-revision: elements/annotationFile.schema.json #32

Closed lzehl closed 4 years ago

lzehl commented 4 years ago
  1. rename property or schema annotationFile
    • property: definedIn, schema: annotationFile or annotationStorage ?
UlrikeS91 commented 4 years ago

Not sure what you are asking exactly. Adding definedIn here makes sense as an optional property to be able to point to the original file the annotation comes from.

I agree that one of the annotationFile parts should be renamed to make it less confusing. If we were to rename the schema to annotationStorage, I would intuitively expect that you can point to a repository where one or several annotation files are located. The way the schema is built at the moment, this is not the intention, right? If not, I would prefer to keep annotationFile as schema name and e.g. annotationFileStorage or fileStorage as the property name.

If that's not what you asked for, could you explain in more detail what you are wondering about? :)

lzehl commented 4 years ago

Feel free to follow my thoughts that let me to it, but the important suggestion comes at the end of this comment.

I thought about it a bit more and I suggest not to introduce another property name to point to a fileInstance.schemas.json, but stick to the one we typically use which is definedIn. In this case there is no name conflict with the schema annotationFile. Alternatively I could imagine a property storedIn or representedIn instead of definedIn.

The original file (fileInstance.schemas.json) where the annotation was inspired from is pointed to in the annotation.schema.json via the property inspiredBy.

More points to discuss here:

  1. should we move annotationFile.schemas.json to core or to options ?

  2. I would like to move the navigationRules from annotation.schemas.json to annotationFile.schemas.json and probably add a referenceSpace property here as well.

    • reasons:
      • the annotationFile.schemas.json points to the actual file that contains the annotation for display
      • although the annotation could have it's own native space (space from file in inspiredBy), it might be delivered in several other spaces (each annotationFile space)
      • since we do not want to cover full provenance in SANDS, I would suggest to define one annotation based of the inspiredBy, but then group all representations of this annotation (if there are multiple ones)
    • in order to display each representation of an annotation within the corresponding file correctly the viewer team would need to know:
      • the navigationRules
      • the referenceSpace
      • the internalFileIdentifier

More concrete example for point 3)

What if we move also the inspiredBy with the nativeCoordinateSpace (optional) into the annotationFile? Here a complete revised suggestion:

@UlrikeS91 @aeidi89 @skoehnen @tgbugs What do you think?

lzehl commented 4 years ago

Based on the discussions in #27 this schema needs to be merged with annotation schema also discussed in #27

lzehl commented 4 years ago

was merged into annotation. PR already integrated