Skip to content
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

First registry AS example #3

Open
glenrobson opened this issue Apr 1, 2020 · 7 comments
Open

First registry AS example #3

glenrobson opened this issue Apr 1, 2020 · 7 comments

Comments

@glenrobson
Copy link
Member

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:

  • "type": "ActivityStream"
  • "label": "Research Center"
    Note this would change to :
"label": {
      "en": [ "Research Center" ]
} 

after discussion in the last discovery meeting.

  • "endTime": "TBD" is this the last modification of the ActivityStream or the date the change was made in Github?
@glenrobson
Copy link
Member Author

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

@glenrobson
Copy link
Member Author

Discussed in discovery call (1st April 2020):

  • On dates start with level0
  • For label use nameMap now that it is an OrderedCollection, this supports languages.

@glenrobson
Copy link
Member Author

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:

  • Add institution / provider
  • Validate ActivityStreams
  • Deploy to registry.iiif.io

@glenrobson
Copy link
Member Author

glenrobson commented Apr 15, 2020

For institution would it be:

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

Is provider just another actor?

Relevant links:

@aisaac
Copy link
Member

aisaac commented Sep 16, 2020

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
Copy link
Member Author

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
Copy link
Member Author

Config:

  • call streams it items
  • Include @context
  • copy provider info from IIIF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants