Collage Photos

Open Metadata Exchange (OME) plugin

An OME plugin defines how to import and publish metadata from an Open Education Resources system.

plugin.py provides the class that enables OME to understand Collage Photos metadata.

This plugin defines one or more:

  • mimetypes so that Collage Photos json data can be stored as enclosures in InterNetNews (INN) articles.

  • newsgroups so Collage Photos metadata can be published to and subscribed from those INN newsgroups.

The plugin is composed of at least three code files.

  • plugin.py: Defines mimetypes, newsgroups, and a make_metadata_card() function that translates Collage Photos data into an OME EducationalResource.

  • collage_photos_models.py: Generated by Pydantic tools to make it fast and reliable to import Collage Photos metadata.

  • bulk_import.py: Utilities to convert data directly from the Collage Photos source into OME EducationalResources.

[!NOTE]

Please do NOT edit this line and below because when the docs are rebuilt, these lines will be overwritten by scripts/sync_plugin_docs.py.

MIMETYPES:

  1. application/vnd.collage.photos+json

NEWSGROUPS:

{‘ome.collage_photos’: ‘Metadata from Collage Photos educational image collection https://oercommons.org’}

server/plugins/collage_photos
├── __init__.py
├── bulk_import.py
├── collage_photos_article.eml
├── collage_photos_item.json
├── collage_photos_models.py
├── collage_photos_ome_item.json
├── college_photos_images
│   ├── college_photo_000_001.jpg
│   ├── college_photo_000_002.jpg
│   ├── college_photo_000_003.jpg
│   ├── college_photo_000_004.jpg
│   ├── college_photo_000_005.jpg
│   ├── college_photo_000_006.jpg
│   ├── college_photo_000_007.jpg
│   ├── college_photo_000_008.jpg
│   ├── college_photo_000_009.jpg
│   └── college_photo_000_010.jpg
├── plugin.py
└── README.md

2 directories, 18 files