gbif / pipelines

Pipelines for data processing (GBIF and LivingAtlases)
Apache License 2.0
40 stars 28 forks source link

Addition of InteractiveResource as a MediaType to permit searching #689

Open rogerhyam opened 3 years ago

rogerhyam commented 3 years ago

Should we do something about the "No media identifier provided" message? Could we replace it with a repeat of the IIIF Logo, perhaps with an instruction that the icon can be clicked or dragged to a suitable viewer?

Yes - that is the intention. But it requires a little change in the GBIF API: https://api.gbif.org/v1/enumeration/basic/MediaType. in this response, you will see that type and format are missing for "InteractiveResource" and "application/ld+json":

"media": [
{
"type": "StillImage",
"format": "image/jpeg",
"description": "Image of herbarium specimen E00622961 by Specimen Digitisation Pipeline",
"creator": "Specimen Digitisation Pipeline",
"license": "http://creativecommons.org/publicdomain/zero/1.0/",
"rightsHolder": "Royal Botanic Garden Edinburgh",
"identifier": "http://repo.rbge.org.uk/image_server.php?kind=1500&path_base64=L2hlcmJhcml1bV9zcGVjaW1lbl9zY2Fucy9FMDAvNjIyLzk2MS85Mzk2MTkuanBn"
},
{
"description": "IIIF Manifest for specimen E00622961",
"creator": "Royal Botanic Garden Edinburgh",
"license": "http://creativecommons.org/publicdomain/zero/1.0/",
"rightsHolder": "Royal Botanic Garden Edinburgh",
"identifier": "https://iiif.rbge.org.uk/herb/iiif/E00622961/manifest"
}
]

Originally posted by @thomasstjerne in https://github.com/gbif/portal16/issues/1570#issuecomment-873976382

rogerhyam commented 3 years ago

I've bumped this out as a separate issue. I'd like to be able to search the API for specimens that have IIIF Manifests but can't specify it because there is no associated MediaType.

i.e. do this

https://api.gbif.org/v1/occurrence/search?q=Rhododendron&mediaType=InteractiveResource

jpadfield commented 3 years ago

Hi - just to provide a use case here - I am leading an AHRC funded project (including the RBGE) looking at the use of IIIF and one of the outputs is to create a Simple IIIF Discovery system (https://research.ng-london.org.uk/ss-iiif/) to allow people to run simple text based searches over complex APIs and visualise the results based on IIIF resources.

If this new mediatype is added in I should be able to provide the same interface option for the GBIF API, which would be key for our project and helpful for less specialist users exploring the system.

Thanks

jpadfield commented 2 years ago

Hi, Just checking, is there any possibility of this happening soon? My related project is coming to an end soon so I just thought I would ask. Thanks

MattBlissett commented 2 years ago

Hi @jpadfield, it should happen soon, that's why I just transferred the issue.

@muttcg / @fmendezh -- please add a new MediaType of InteractiveResource, supporting a format of application/ld+json. Interpretation of dc:type and dc:format is straightforward.

(We will leave ac:serviceExpectation or similar for later, it's less clear what we might do there.)

The media type can be used immediately to search and identify occurrences with IIIF images/video/sound/etc, i.e. https://www.gbif.org/occurrence/search?media_type=InteractiveResource and https://api.gbif.org/v1/occurrence/search?media_type=InteractiveResource

This occurrence would then have a media section including:

    {
      "type": "InteractiveResource",
      "format": "application/json+ld",
      "description": "IIIF Manifest for specimen E00010016",
      "creator": "Royal Botanic Garden Edinburgh",
      "license": "http://creativecommons.org/publicdomain/zero/1.0/",
      "rightsHolder": "Royal Botanic Garden Edinburgh",
      "identifier": "https://iiif.rbge.org.uk/herb/iiif/E00010016/manifest"
    },
rogerhyam commented 1 year ago

Did this die or is it still in the pipeline somewhere. We are discussing IIIF at CETAF and it'd be nice to have this enabled.

muttcg commented 1 year ago

@rogerhyam It is in the progress, I will notify you when it is ready

muttcg commented 1 year ago

Deployed to UAT https://api.gbif-uat.org/v1/occurrence/search?q=Rhododendron&mediaType=InteractiveResource https://api.gbif-uat.org/v1/enumeration/basic/MediaType

rogerhyam commented 1 year ago

Cool. I'll have a play when I get a chance.

jpadfield commented 1 year ago

Hi - Just to say I have now had a chance to add GBIF to my simple IIIF Discovery system - It is not bullet proof but it seems to work :-)

https://research.ng-london.org.uk/ss-iiif/gbif-example

MortenHofft commented 1 year ago

When this is in a state that you like @muttcg, then please tell. portal16, translations, graphql and react components needs to be updated accordingly.