IIIF / registry

IIIF Registry of Activity streams
3 stars 1 forks source link

First registry AS example #3

Open glenrobson opened 4 years ago

glenrobson commented 4 years ago

Here is an example of an early version of the registry AS generated from the test data in the repository:

{
    "@context": "http://iiif.io/api/discovery/1/context.json",
    "id": "https://registry.iiif.io/page-0",
    "type": "OrderedCollectionPage",
    "partOf": {
        "id": "https://registry.iiif.io/index.json",
        "type": "OrderedCollection"
    },
    "orderedItems": [
        {
            "type": "Update",
            "object": {
                "id": "http://institutiony.ac.yy/activity_stream.json",
                "type": "ActivityStream",
                "label": "Top level collection"
            },
            "endTime": "TBD"
        },
        {
            "type": "Update",
            "object": {
                "id": "http://institutionx.ac.xx/activity_stream.json",
                "type": "ActivityStream",
                "label": "Top level collection"
            },
            "endTime": "TBD"
        },
        {
            "type": "Update",
            "object": {
                "id": "http://www.getty.edu/museum.json",
                "type": "ActivityStream",
                "label": "Museum collections"
            },
            "endTime": "TBD"
        },
        {
            "type": "Update",
            "object": {
                "id": "http://www.getty.edu/library.json",
                "type": "ActivityStream",
                "label": "Library collections"
            },
            "endTime": "TBD"
        },
        {
            "type": "Update",
            "object": {
                "id": "http://www.getty.edu/research.json",
                "type": "ActivityStream",
                "label": "Research Center"
            },
            "endTime": "TBD"
        }
    ]
}

Questions:

glenrobson commented 4 years ago

See OCLC example which uses ordered collection: https://researchworks.oclc.org/digital/discovery-index/1

glenrobson commented 4 years ago

Discussed in discovery call (1st April 2020):

glenrobson commented 4 years ago

Example with the above changes incorporated:

{
    "@context": "http://iiif.io/api/discovery/1/context.json",
    "id": "https://registry.iiif.io/page-0",
    "type": "OrderedCollectionPage",
    "partOf": {
        "id": "https://registry.iiif.io/index.json",
        "type": "OrderedCollection"
    },
    "orderedItems": [
        {
            "type": "Update",
            "object": {
                "id": "http://institutiony.ac.yy/activity_stream.json",
                "type": "OrderedCollection",
                "nameMap": {
                    "en": [
                        "Top level collection"
                    ]
                }
            }
        },
        {
            "type": "Update",
            "object": {
                "id": "http://institutionx.ac.xx/activity_stream.json",
                "type": "OrderedCollection",
                "nameMap": {
                    "en": [
                        "Top level collection"
                    ]
                }
            }
        },
        {
            "type": "Update",
            "object": {
                "id": "http://www.getty.edu/museum.json",
                "type": "OrderedCollection",
                "nameMap": {
                    "en": [
                        "Museum collections"
                    ]
                }
            }
        },
        {
            "type": "Update",
            "object": {
                "id": "http://www.getty.edu/library.json",
                "type": "OrderedCollection",
                "nameMap": {
                    "en": [
                        "Library collections"
                    ]
                }
            }
        },
        {
            "type": "Update",
            "object": {
                "id": "http://www.getty.edu/research.json",
                "type": "OrderedCollection",
                "nameMap": {
                    "en": [
                        "Research Center"
                    ]
                }
            }
        }
    ]
}

Still need to:

glenrobson commented 4 years ago

For institution would it be:

"actor": {
   "id": "http://www.getty.edu/",
   "type": "Organization",
   'nameMap': { 
         "en": [ "Getty"]
    } 
}

Is provider just another actor?

Relevant links:

aisaac commented 3 years ago

At https://docs.google.com/document/d/186cruvISgtx1zEAP9w2Mr191PQIbzUh3Ds8n8uGHQhk/ we had said we wanted to have institution and provider in the data. If we represent them as actor we'll miss the distinction, no?

glenrobson commented 3 years ago

Yes thats true. Here is an example:

{
            "type": "Update",
            "object": {
                "id": "http://institutiony.ac.yy/activity_stream.json",
                "type": "OrderedCollection",
                "nameMap": {
                    "en": [
                        "Top level collection"
                    ]
                }
            },
            "actor": [
                {
                    "en": [
                        "University Library of Y"
                    ],
                    "type": "Organization"
                },
                {
                    "id": "https://www.oclc.org/en/home.html",
                    "label": {
                        "en": [
                            "OCLC"
                        ]
                    },
                    "type": "Organization"
                }
            ]
        }

but there is no way to tell which is a provider and which is the institution.

glenrobson commented 3 years ago

Config: