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

Data use conditions and querying #84

Open
anuradhawick opened this issue Jun 9, 2023 · 2 comments
Open

Data use conditions and querying #84

anuradhawick opened this issue Jun 9, 2023 · 2 comments

Comments

@anuradhawick
Copy link

Greetings,

I am implementing a querying capability that honours data use conditions attached to datasets. Following the documentation at https://github.com/EBISPOT/DUO, I was not able to identify a correct way to call API around this.

Ideally, the querying party should be able to explicitly specify their intended data use scenario using DUO terms (AKA data use category) which shall then be matched against the DUO terms attached to datasets. Using these terms right within filters does not seem appropriate as they behave in a significantly different manner.

Would you be able to comment on this?

What would be nice is to have an attribute to specify them as below;

{
    "query": {
        "filters": [],
        "requestedGranularity": "record"
    },
    "dataAccess" {
        "duoDataUse": [
             {
                  "id": "DUO:0000018",
                  "modifiers": [ { "id": "MONDO:0005105" } ]
             },
        ]
    },
    "meta": {
        "apiVersion": "v2.0"
    }
}

Appreciate your feedback.
Thanks

@jrambla
Copy link
Contributor

jrambla commented Jun 13, 2023

IMHO, querying DUOs fit in the filtering terms for datasets, BUT not that much with the AND boolean operator Beacon principle.
Although I don't see that option totally blocked, I believe it is worth to explore how to address the DUO querying using requestParameters, like in genomic_variations endpoint.
Do you want to give it a try?

@anuradhawick
Copy link
Author

Yes. I will give it a go. I'll share my solution when I'm done. Thanks for the feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants