Skip to content

Commit 5719ace

Browse files
authored
Merge pull request #969 from KnowledgeCaptureAndDiscovery/dev
Fixing citation reconciliation and documentation
2 parents 72615b8 + 6b4d7d6 commit 5719ace

35 files changed

Lines changed: 634 additions & 299 deletions

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Given a readme file (or a GitHub/Gitlab repository) SOMEF will extract the follo
2727
- **Build file**: Build file(s) of the project. For example, files used to create a Docker image for the target software, package files, etc.
2828
- **Citation**: Preferred citation(s) as the authors have stated in their readme file. SOMEF recognizes Bibtex, Citation File Format files and other means by which authors cite their papers (e.g., by in-text citation).
2929
For CITATION.cff files, SOMEF now generates two separate entries: one for the software tool and another for the preferred citation (if available). This ensures metadata like DOI or version is correctly assigned to each entity.
30+
SOMEF now performs citation reconciliation: scholarly publications (articles) are assigned in codemeta to `referencePublication`, while the software itself is credited in `creditText`. (See https://somef.readthedocs.io/en/latest/output/#codemeta-format).
3031
We recognize the following properties:
3132
- Title: Title of the publication
3233
- Author: list of author names in the publication
@@ -41,7 +42,7 @@ We recognize the following properties:
4142
- **Contact**: Contact person responsible for maintaining a software component
4243
- **Continuous integration**: Link to continuous integration service(s)
4344
- **Contribution guidelines**: Text indicating how to contribute to this code repository
44-
- **Contributors**: Contributors to a software component. Note: Contributor metadata is exported from metadata files (e.g., CodeMeta, CONTRIBUTORS, etc.) not from git logs.
45+
- **Contributor**: Contributors to a software component. Note: Contributor metadata is exported from metadata files (e.g., CodeMeta, CONTRIBUTORS, etc.) not from git logs.
4546
- **Creation date**: Date when the repository was created
4647
- **Copyright holder**: Entity or individual owning the rights to the software. The year is also extracted, if available.
4748
- **Date updated**: Date of last release.

docs/author.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ These fields are defined in the [Authors file specification](https://opensource.
33

44
| Software metadata category | SOMEF metadata JSON path | AUTHORS metadata file field |
55
|-------------------------------|---------------------------------------------|------------------------------|
6-
| authors - value | authors[i].result.value | *(1)* value |
7-
| authors - name | authors[i].result.name | *(2)* name |
8-
| authors - email | authors[i].result.email | *(3)* email |
9-
| authors - given name | authors[i].result.given_name | *(4)* if type person |
10-
| authors - last name | authors[i].result.last_name | *(5)* if type person |
6+
| author - value | author[i].result.value | *(1)* value |
7+
| author - name | author[i].result.name | *(2)* name |
8+
| author - email | author[i].result.email | *(3)* email |
9+
| author - given name | author[i].result.given_name | *(4)* if type person |
10+
| author - last name | author[i].result.last_name | *(5)* if type person |
1111

1212
---
1313

docs/bower.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ These fields are defined in the [Bower specification](https://github.com/bower/s
33

44
| Software metadata category | SOMEF metadata JSON path | BOWER.JSON metadata file field |
55
|-----------------------------|---------------------------------------|---------------------|
6-
| authors | authors[i].result.value | authors[] |
6+
| author | author[i].result.value | authors[] |
77
| description | description[i].result.value | description |
88
| has_package_file | has_package_file[i].result.value | URL of the bower.json file |
99
| homepage | homepage[i].result.value | homepage |

docs/cargo.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ These fields are defined in the [Cargo.toml specification](https://doc.rust-lang
33

44
| Software metadata category | SOMEF metadata JSON path | CARGO.TOML metadata file field |
55
|-------------------------------|--------------------------------------------|------------------------------|
6-
| authors - value | authors[i].result.value | package.authors |
7-
| authors - name | authors[i].result.name | package.authors *(1)* |
8-
| authors - email | authors[i].result.email | package.authors *(2)* |
6+
| author - value | author[i].result.value | package.authors |
7+
| author - name | author[i].result.name | package.authors *(1)* |
8+
| author - email | author[i].result.email | package.authors *(2)* |
99
| code_repository | code_repository[i].result.value | package.repository |
1010
| description | description[i].result.value | package.description |
1111
| has_package_file | has_package_file[i].result.value | URL of the cargo.toml file |

docs/citationcff.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ These fields are defined in the [CITATION.cff specification](https://citation-fi
33

44
| Software metadata category | SOMEF metadata JSON path | CITATION.cff metadata file field |
55
|----------------------------|---------------------------------------|---------------------|
6-
| citation - authors - name | citation[i].result.authors[j].name | authors / preferred-citation.authors |
7-
| citation - authors - family_name | citation[i].result.authors[j].family_name | authors.family-names |
8-
| citation - authors - given_name | citation[i].result.authors[j].given_name | authors.given-names |
9-
| citation - authors - url | citation[i].result.authors[j].url | authors.orcid |
6+
| citation - author - name | citation[i].result.author[j].name | authors / preferred-citation.authors |
7+
| citation - author - family_name | citation[i].result.author[j].family_name | authors.family-names |
8+
| citation - author - given_name | citation[i].result.author[j].given_name | authors.given-names |
9+
| citation - author - url | citation[i].result.author[j].url | authors.orcid |
1010
| citation - doi | citation[i].result.doi | doi / preferred-citation.doi |
1111
| citation - datePublished | citation[i].result.datePublished | date-released |
1212
| citation - is_preferred_citation | citation[i].result.is_preferred_citation | "True" if from preferred-citation. Omitted otherwise|

docs/codemetajson.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ These fields are defined in the [Codemeta specification](https://github.com/code
44
| Software metadata category | SOMEF metadata JSON path | CODEMETA.JSON metadata file field |
55
|-------------------------------|------------------------------|--------------------------------------------|
66
| application_domain | application_domain[i].result.value | applicationCategory |
7-
| authors - value | authors[i].result.value | author.name or author.givenName + author.familyName |
8-
| authors - email | authors[i].result.email | author.email |
9-
| authors - affiliation | authors[i].result.affiliation | author.affiliation |
10-
| authors - identifier | authors[i].result.identifier | author.identifier or author.@id |
7+
| author - value | author[i].result.value | author.name or author.givenName + author.familyName |
8+
| author - email | author[i].result.email | author.email |
9+
| author - affiliation | author[i].result.affiliation | author.affiliation |
10+
| author - identifier | author[i].result.identifier | author.identifier or author.@id |
1111
| citation - value | citation[i].result.value | referencePublication.name or referencePublication.title |
1212
| citation - title | citation[i].result.title | referencePublication.name or referencePublication.title |
1313
| citation - url | citation[i].result.url | referencePublication.url |
1414
| citation - date published | citation[i].result.date_published | referencePublication.datePublished
1515
| citation - doi | citation[i].result.doi | referencePublication.identifier |
1616
| code_repository | code_repository[i].result.value | codeRepository |
1717
| continuous_integration | continuous_integration[i].result.value | contIntegration |
18-
| contributors - value | contributors[i].result.value | contributor.givenName + contributor.familyName or just name if organization |
19-
| contributors - name | contributors[i].result.value | contributor.givenName + contributor.familyName or just name if organization |
20-
| contributors - last_name | contributors[i].result.value | contributor.familyName |
21-
| contributors - given_name | contributors[i].result.value | contributor.givenName |
22-
| contributors - identifier | contributors[i].result.value | contributor.@id |
23-
| contributors - email | contributors[i].result.value | contributor.email |
18+
| contributor - value | contributor[i].result.value | contributor.givenName + contributor.familyName or just name if organization |
19+
| contributor - name | contributor[i].result.value | contributor.givenName + contributor.familyName or just name if organization |
20+
| contributor - last_name | contributor[i].result.value | contributor.familyName |
21+
| contributor - given_name | contributor[i].result.value | contributor.givenName |
22+
| contributor - identifier | contributor[i].result.value | contributor.@id |
23+
| contributor - email | contributor[i].result.value | contributor.email |
2424
| date_created | date_created[i].result.value | dateCreated |
2525
| date_updated | date_updated[i].result.value | dateModified |
2626
| date_published | date_published[i].result .value | datePublished |

docs/composer.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ These fields are defined in the [Composer.json specification](https://getcompose
33

44
| Software metadata category | SOMEF metadata JSON path | COMPOSER.JSON metadata file field |
55
|-------------------------------|-----------------------------------|-----------------------------------|
6-
| authors - value | authors[i].result.value | authors.name |
7-
| authors - name | authors[i].result.name | authors.name |
8-
| authors - name | authors[i].result email | authors.email |
9-
| authors - url | authors[i].result.url | authors.homepage |
10-
| authors - role | authors[i].result.role | authors.role |
6+
| author - value | author[i].result.value | authors.name |
7+
| author - name | author[i].result.name | authors.name |
8+
| author - name | author[i].result email | authors.email |
9+
| author - url | author[i].result.url | authors.homepage |
10+
| author - role | author[i].result.role | authors.role |
1111
| code_repository | code_repository[i].result.value | repository or repository.url |
1212
| description | description[i].result.value | description |
1313
| has_package_file | has_package_file[i].result.value | URL of the composer.json file |

docs/description.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ These fields are defined in the [DESCRIPTON specification](https://r-pkgs.org/de
33

44
| Software metadata category | SOMEF metadata JSON path | DESCRIPTION metadata file field |
55
|-------------------------------|---------------------------------|---------------------|
6-
| authors | authors[i].result.value | Authors *(1)* |
7-
| authors | authors[i].result.email | Authors *(2)* |
6+
| author | authors[i].result.value | Authors *(1)* |
7+
| author | authors[i].result.email | Authors *(2)* |
88
| code_repository | code_repository[i].result.value | URL *(3)* |
99
| description | description[i].result.value | Description *(4)* |
1010
| has_package_file | has_package_file[i].result.value | URL of the DESCRIPTION file |
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ according to the OCI Image Specification, following the
66

77
| Software metadata category | SOMEF metadata JSON path | DOCKERFILE metadata file field |
88
|-----------------------------|-----------------------------------------|------------------------------------|
9-
| authors | authors[i].result.value | org.opencontainers.image.authors *(1)* |
10-
| authors | authors[i].result.value | LABEL maintainer *(1)* |
9+
| author | author[i].result.value | org.opencontainers.image.authors *(1)* |
10+
| author | author[i].result.value | LABEL maintainer *(1)* |
1111
| code_repository | code_repository[i].result.value | org.opencontainers.image.url |
1212
| description | description[i].result.value | org.opencontainers.image.description |
1313
| documentation | documentation[i].result.value | org.opencontainers.image.documentation |

docs/gemspec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ These fields are defined in the [Ruby Gems specification](https://guides.rubygem
33

44
| Software metadata category | SOMEF metadata JSON path | .gemspec metadata file field |
55
|-------------------------------|--------------------------------|--------------------------------------|
6-
| authors | authors[i].result.value | gem.authors *(1)* |
6+
| author | authors[i].result.value | gem.authors *(1)* |
77
| description | description[i].resultvalue | description *(2)* |
88
| has_package_file | has_package_file[i].result.value | URL of the filename.gemspec file |
99
| homepage | homepage[i].result.value | homepage *(3)* |

0 commit comments

Comments
 (0)