diff --git a/commonmeta/metadata/metadata.py b/commonmeta/metadata/metadata.py index 00f0dd3..158aed2 100644 --- a/commonmeta/metadata/metadata.py +++ b/commonmeta/metadata/metadata.py @@ -160,7 +160,7 @@ def is_valid(self) -> Any: """validate against JSON schema""" try: file_path = os.path.join( - os.path.dirname(__file__), "resources/commonmeta_v0.10.1.json" + os.path.dirname(__file__), "resources/commonmeta_v0.10.4.json" ) print(file_path) with open(file_path, encoding="utf-8") as file: diff --git a/commonmeta/resources/commonmeta_v0.10.2.json b/commonmeta/resources/commonmeta_v0.10.4.json similarity index 95% rename from commonmeta/resources/commonmeta_v0.10.2.json rename to commonmeta/resources/commonmeta_v0.10.4.json index 44d89a6..8deef28 100644 --- a/commonmeta/resources/commonmeta_v0.10.2.json +++ b/commonmeta/resources/commonmeta_v0.10.4.json @@ -1,7 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://commonmeta.org/commonmeta_v0.10.2.json", - "title": "Commonmeta v0.10.2", + "$id": "https://commonmeta.org/commonmeta_v0.10.4.json", + "title": "Commonmeta v0.10.4", "description": "JSON representation of the Commonmeta schema.", "additionalProperties": false, "definitions": { @@ -205,42 +205,36 @@ }, "date": { "description": "The dates for the resource.", + "$comment": "The date fields are not required. Dates should be formatted as ISO 8601 dates.", "type": "object", "properties": { "created": { "description": "The date the resource was created.", - "type": "string", - "format": "date" + "type": "string" }, "submitted": { "description": "The date the resource was submitted.", - "type": "string", - "format": "date" + "type": "string" }, "accepted": { "description": "The date the resource was accepted.", - "type": "string", - "format": "date" + "type": "string" }, "published": { "description": "The date the resource was published.", - "type": "string", - "format": "date" + "type": "string" }, "updated": { "description": "The date the resource was updated.", - "type": "string", - "format": "date" + "type": "string" }, "available": { "description": "The date the resource was made available.", - "type": "string", - "format": "date" + "type": "string" }, "withdrawn": { "description": "The date the resource was withdrawn.", - "type": "string", - "format": "date" + "type": "string" } } }, @@ -522,6 +516,15 @@ "description": "The state of the resource.", "type": "string", "enum": ["findable", "not_found"] + }, + "archive_locations": { + "description": "The location where content is archived.", + "type": "array", + "items": { + "type": "string", + "enum": ["CLOCKSS", "LOCKSS", "Portico", "KB", "Internet Archive", "DWT"] + }, + "uniqueItems": true } }, "required": [ diff --git a/docs/_site/index.html b/docs/_site/index.html index 3cd7675..f12f2fa 100644 --- a/docs/_site/index.html +++ b/docs/_site/index.html @@ -134,7 +134,7 @@

On this page

-

Build PyPI version docs GitHub

+

Build PyPI version docs GitHub

Introduction

commonmeta-py is a Python library to implement commonmeta, the metadata format for common scholarly metadata. Use commonmeta-py to convert scholarly metadata from/to a variety of metadata formats, listed below. Commonmeta-py is work in progress, the first release on PyPi (version 0.5.0) was on February 16, 2023. Up until version 0.5.1, the library was called talbot. Commonmeta-py is modelled after the briard ruby gem.

diff --git a/docs/index.qmd b/docs/index.qmd index a4dafbf..75e129e 100644 --- a/docs/index.qmd +++ b/docs/index.qmd @@ -5,7 +5,7 @@ toc-expand: true [![Build](https://github.com/front-matter/commonmeta-py/actions/workflows/build.yml/badge.svg)](https://github.com/front-matter/commonmeta-py/actions/workflows/build.yml) [![PyPI version](https://img.shields.io/pypi/v/commonmeta-py.svg)](https://pypi.org/project/commonmeta-py/) -[![docs](https://img.shields.io/badge/docs-passing-blue)](https://commonmeta-py.docs.front-matter.io/) +[![docs](https://img.shields.io/badge/docs-passing-blue)](https://python.commonmeta.org/) ![GitHub](https://img.shields.io/github/license/front-matter/commonmeta-py?logo=MIT) ## Introduction