Skip to content

Commit

Permalink
Relaxed the regular expression for DOIs in the scientific extension #910
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Feb 2, 2021
1 parent acfafc4 commit 178670f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- 'via' and 'canonical' rel types as options in items.
- Added clarification about how collection-level asset object properties do not remove the need for item-level asset object properties in the `item-assets` extension ([#880](https://github.com/radiantearth/stac-spec/pull/880))
- Added [processing extension](extensions/processing/README.md)
- Added [file info extension](extensions/file/README.md) ([#879](https://github.com/radiantearth/stac-spec/pull/879), [#921](https://github.com/radiantearth/stac-spec/issues/921))
- Added [file info extension](extensions/file/README.md) ([#879](https://github.com/radiantearth/stac-spec/pull/879), [#921](https://github.com/radiantearth/stac-spec/issues/921))
- Added additional acquisition parameters in the `sat` extension: sat:platform_international_designator, sat:absolute_orbit, sat:anx_datetime* ([#894](https://github.com/radiantearth/stac-spec/pull/894))
- Recommendation to enable CORS

### Changed

- Clarified the role of geometries on items in the label extension
- Data Cube Extension: Units for STAC dimensions in should now be compliant to UDUNITS-2 units (singular) whenever available.
- Relaxed the regular expression for DOIs in the scientific extension ([#910](https://github.com/radiantearth/stac-spec/issues/910))

### Removed

Expand Down
4 changes: 2 additions & 2 deletions extensions/scientific/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ For Items, the fields are placed in the `properties`. For Collections, the field

| Field Name | Type | Description |
| ---------------- | -------------------- | ----------- |
| sci:doi | string | The DOI name of the data, e.g. `10.1000/xyz123`. This MUST NOT be a DOIs link. For all DOI names respective DOI links SHOULD be added to the links section (see chapter "Relation types"). |
| sci:doi | string | The DOI of the data, e.g. `10.1000/xyz123`. This MUST NOT be a DOIs link. For all DOI names respective DOI links SHOULD be added to the links section (see chapter "Relation types"). |
| sci:citation | string | The recommended human-readable reference (citation) to be used by publications citing the data. No specific citation style is suggested, but the citation should contain all information required to find the publication distinctively. |
| sci:publications | [[Publication Object](#publication-object)] | List of relevant publications referencing and describing the data. |

Expand All @@ -38,7 +38,7 @@ For Items, the fields are placed in the `properties`. For Collections, the field

| Field Name | Type | Description |
| ---------- | ------ | ----------- |
| doi | string | DOI of a publication referencing the data. |
| doi | string | The DOI of a publication referencing the data. This MUST NOT be a DOIs link. |
| citation | string | Citation of a publication referencing the data. |

**doi** - The DOI name of a publication which describes and references the data. The publications
Expand Down
4 changes: 2 additions & 2 deletions extensions/scientific/json-schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"sci:doi": {
"type": "string",
"title": "Data DOI",
"pattern": "^(10[.][0-9]{4,}(?:[.][0-9]+)*/(?:(?![%\"#? ])\\S)+)$"
"pattern": "^10\\.[0-9a-zA-Z]{4,}/[^\\s]+$"
},
"sci:citation": {
"type": "string",
Expand All @@ -83,7 +83,7 @@
"doi": {
"type": "string",
"title": "Publication DOI",
"pattern": "^(10[.][0-9]{4,}(?:[.][0-9]+)*/(?:(?![%\"#? ])\\S)+)$"
"pattern": "^10\\.[0-9a-zA-Z]{4,}/[^\\s]+$"
},
"citation": {
"type": "string",
Expand Down

0 comments on commit 178670f

Please sign in to comment.