Skip to content
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

keyword lowercase and plural + test for multiple keywords research #15

Merged
merged 2 commits into from
Aug 21, 2024

Conversation

Iskander54
Copy link
Contributor

@Iskander54 Iskander54 commented Aug 16, 2024

Searching across both DMPs and DAPs via the portal will be aided where there are common properties under the data field. Currently, general keywords are held under different names between the two project types: keyWords vs. keyword, respectively. This PR proposes to change both to keywords.

@Iskander54 Iskander54 assigned Iskander54 and RayPlante and unassigned Iskander54 Aug 19, 2024
@@ -800,7 +800,7 @@ def _summarize(self, nerd: NERDResource):
out["contactPoint"] = resmd["contactPoint"]
if 'landingPage' in resmd:
out["landingPage"] = resmd["landingPage"]
out["keyword"] = resmd.get("keyword", [])
out["keywords"] = resmd.get("keywords", [])
Copy link
Collaborator

@RayPlante RayPlante Aug 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In DAP records, the data property (being set via out in the above code) represents a summary of the NERDm resource metadata (contained in resmd above). We will not be changing the NERDm schema (standardized via a JSON-Schema definition)--only how the selected information is provided in the summary. Thus, the right-side reference to the property should remain singular (which I will fix in a subsequent commit).

Copy link
Contributor Author

@Iskander54 Iskander54 Aug 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK good to know, I thought those two had to match

@RayPlante RayPlante merged commit 4487717 into integration Aug 21, 2024
2 checks passed
@RayPlante RayPlante deleted the fix/keyword branch August 21, 2024 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants