Add support for JournalArticle records #21

Merged
mih merged 1 commit from flatentry into main 2025-04-22 12:51:36 +00:00
5 changed files with 144 additions and 2 deletions

View file

@ -32,6 +32,7 @@ prefixes:
inm7flatentry: https://concepts.inm7.de/s/flatentry/unreleased/ inm7flatentry: https://concepts.inm7.de/s/flatentry/unreleased/
inm7: https://inm7.de/ns/ inm7: https://inm7.de/ns/
linkml: https://w3id.org/linkml/ linkml: https://w3id.org/linkml/
orcid: https://orcid.org/
owl: http://www.w3.org/2002/07/owl# owl: http://www.w3.org/2002/07/owl#
rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs: http://www.w3.org/2000/01/rdf-schema# rdfs: http://www.w3.org/2000/01/rdf-schema#
@ -54,6 +55,24 @@ emit_prefixes:
imports: imports:
- dlschemas:things/v1 - dlschemas:things/v1
types:
W3CISO8601:
uri: w3ctr:NOTE-datetime
description:
W3C variant/subset of IS08601 for specifying date(times).
Supported are
- YYYY (eg 1997)
- YYYY-MM (eg 1997-07)
- YYYY-MM-DD (eg 1997-07-16)
- YYYY-MM-DDThh:mmTZD (eg 1997-07-16T19:20+01:00)
- YYYY-MM-DDThh:mm:ssTZD (eg 1997-07-16T19:20:30+01:00)
- YYYY-MM-DDThh:mm:ss.sTZD (eg 1997-07-16T19:20:30.45+01:00)
where TZD is the time zone designator (Z or +hh:mm or -hh:mm)
typeof: string
pattern: '^([-+]\d+)|(\d{4})|(\d{4}-[01]\d)|(\d{4}-[01]\d-[0-3]\d)|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$'
see_also:
- https://www.w3.org/TR/NOTE-datetime
slots: slots:
curation_comments: curation_comments:
description: >- description: >-
@ -108,10 +127,18 @@ slots:
issn: issn:
description: >- description: >-
Associated ISSN identifier (see https://www.issn.org). Associated International Standard Serial Number (ISSN) identifier (see https://www.issn.org).
range: string range: string
pattern: '^\d{4}-\d{3}[0-9X]{1}$' pattern: '^\d{4}-\d{3}[0-9X]{1}$'
doi:
description: >-
Associated Digital Object Identifier (DOI; ISO 26324; see
https://doi.org). The value must be just the DOI without the URL
project. So just `10.1038/s41597-022-01163-2` and not
`https://doi.org/10.1038/s41597-022-01163-2`.
range: string
short_name: short_name:
description: >- description: >-
A shortened name for the subject. For example, an acronym, initialism, A shortened name for the subject. For example, an acronym, initialism,
@ -125,6 +152,23 @@ slots:
documents. documents.
range: string range: string
journal:
description: >-
Journal a document was published in.
range: Journal
authors:
description: >-
People that contributed to a document in the author role.
range: Person
multivalued: true
date_published:
description: >-
Timepoint at which the subject was (last) published.
range: W3CISO8601
classes: classes:
Person: Person:
class_uri: inm7flatentry:Person class_uri: inm7flatentry:Person
@ -191,3 +235,61 @@ classes:
- issn - issn
- title - title
- short_name - short_name
slot_usage:
title:
required: true
annotations:
sh:name: Title
sh:group: inm7flatentry:JournalPropertyGroup
sh:order: 1
short_name:
annotations:
sh:name: Short name
sh:group: inm7flatentry:JournalPropertyGroup
sh:order: 2
issn:
recommended: true
annotations:
sh:name: ISSN
sh:group: inm7flatentry:JournalPropertyGroup
sh:order: 3
JournalArticle:
is_a: Thing
description: >-
A report that is published in a journal.
slots:
- curation_comments
- doi
- title
- authors
- journal
- date_published
slot_usage:
title:
required: true
annotations:
sh:name: Title
sh:group: inm7flatentry:JournalArticlPropertyGroup
sh:order: 1
doi:
recommended: true
annotations:
sh:name: Digital Object Identifier
sh:group: inm7flatentry:JournalArticlePropertyGroup
sh:order: 2
authors:
annotations:
sh:name: Author(s)
sh:group: inm7flatentry:JournalArticlePropertyGroup
sh:order: 3
journal:
annotations:
sh:name: Journal
sh:group: inm7flatentry:JournalArticlePropertyGroup
sh:order: 4
date_published:
annotations:
sh:name: Date published
sh:group: inm7flatentry:JournalArticlePropertyGroup
sh:order: 5

View file

@ -1,8 +1,8 @@
{ {
"pid": "https://urn.issn.org/urn/issn:0027-8424", "pid": "https://urn.issn.org/urn/issn:0027-8424",
"schema_type": "inm7flatentry:Journal", "schema_type": "inm7flatentry:Journal",
"issn": "0027-8424",
"title": "Proceedings of the National Academy of Sciences of the United States of America", "title": "Proceedings of the National Academy of Sciences of the United States of America",
"issn": "0027-8424",
"short_name": "PNAS", "short_name": "PNAS",
"@type": "Journal" "@type": "Journal"
} }

View file

@ -0,0 +1,18 @@
{
"pid": "https://doi.org/10.1038/s41597-022-01163-2",
"schema_type": "inm7flatentry:JournalArticle",
"title": "FAIRly big: A framework for computationally reproducible processing of large-scale data",
"doi": "10.1038/s41597-022-01163-2",
"authors": [
"orcid:0000-0003-2917-3450",
"orcid:0000-0003-2213-7465",
"orcid:0000-0003-0820-2662",
"orcid:0000-0001-7163-3110",
"orcid:0000-0002-8402-6173",
"orcid:0000-0001-7628-0801",
"orcid:0000-0001-6363-2759",
"orcid:0000-0001-6398-6370"
],
"date_published": "2022",
"@type": "JournalArticle"
}

View file

@ -0,0 +1,13 @@
pid: https://doi.org/10.1038/s41597-022-01163-2
doi: 10.1038/s41597-022-01163-2
title: "FAIRly big: A framework for computationally reproducible processing of large-scale data"
authors:
- orcid:0000-0003-2917-3450
- orcid:0000-0003-2213-7465
- orcid:0000-0003-0820-2662
- orcid:0000-0001-7163-3110
- orcid:0000-0002-8402-6173
- orcid:0000-0001-7628-0801
- orcid:0000-0001-6363-2759
- orcid:0000-0001-6398-6370
date_published: "2022"

View file

@ -0,0 +1,9 @@
schema: src/flatentry/unreleased.yaml
target_class: JournalArticle
data_sources:
- src/flatentry/unreleased/examples/JournalArticle-typical.yaml
plugins:
JsonschemaValidationPlugin:
closed: true
include_range_class_descendants: false
RecommendedSlotsPlugin: