-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #294 from citation-file-format/285-email-in-codemeta
Add email to author data for 1.2.0 and CodeMeta output
- Loading branch information
Showing
29 changed files
with
1,200 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"creators": [ | ||
{ | ||
"affiliation": "Netherlands eScience Center", | ||
"name": "von der Spaaks Jr., Jurriaan H.", | ||
"orcid": "0000-0002-7064-4069" | ||
} | ||
], | ||
"title": "the title" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
authors: | ||
- given-names: Jurriaan H. | ||
name-particle: von der | ||
family-names: Spaaks | ||
name-suffix: Jr. | ||
alias: jspaaks | ||
orcid: https://orcid.org/0000-0002-7064-4069 | ||
affiliation: Netherlands eScience Center | ||
email: my@email.notexist | ||
cff-version: "1.2.0" | ||
message: "test of author inputs" | ||
title: the title |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
von der Spaaks Jr. J.H. the title |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@misc{YourReferenceHere, | ||
author = {von der Spaaks Jr., Jurriaan H.}, | ||
title = {the title} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
%0 Generic | ||
%A von der Spaaks Jr., Jurriaan H. | ||
%T the title |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
TY - GEN | ||
AU - von der Spaaks Jr., Jurriaan H. | ||
TI - the title | ||
ER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"@context": "https://schema.org", | ||
"@type": "SoftwareSourceCode", | ||
"author": [ | ||
{ | ||
"@id": "https://orcid.org/0000-0002-7064-4069", | ||
"@type": "Person", | ||
"affiliation": { | ||
"@type": "Organization", | ||
"legalName": "Netherlands eScience Center" | ||
}, | ||
"alternateName": "jspaaks", | ||
"email": "my@email.notexist", | ||
"familyName": "von der Spaaks Jr.", | ||
"givenName": "Jurriaan H." | ||
} | ||
], | ||
"name": "the title" | ||
} |
46 changes: 46 additions & 0 deletions
46
....0/authors-creators/one/GFA_AOE/test_1_2_0_authors_creators_one_GFA_AOE_apalike_object.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import os | ||
import pytest | ||
from test.contracts.apalike_object import Contract | ||
from cffconvert.behavior_1_2_x.apalike_object import ApalikeObject | ||
from cffconvert import Citation | ||
|
||
|
||
@pytest.fixture(scope="module") | ||
def apalike_object(): | ||
fixture = os.path.join(os.path.dirname(__file__), "CITATION.cff") | ||
with open(fixture, "rt", encoding="utf-8") as f: | ||
cffstr = f.read() | ||
citation = Citation(cffstr) | ||
return ApalikeObject(citation.cffobj, initialize_empty=True) | ||
|
||
|
||
class TestApalikeObject(Contract): | ||
|
||
def test_author(self, apalike_object): | ||
assert apalike_object.add_author().author == 'von der Spaaks Jr. J.H.' | ||
|
||
def test_check_cffobj(self, apalike_object): | ||
apalike_object.check_cffobj() | ||
# doesn't need an assert | ||
|
||
def test_doi(self, apalike_object): | ||
assert apalike_object.add_doi().doi is None | ||
|
||
def test_as_string(self, apalike_object): | ||
actual_apalike = apalike_object.add_all().as_string() | ||
fixture = os.path.join(os.path.dirname(__file__), "apalike.txt") | ||
with open(fixture, "rt", encoding="utf-8") as f: | ||
expected_apalike = f.read() | ||
assert actual_apalike == expected_apalike | ||
|
||
def test_title(self, apalike_object): | ||
assert apalike_object.add_title().title == 'the title' | ||
|
||
def test_url(self, apalike_object): | ||
assert apalike_object.add_url().url is None | ||
|
||
def test_version(self, apalike_object): | ||
assert apalike_object.add_version().version is None | ||
|
||
def test_year(self, apalike_object): | ||
assert apalike_object.add_year().year is None |
46 changes: 46 additions & 0 deletions
46
...2.0/authors-creators/one/GFA_AOE/test_1_2_0_authors_creators_one_GFA_AOE_bibtex_object.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import os | ||
import pytest | ||
from test.contracts.bibtex_object import Contract | ||
from cffconvert.behavior_1_2_x.bibtex_object import BibtexObject | ||
from cffconvert import Citation | ||
|
||
|
||
@pytest.fixture(scope="module") | ||
def bibtex_object(): | ||
fixture = os.path.join(os.path.dirname(__file__), "CITATION.cff") | ||
with open(fixture, "rt", encoding="utf-8") as f: | ||
cffstr = f.read() | ||
citation = Citation(cffstr) | ||
return BibtexObject(citation.cffobj, initialize_empty=True) | ||
|
||
|
||
class TestBibtexObject(Contract): | ||
|
||
def test_author(self, bibtex_object): | ||
assert bibtex_object.add_author().author == 'author = {von der Spaaks Jr., Jurriaan H.}' | ||
|
||
def test_check_cffobj(self, bibtex_object): | ||
bibtex_object.check_cffobj() | ||
# doesn't need an assert | ||
|
||
def test_doi(self, bibtex_object): | ||
assert bibtex_object.add_doi().doi is None | ||
|
||
def test_month(self, bibtex_object): | ||
assert bibtex_object.add_month().month is None | ||
|
||
def test_as_string(self, bibtex_object): | ||
actual_bibtex = bibtex_object.add_all().as_string() | ||
fixture = os.path.join(os.path.dirname(__file__), "bibtex.bib") | ||
with open(fixture, "rt", encoding="utf-8") as f: | ||
expected_bibtex = f.read() | ||
assert actual_bibtex == expected_bibtex | ||
|
||
def test_title(self, bibtex_object): | ||
assert bibtex_object.add_title().title == 'title = {the title}' | ||
|
||
def test_url(self, bibtex_object): | ||
assert bibtex_object.add_url().url is None | ||
|
||
def test_year(self, bibtex_object): | ||
assert bibtex_object.add_year().year is None |
19 changes: 19 additions & 0 deletions
19
test/1.2.0/authors-creators/one/GFA_AOE/test_1_2_0_authors_creators_one_GFA_AOE_citation.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import os | ||
import pytest | ||
from cffconvert.citation import Citation | ||
|
||
|
||
@pytest.fixture(scope="module") | ||
def citation(): | ||
p = os.path.join(os.path.dirname(__file__), "CITATION.cff") | ||
with open(p, "rt", encoding="utf-8") as fid: | ||
cffstr = fid.read() | ||
return Citation(cffstr) | ||
|
||
|
||
def test_cffversion(citation): | ||
assert citation.cffversion == "1.2.0" | ||
|
||
|
||
def test_validate(citation): | ||
citation.validate() |
46 changes: 46 additions & 0 deletions
46
....0/authors-creators/one/GFA_AOE/test_1_2_0_authors_creators_one_GFA_AOE_endnote_object.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import os | ||
import pytest | ||
from test.contracts.endnote_object import Contract | ||
from cffconvert.behavior_1_2_x.endnote_object import EndnoteObject | ||
from cffconvert import Citation | ||
|
||
|
||
@pytest.fixture(scope="module") | ||
def endnote_object(): | ||
fixture = os.path.join(os.path.dirname(__file__), "CITATION.cff") | ||
with open(fixture, "rt", encoding="utf-8") as f: | ||
cffstr = f.read() | ||
citation = Citation(cffstr) | ||
return EndnoteObject(citation.cffobj, initialize_empty=True) | ||
|
||
|
||
class TestEndnoteObject(Contract): | ||
|
||
def test_check_cffobj(self, endnote_object): | ||
endnote_object.check_cffobj() | ||
# doesn't need an assert | ||
|
||
def test_author(self, endnote_object): | ||
assert endnote_object.add_author().author == '%A von der Spaaks Jr., Jurriaan H.\n' | ||
|
||
def test_doi(self, endnote_object): | ||
assert endnote_object.add_doi().doi is None | ||
|
||
def test_keyword(self, endnote_object): | ||
assert endnote_object.add_keyword().keyword is None | ||
|
||
def test_name(self, endnote_object): | ||
assert endnote_object.add_name().name == '%T the title\n' | ||
|
||
def test_as_string(self, endnote_object): | ||
actual_endnote = endnote_object.add_all().as_string() | ||
fixture = os.path.join(os.path.dirname(__file__), "endnote.enw") | ||
with open(fixture, "rt", encoding="utf-8") as f: | ||
expected_endnote = f.read() | ||
assert actual_endnote == expected_endnote | ||
|
||
def test_url(self, endnote_object): | ||
assert endnote_object.add_url().url is None | ||
|
||
def test_year(self, endnote_object): | ||
assert endnote_object.add_year().year is None |
52 changes: 52 additions & 0 deletions
52
.../1.2.0/authors-creators/one/GFA_AOE/test_1_2_0_authors_creators_one_GFA_AOE_ris_object.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import os | ||
import pytest | ||
from test.contracts.ris_object import Contract | ||
from cffconvert.behavior_1_2_x.ris_object import RisObject | ||
from cffconvert import Citation | ||
|
||
|
||
@pytest.fixture(scope="module") | ||
def ris_object(): | ||
fixture = os.path.join(os.path.dirname(__file__), "CITATION.cff") | ||
with open(fixture, "rt", encoding="utf-8") as f: | ||
cffstr = f.read() | ||
citation = Citation(cffstr) | ||
return RisObject(citation.cffobj, initialize_empty=True) | ||
|
||
|
||
class TestRisObject(Contract): | ||
|
||
def test_abstract(self, ris_object): | ||
assert ris_object.add_abstract().abstract is None | ||
|
||
def test_author(self, ris_object): | ||
assert ris_object.add_author().author == 'AU - von der Spaaks Jr., Jurriaan H.\n' | ||
|
||
def test_check_cffobj(self, ris_object): | ||
ris_object.check_cffobj() | ||
# doesn't need an assert | ||
|
||
def test_date(self, ris_object): | ||
assert ris_object.add_date().date is None | ||
|
||
def test_doi(self, ris_object): | ||
assert ris_object.add_doi().doi is None | ||
|
||
def test_keywords(self, ris_object): | ||
assert ris_object.add_keywords().keywords is None | ||
|
||
def test_as_string(self, ris_object): | ||
actual_ris = ris_object.add_all().as_string() | ||
fixture = os.path.join(os.path.dirname(__file__), "ris.txt") | ||
with open(fixture, "rt", encoding="utf-8") as f: | ||
expected_ris = f.read() | ||
assert actual_ris == expected_ris | ||
|
||
def test_title(self, ris_object): | ||
assert ris_object.add_title().title == 'TI - the title\n' | ||
|
||
def test_url(self, ris_object): | ||
assert ris_object.add_url().url is None | ||
|
||
def test_year(self, ris_object): | ||
assert ris_object.add_year().year is None |
Oops, something went wrong.