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

[Feature] Duplicate Handling #35

Open
2 of 3 tasks
fbaig opened this issue Aug 6, 2024 · 3 comments
Open
2 of 3 tasks

[Feature] Duplicate Handling #35

fbaig opened this issue Aug 6, 2024 · 3 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@fbaig
Copy link
Contributor

fbaig commented Aug 6, 2024

There is no mechanism to avoid duplicate elements in the current system. To start with,

  • There should be no duplicate titles for all elements
  • Specifically for publications, duplicate checking should be done on DOIs
  • Possibly need to merge existing duplicate for the next release
@fbaig fbaig added bug Something isn't working enhancement New feature or request labels Aug 6, 2024
@fbaig fbaig self-assigned this Aug 6, 2024
@fbaig
Copy link
Contributor Author

fbaig commented Oct 4, 2024

For publications
CREATE CONSTRAINT publication_doi FOR (p:Publication) REQUIRE p.external_link IS UNIQUE
For all nodes

Finding duplicates

MATCH (d1:Dataset), (d2:Dataset)
WHERE d1.title = d2.title AND NOT d1 = d2
RETURN d1, d2

@fbaig
Copy link
Contributor Author

fbaig commented Oct 4, 2024

Endpoint to get list of DOIs and urls.
/api/elements/duplicate?<feature-that-needs-to-be-checked-for-duplicate>

@fbaig
Copy link
Contributor Author

fbaig commented Oct 8, 2024

Functionality implemented in 3df827b and a182e19

Things to do

  • Add duplicates handling for elements other than Publications

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant