-
Notifications
You must be signed in to change notification settings - Fork 2
Bugfix 48 creator query too narrow #124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
iannesbitt
wants to merge
10
commits into
main
Choose a base branch
from
bugfix-48-creator-query-too-narrow
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
70f1d37
adding jsonld w/ alt config of "creator" (#48)
iannesbitt b2ab6d5
adding spoofed systemmetadata file for creator-role json-ld test case
iannesbitt b12e74b
adding sparql queries to address #48
iannesbitt 97648fe
adding a test for creator role list types
iannesbitt ef308ff
changing sm time to not match
iannesbitt 2d643a1
adding unit test for schema.org creator-role and creator-role-list sp…
iannesbitt 4632e2b
adding unit test for schema.org creatorrole and creatorrolelist sparq…
iannesbitt aab0578
reducing test time
iannesbitt 3151375
reducing test time #2
iannesbitt 87881f0
adding bean references to application-context-json-ld.xml
iannesbitt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
44 changes: 44 additions & 0 deletions
44
...dataone/cn/index/resources/d1_testdocs/json-ld/creator-role-list/creator-role-list.jsonld
This file contains hidden or 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,44 @@ | ||
| { | ||
| "@context": "http://schema.org/", | ||
| "@type":"Dataset", | ||
| "description":"Vocab https://schema.org/, creator without @list and with @type: 'Role'. Modeled after CanWIN SO format.", | ||
| "name":"test of alternative creator field configuration", | ||
| "creator": [ | ||
| { | ||
| "@type": "Role", | ||
| "creator": { | ||
| "@type": "Person", | ||
| "Affiliation": { | ||
| "@type": "Organization", | ||
| "name": "National Center for Ecological Analaysis and Synthesis" | ||
| }, | ||
| "Email": "[email protected]", | ||
| "Identifier": { | ||
| "@type": "PropertyValue", | ||
| "propertyID": "https://registry.identifiers.org/registry/orcid", | ||
| "url": "http://orcid.org/0000-0001-5828-6070", | ||
| "value": "0000-0001-5828-6070" | ||
| }, | ||
| "Name": "Nesbitt, Ian\t" | ||
| } | ||
| }, | ||
| { | ||
| "@type": "Role", | ||
| "creator": { | ||
| "@type": "Person", | ||
| "Affiliation": { | ||
| "@type": "Organization", | ||
| "name": "National Center for Ecological Analaysis and Synthesis" | ||
| }, | ||
| "Email": "[email protected]", | ||
| "Identifier": { | ||
| "@type": "PropertyValue", | ||
| "propertyID": "https://registry.identifiers.org/registry/orcid", | ||
| "url": "http://orcid.org/0000-0002-1209-5268", | ||
| "value": "0000-0002-1209-5268" | ||
| }, | ||
| "Name": "Tao, Jing\t" | ||
| } | ||
| } | ||
| ] | ||
| } |
26 changes: 26 additions & 0 deletions
26
...s/org/dataone/cn/index/resources/d1_testdocs/json-ld/creator-role-list/systemmetadata.xml
This file contains hidden or 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,26 @@ | ||
| <?xml version='1.0' encoding='UTF-8'?> | ||
| <ns1:systemMetadata xmlns:ns1="http://ns.dataone.org/service/types/v2.0"> | ||
| <serialVersion>1</serialVersion> | ||
| <identifier>creator-role-list.jsonld</identifier> | ||
| <formatId>science-on-schema.org/Dataset;ld+json</formatId> | ||
| <size>498</size> | ||
| <checksum algorithm="MD5"></checksum> | ||
| <submitter>dataone_integration_test_user</submitter> | ||
| <rightsHolder>dataone_integration_test_user</rightsHolder> | ||
| <accessPolicy> | ||
| <allow> | ||
| <subject>dataone_public_user</subject> | ||
| <permission>read</permission> | ||
| </allow> | ||
| <allow> | ||
| <subject>dataone_integration_test_user</subject> | ||
| <permission>write</permission> | ||
| </allow> | ||
| </accessPolicy> | ||
| <replicationPolicy replicationAllowed="true"/> | ||
| <dateUploaded>2024-08-17T12:59:47.171874</dateUploaded> | ||
| <dateSysMetadataModified>2024-08-17T12:59:47.173344</dateSysMetadataModified> | ||
| <originMemberNode>test_documents</originMemberNode> | ||
| <authoritativeMemberNode>test_documents</authoritativeMemberNode> | ||
| </ns1:systemMetadata> | ||
|
|
24 changes: 24 additions & 0 deletions
24
...urces/org/dataone/cn/index/resources/d1_testdocs/json-ld/creator-role/creator-role.jsonld
This file contains hidden or 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,24 @@ | ||
| { | ||
| "@context": "http://schema.org/", | ||
| "@type":"Dataset", | ||
| "description":"Vocab https://schema.org/, creator without @list and with @type: 'Role'. Modeled after CanWIN SO format.", | ||
| "name":"test of alternative creator field configuration", | ||
| "creator": { | ||
| "@type": "Role", | ||
| "creator": { | ||
| "@type": "Person", | ||
| "Affiliation": { | ||
| "@type": "Organization", | ||
| "name": "National Center for Ecological Analaysis and Synthesis" | ||
| }, | ||
| "Email": "[email protected]", | ||
| "Identifier": { | ||
| "@type": "PropertyValue", | ||
| "propertyID": "https://registry.identifiers.org/registry/orcid", | ||
| "url": "http://orcid.org/0000-0001-5828-6070", | ||
| "value": "0000-0001-5828-6070" | ||
| }, | ||
| "Name": "Nesbitt, Ian\t" | ||
| } | ||
| } | ||
| } |
26 changes: 26 additions & 0 deletions
26
...ources/org/dataone/cn/index/resources/d1_testdocs/json-ld/creator-role/systemmetadata.xml
This file contains hidden or 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,26 @@ | ||
| <?xml version='1.0' encoding='UTF-8'?> | ||
| <ns1:systemMetadata xmlns:ns1="http://ns.dataone.org/service/types/v2.0"> | ||
| <serialVersion>1</serialVersion> | ||
| <identifier>creator-role.jsonld</identifier> | ||
| <formatId>science-on-schema.org/Dataset;ld+json</formatId> | ||
| <size>498</size> | ||
| <checksum algorithm="MD5"></checksum> | ||
| <submitter>dataone_integration_test_user</submitter> | ||
| <rightsHolder>dataone_integration_test_user</rightsHolder> | ||
| <accessPolicy> | ||
| <allow> | ||
| <subject>dataone_public_user</subject> | ||
| <permission>read</permission> | ||
| </allow> | ||
| <allow> | ||
| <subject>dataone_integration_test_user</subject> | ||
| <permission>write</permission> | ||
| </allow> | ||
| </accessPolicy> | ||
| <replicationPolicy replicationAllowed="true"/> | ||
| <dateUploaded>2024-08-17T11:59:47.171874</dateUploaded> | ||
| <dateSysMetadataModified>2024-08-17T11:59:47.173344</dateSysMetadataModified> | ||
| <originMemberNode>test_documents</originMemberNode> | ||
| <authoritativeMemberNode>test_documents</authoritativeMemberNode> | ||
| </ns1:systemMetadata> | ||
|
|
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
both these new tests fail for me: