-
Notifications
You must be signed in to change notification settings - Fork 501
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
assert how "keywords" works, increase code coverage #4371
from 41.16% to 42.94% for DatasetVersion
- Loading branch information
Showing
2 changed files
with
177 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
{ | ||
"datasetVersion": { | ||
"metadataBlocks": { | ||
"citation": { | ||
"fields": [ | ||
{ | ||
"value": "Darwin's Finches", | ||
"typeClass": "primitive", | ||
"multiple": false, | ||
"typeName": "title" | ||
}, | ||
{ | ||
"value": [ | ||
{ | ||
"authorName": { | ||
"value": "Finch, Fiona", | ||
"typeClass": "primitive", | ||
"multiple": false, | ||
"typeName": "authorName" | ||
}, | ||
"authorAffiliation": { | ||
"value": "Birds Inc.", | ||
"typeClass": "primitive", | ||
"multiple": false, | ||
"typeName": "authorAffiliation" | ||
} | ||
} | ||
], | ||
"typeClass": "compound", | ||
"multiple": true, | ||
"typeName": "author" | ||
}, | ||
{ | ||
"value": [ | ||
{ | ||
"datasetContactEmail": { | ||
"typeClass": "primitive", | ||
"multiple": false, | ||
"typeName": "datasetContactEmail", | ||
"value": "[email protected]" | ||
} | ||
} | ||
], | ||
"typeClass": "compound", | ||
"multiple": true, | ||
"typeName": "datasetContact" | ||
}, | ||
{ | ||
"value": [ | ||
{ | ||
"dsDescriptionValue": { | ||
"value": "Darwin's finches (also known as the Galápagos finches) are a group of about fifteen species of passerine birds.", | ||
"multiple": false, | ||
"typeClass": "primitive", | ||
"typeName": "dsDescriptionValue" | ||
} | ||
} | ||
], | ||
"typeClass": "compound", | ||
"multiple": true, | ||
"typeName": "dsDescription" | ||
}, | ||
{ | ||
"value": [ | ||
"Medicine, Health and Life Sciences" | ||
], | ||
"typeClass": "controlledVocabulary", | ||
"multiple": true, | ||
"typeName": "subject" | ||
}, | ||
{ | ||
"typeName": "keyword", | ||
"multiple": true, | ||
"typeClass": "compound", | ||
"value": [ | ||
{ | ||
"keywordValue": { | ||
"typeName": "keywordValue", | ||
"multiple": false, | ||
"typeClass": "primitive", | ||
"value": "KeywordTerm1" | ||
}, | ||
"keywordVocabulary": { | ||
"typeName": "keywordVocabulary", | ||
"multiple": false, | ||
"typeClass": "primitive", | ||
"value": "KeywordVocabulary1" | ||
}, | ||
"keywordVocabularyURI": { | ||
"typeName": "keywordVocabularyURI", | ||
"multiple": false, | ||
"typeClass": "primitive", | ||
"value": "http://KeywordVocabularyURL1.org" | ||
} | ||
}, | ||
{ | ||
"keywordValue": { | ||
"typeName": "keywordValue", | ||
"multiple": false, | ||
"typeClass": "primitive", | ||
"value": "KeywordTerm2" | ||
}, | ||
"keywordVocabulary": { | ||
"typeName": "keywordVocabulary", | ||
"multiple": false, | ||
"typeClass": "primitive", | ||
"value": "KeywordVocabulary2" | ||
}, | ||
"keywordVocabularyURI": { | ||
"typeName": "keywordVocabularyURI", | ||
"multiple": false, | ||
"typeClass": "primitive", | ||
"value": "http://KeywordVocabularyURL2.org" | ||
} | ||
}, | ||
{ | ||
"keywordValue": { | ||
"typeName": "keywordValue", | ||
"multiple": false, | ||
"typeClass": "primitive", | ||
"value": "keywords, with, commas" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"typeName": "topicClassification", | ||
"multiple": true, | ||
"typeClass": "compound", | ||
"value": [ | ||
{ | ||
"topicClassValue": { | ||
"typeName": "topicClassValue", | ||
"multiple": false, | ||
"typeClass": "primitive", | ||
"value": "tcTerm1" | ||
}, | ||
"topicClassVocab": { | ||
"typeName": "topicClassVocab", | ||
"multiple": false, | ||
"typeClass": "primitive", | ||
"value": "tcVocab1" | ||
}, | ||
"topicClassVocabURI": { | ||
"typeName": "topicClassVocabURI", | ||
"multiple": false, | ||
"typeClass": "primitive", | ||
"value": "http://example.com/tcTerm1" | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"displayName": "Citation Metadata" | ||
} | ||
} | ||
} | ||
} |