-
Notifications
You must be signed in to change notification settings - Fork 330
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
2,006 additions
and
674 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
86 changes: 86 additions & 0 deletions
86
osf_tests/metadata/expected_metadata_files/file_basic.datacite.json
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,86 @@ | ||
{ | ||
"alternateIdentifiers": [ | ||
{ | ||
"alternateIdentifier": "http://localhost:5000/w3ibb", | ||
"alternateIdentifierType": "URL" | ||
} | ||
], | ||
"contributors": [ | ||
{ | ||
"contributorName": { | ||
"contributorName": "Center for Open Science", | ||
"nameType": "Organizational" | ||
}, | ||
"contributorType": "HostingInstitution", | ||
"nameIdentifier": { | ||
"nameIdentifier": "https://cos.io/", | ||
"nameIdentifierScheme": "URL" | ||
} | ||
} | ||
], | ||
"creators": [ | ||
{ | ||
"creatorName": { | ||
"creatorName": "Person McNamington", | ||
"nameType": "Personal" | ||
}, | ||
"nameIdentifier": { | ||
"nameIdentifier": "http://localhost:5000/w1ibb", | ||
"nameIdentifierScheme": "URL" | ||
} | ||
} | ||
], | ||
"dates": [ | ||
{ | ||
"date": "2123-05-04", | ||
"dateType": "Created" | ||
}, | ||
{ | ||
"date": "2123-05-04", | ||
"dateType": "Updated" | ||
} | ||
], | ||
"descriptions": [], | ||
"fundingReferences": [], | ||
"identifier": { | ||
"identifier": "http://localhost:5000/w3ibb", | ||
"identifierType": "URL" | ||
}, | ||
"publicationYear": "2123", | ||
"publisher": "OSF", | ||
"relatedIdentifiers": [ | ||
{ | ||
"relatedIdentifier": "10.70102/FK2osf.io/w2ibb", | ||
"relatedIdentifierType": "DOI", | ||
"relationType": "IsPartOf" | ||
} | ||
], | ||
"relatedItems": [ | ||
{ | ||
"publicationYear": "2252", | ||
"publisher": "OSF", | ||
"relatedItemIdentifier": { | ||
"relatedItemIdentifier": "10.70102/FK2osf.io/w2ibb", | ||
"relatedItemIdentifierType": "DOI" | ||
}, | ||
"relatedItemType": "Text", | ||
"relationType": "IsPartOf", | ||
"titles": [ | ||
{ | ||
"title": "this is a project title!" | ||
} | ||
] | ||
} | ||
], | ||
"resourceType": { | ||
"resourceType": "File", | ||
"resourceTypeGeneral": "Text" | ||
}, | ||
"rightsList": [], | ||
"subjects": [], | ||
"titles": [ | ||
{ | ||
"title": "my-file.blarg" | ||
} | ||
] | ||
} |
47 changes: 47 additions & 0 deletions
47
osf_tests/metadata/expected_metadata_files/file_basic.datacite.xml
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,47 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<resource xmlns="http://datacite.org/schema/kernel-4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4.4/metadata.xsd"> | ||
<identifier identifierType="URL">http://localhost:5000/w3ibb</identifier> | ||
<creators> | ||
<creator> | ||
<creatorName nameType="Personal">Person McNamington</creatorName> | ||
<nameIdentifier nameIdentifierScheme="URL">http://localhost:5000/w1ibb</nameIdentifier> | ||
</creator> | ||
</creators> | ||
<titles> | ||
<title>my-file.blarg</title> | ||
</titles> | ||
<publisher>OSF</publisher> | ||
<publicationYear>2123</publicationYear> | ||
<subjects/> | ||
<contributors> | ||
<contributor contributorType="HostingInstitution"> | ||
<contributorName nameType="Organizational">Center for Open Science</contributorName> | ||
<nameIdentifier nameIdentifierScheme="ROR">https://ror.org/05d5mza29</nameIdentifier> | ||
<nameIdentifier nameIdentifierScheme="URL">https://cos.io/</nameIdentifier> | ||
</contributor> | ||
</contributors> | ||
<dates> | ||
<date dateType="Created">2123-05-04</date> | ||
<date dateType="Updated">2123-05-04</date> | ||
</dates> | ||
<resourceType resourceTypeGeneral="Text">File</resourceType> | ||
<alternateIdentifiers> | ||
<alternateIdentifier alternateIdentifierType="URL">http://localhost:5000/w3ibb</alternateIdentifier> | ||
</alternateIdentifiers> | ||
<rightsList/> | ||
<descriptions/> | ||
<fundingReferences/> | ||
<relatedIdentifiers> | ||
<relatedIdentifier relatedIdentifierType="DOI" relationType="IsPartOf">10.70102/FK2osf.io/w2ibb</relatedIdentifier> | ||
</relatedIdentifiers> | ||
<relatedItems> | ||
<relatedItem relationType="IsPartOf" relatedItemType="Text"> | ||
<relatedItemIdentifier relatedItemIdentifierType="DOI">10.70102/FK2osf.io/w2ibb</relatedItemIdentifier> | ||
<titles> | ||
<title>this is a project title!</title> | ||
</titles> | ||
<publicationYear>2252</publicationYear> | ||
<publisher>OSF</publisher> | ||
</relatedItem> | ||
</relatedItems> | ||
</resource> |
41 changes: 41 additions & 0 deletions
41
osf_tests/metadata/expected_metadata_files/file_basic.turtle
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,41 @@ | ||
@prefix dcterms: <http://purl.org/dc/terms/> . | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/> . | ||
@prefix osf: <https://osf.io/vocab/2022/> . | ||
@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
|
||
<http://localhost:5000/w3ibb> a osf:File ; | ||
dcterms:created "2123-05-04" ; | ||
dcterms:identifier "http://localhost:5000/w3ibb" ; | ||
dcterms:modified "2123-05-04" ; | ||
osf:fileName "my-file.blarg" ; | ||
osf:filePath "/my-file.blarg" ; | ||
osf:hasFileVersion <http://localhost:5000/w3ibb?revision=1> ; | ||
osf:isContainedBy <http://localhost:5000/w2ibb> . | ||
|
||
<http://localhost:5000/w2ibb> a osf:Project ; | ||
dcterms:created "2123-05-04" ; | ||
dcterms:creator <http://localhost:5000/w1ibb> ; | ||
dcterms:identifier "http://localhost:5000/w2ibb", | ||
"https://doi.org/10.70102/FK2osf.io/w2ibb" ; | ||
dcterms:publisher <http://localhost:5000> ; | ||
dcterms:title "this is a project title!" ; | ||
owl:sameAs <https://doi.org/10.70102/FK2osf.io/w2ibb> . | ||
|
||
<http://localhost:5000/w3ibb?revision=1> a osf:FileVersion ; | ||
dcterms:created "2123-05-04" ; | ||
dcterms:creator <http://localhost:5000/w1ibb> ; | ||
dcterms:extent "0.000007 MB" ; | ||
dcterms:format "img/png" ; | ||
dcterms:modified "2123-05-04" ; | ||
dcterms:requires <urn:checksum:sha-256::6ac3c336e4094835293a3fed8a4b5fedde1b5e2626d9838fed50693bba00af0e> ; | ||
osf:versionNumber "1" . | ||
|
||
<http://localhost:5000/w1ibb> a osf:Agent ; | ||
dcterms:identifier "http://localhost:5000/w1ibb" ; | ||
dcterms:type foaf:Person ; | ||
foaf:name "Person McNamington" . | ||
|
||
<http://localhost:5000> a osf:Agent ; | ||
dcterms:identifier "http://localhost:5000" ; | ||
dcterms:type foaf:Organization ; | ||
foaf:name "OSF" . |
87 changes: 87 additions & 0 deletions
87
osf_tests/metadata/expected_metadata_files/file_full.datacite.json
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,87 @@ | ||
{ | ||
"alternateIdentifiers": [ | ||
{ | ||
"alternateIdentifier": "http://localhost:5000/w3ibb", | ||
"alternateIdentifierType": "URL" | ||
} | ||
], | ||
"contributors": [ | ||
{ | ||
"contributorName": { | ||
"contributorName": "Center for Open Science", | ||
"nameType": "Organizational" | ||
}, | ||
"contributorType": "HostingInstitution", | ||
"nameIdentifier": { | ||
"nameIdentifier": "https://cos.io/", | ||
"nameIdentifierScheme": "URL" | ||
} | ||
} | ||
], | ||
"creators": [ | ||
{ | ||
"creatorName": { | ||
"creatorName": "Person McNamington", | ||
"nameType": "Personal" | ||
}, | ||
"nameIdentifier": { | ||
"nameIdentifier": "http://localhost:5000/w1ibb", | ||
"nameIdentifierScheme": "URL" | ||
} | ||
} | ||
], | ||
"dates": [ | ||
{ | ||
"date": "2123-05-04", | ||
"dateType": "Created" | ||
}, | ||
{ | ||
"date": "2123-05-04", | ||
"dateType": "Updated" | ||
} | ||
], | ||
"descriptions": [], | ||
"fundingReferences": [], | ||
"identifier": { | ||
"identifier": "http://localhost:5000/w3ibb", | ||
"identifierType": "URL" | ||
}, | ||
"publicationYear": "2123", | ||
"publisher": "OSF", | ||
"relatedIdentifiers": [ | ||
{ | ||
"relatedIdentifier": "10.70102/FK2osf.io/w2ibb", | ||
"relatedIdentifierType": "DOI", | ||
"relationType": "IsPartOf" | ||
} | ||
], | ||
"relatedItems": [ | ||
{ | ||
"publicationYear": "2123", | ||
"publisher": "OSF", | ||
"relatedItemIdentifier": { | ||
"relatedItemIdentifier": "10.70102/FK2osf.io/w2ibb", | ||
"relatedItemIdentifierType": "DOI" | ||
}, | ||
"relatedItemType": "Dataset", | ||
"relationType": "IsPartOf", | ||
"titles": [ | ||
{ | ||
"lang": "en", | ||
"title": "this is a project title!" | ||
} | ||
] | ||
} | ||
], | ||
"resourceType": { | ||
"resourceType": "File", | ||
"resourceTypeGeneral": "Text" | ||
}, | ||
"rightsList": [], | ||
"subjects": [], | ||
"titles": [ | ||
{ | ||
"title": "my-file.blarg" | ||
} | ||
] | ||
} |
47 changes: 47 additions & 0 deletions
47
osf_tests/metadata/expected_metadata_files/file_full.datacite.xml
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,47 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<resource xmlns="http://datacite.org/schema/kernel-4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4.4/metadata.xsd"> | ||
<identifier identifierType="URL">http://localhost:5000/w3ibb</identifier> | ||
<creators> | ||
<creator> | ||
<creatorName nameType="Personal">Person McNamington</creatorName> | ||
<nameIdentifier nameIdentifierScheme="URL">http://localhost:5000/w1ibb</nameIdentifier> | ||
</creator> | ||
</creators> | ||
<titles> | ||
<title>my-file.blarg</title> | ||
</titles> | ||
<publisher>OSF</publisher> | ||
<publicationYear>2123</publicationYear> | ||
<subjects/> | ||
<contributors> | ||
<contributor contributorType="HostingInstitution"> | ||
<contributorName nameType="Organizational">Center for Open Science</contributorName> | ||
<nameIdentifier nameIdentifierScheme="ROR">https://ror.org/05d5mza29</nameIdentifier> | ||
<nameIdentifier nameIdentifierScheme="URL">https://cos.io/</nameIdentifier> | ||
</contributor> | ||
</contributors> | ||
<dates> | ||
<date dateType="Created">2123-05-04</date> | ||
<date dateType="Updated">2123-05-04</date> | ||
</dates> | ||
<resourceType resourceTypeGeneral="Text">File</resourceType> | ||
<alternateIdentifiers> | ||
<alternateIdentifier alternateIdentifierType="URL">http://localhost:5000/w3ibb</alternateIdentifier> | ||
</alternateIdentifiers> | ||
<rightsList/> | ||
<descriptions/> | ||
<fundingReferences/> | ||
<relatedIdentifiers> | ||
<relatedIdentifier relatedIdentifierType="DOI" relationType="IsPartOf">10.70102/FK2osf.io/w2ibb</relatedIdentifier> | ||
</relatedIdentifiers> | ||
<relatedItems> | ||
<relatedItem relationType="IsPartOf" relatedItemType="Dataset"> | ||
<relatedItemIdentifier relatedItemIdentifierType="DOI">10.70102/FK2osf.io/w2ibb</relatedItemIdentifier> | ||
<titles> | ||
<title xml:lang="en">this is a project title!</title> | ||
</titles> | ||
<publicationYear>2123</publicationYear> | ||
<publisher>OSF</publisher> | ||
</relatedItem> | ||
</relatedItems> | ||
</resource> |
Oops, something went wrong.