# Galaxy field (image example): Representation Information from the archive
#
# A Representation Information manifest: the Data Object(s) below, where their
# bits are, and the OAIS Representation Information needed to interpret them --
# structure descriptions (equivalent alternatives: any one will do), how to view
# the data, and what its elements mean. Every file is named explicitly; relative
# locations resolve against this file's own location.

@prefix im:     <http://ontology.oais.info/im/> .
@prefix rdfs:   <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos:   <http://www.w3.org/2004/02/skos/core#> .

<http://example.org/archive/digital-object-b95ff893> a im:DigitalObject ;
    rdfs:label "Galaxy field (image example)" ;
    im:hasStorageLocation <https://raw.githubusercontent.com/dgiaretta/archivemanager/main/examples/image/galaxy-field.bin> ;
    im:interpretedUsing <#digital-object-b95ff893-repinfo> .

<#digital-object-b95ff893-repinfo> a im:RepInfoAndGroup , im:RepresentationInformation ;
    rdfs:label "Representation Information for Galaxy field (image example)" ;
    im:hasGroupMember <#digital-object-b95ff893-structure> , <#digital-object-b95ff893-semantics> ;
    im:hasStructureRepresentationInformation <#digital-object-b95ff893-structure> ;
    im:hasSemanticRepresentationInformation <#digital-object-b95ff893-semantics> .

<#digital-object-b95ff893-structure> a im:RepInfoOrGroup , im:StructureRepresentationInformation ;
    rdfs:label "Structure of Galaxy field (image example): any one of these descriptions" ;
    im:hasGroupMember <#digital-object-b95ff893-structure-1> , <#digital-object-b95ff893-structure-2> .

<#digital-object-b95ff893-structure-1> a im:StructureRepresentationInformation ;
    im:specificationLanguage "DRB SDF" ;
    im:hasStorageLocation <https://archive-manager.oais.info/api/specifications/aHR0cDovL2V4YW1wbGUub3JnL2FyY2hpdmUvc3RydWN0dXJlLXJlcHJlc2VudGF0aW9uLWluZm9ybWF0aW9uLTZiNGMxZGVi> .

<#digital-object-b95ff893-structure-2> a im:StructureRepresentationInformation ;
    im:specificationLanguage "DFDL" ;
    im:hasStorageLocation <https://archive-manager.oais.info/api/specifications/aHR0cDovL2V4YW1wbGUub3JnL2FyY2hpdmUvc3RydWN0dXJlLXJlcHJlc2VudGF0aW9uLWluZm9ybWF0aW9uLTc2NWU3NTBk> .

<#digital-object-b95ff893-semantics> a im:SemanticRepresentationInformation ;
    rdfs:label "Semantics of Galaxy field (image example)" ;
    im:interpretedUsingRecurse <#digital-object-b95ff893-view-1> ,
        <#digital-object-b95ff893-element-1> ,
        <#digital-object-b95ff893-element-2> ,
        <#digital-object-b95ff893-element-3> ,
        <#digital-object-b95ff893-element-4> ,
        <#digital-object-b95ff893-element-5> .

<#digital-object-b95ff893-view-1> a im:ViewSpecification , im:SemanticRepresentationInformation ;
    im:viewKind "image" ;
    im:hasStorageLocation <https://archive-manager.oais.info/api/specifications/aHR0cDovL2V4YW1wbGUub3JnL2FyY2hpdmUvdmlldy1zcGVjaWZpY2F0aW9uLWY3MjM0NWZm> .

<#digital-object-b95ff893-element-1> a im:SemanticRepresentationInformation ;
    im:structuralPath "row" ;
    rdfs:label "Row" ;
    skos:definition "One row of the image, from the bottom of the field upwards." .

<#digital-object-b95ff893-element-2> a im:SemanticRepresentationInformation ;
    im:structuralPath "row.pixel" ;
    rdfs:label "Counts" ;
    skos:definition "Detector counts in one pixel, sky background included." ;
    im:hasUnitOfMeasurement [ rdfs:label "ADU" ] .

<#digital-object-b95ff893-element-3> a im:SemanticRepresentationInformation ;
    im:structuralPath "height" ;
    rdfs:label "Height" ;
    skos:definition "Number of rows." .

<#digital-object-b95ff893-element-4> a im:SemanticRepresentationInformation ;
    im:structuralPath "width" ;
    rdfs:label "Width" ;
    skos:definition "Number of pixels in each row." .

<#digital-object-b95ff893-element-5> a im:SemanticRepresentationInformation ;
    im:structuralPath "object" ;
    rdfs:label "Object" ;
    skos:definition "Name of the field observed, padded with spaces." .

