8hk / AEK

SWE 574 Group 2 Fall 2020
1 stars 0 forks source link

Annotation Synonym List Change #85

Closed heobu closed 3 years ago

heobu commented 3 years ago

Change the annotation body to show the synonyms as a list of choices in the following format:

{
    "@context": "http://www.w3.org/ns/anno.jsonld",
    "id": 0,
    "type": "Annotation",
    "body": [
           {
            "type": "Choice",
            "source": "http://purl.obolibrary.org/obo/DOID_3312",
            "items": [
                    {
                            "type": "TextualBody",
                            "value": "Manic bipolar I disorder"
                    },
                    {
                            "type": "TextualBody",
                            "value": "manic depression"
                    },
                    {
                            "type": "TextualBody",
                            "value": "bipolar disorder manic phase"
                    },
                    {
                            "type": "TextualBody",
                            "value": "manic disorder"
                    },
                    {
                            "type": "TextualBody",
                            "value": "Depressive-manic psych."
                    },
                    {
                            "type": "TextualBody",
                            "value": "mixed bipolar disorder"
                    },
                    {
                            "type": "TextualBody",
                            "value": "Manic Depressive disorder"
                    },
                    {
                            "type": "TextualBody",
                            "value": "bipolar depression"
                    },
                    {
                            "type": "TextualBody",
                            "value": "Manic Bipolar Affective disorder"
                    }
                ]
            }
        }
    ],
    "target": {
        "id": "[SERVER_URL]/articles/[PUBMED_ID]",
        "selector: {
            "type:": "TextPositionSelector",
            "start": 491,
            "end": 507
        }
    }
}

The label in the ontological concept is the first choice and all the other synonyms are the following choices.

Related resources: https://www.w3.org/ns/anno.jsonld https://www.w3.org/TR/annotation-model/ https://w3c.github.io/web-annotation/model/wd/ https://www.w3.org/TR/annotation-protocol/ https://www.w3.org/ns/activitystreams# https://www.w3.org/ns/oa#

heobu commented 3 years ago

Is annotation id field correct?

heobu commented 3 years ago
heobu commented 3 years ago

Update the request to Entrez as follows: https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term=bipolar+OR+bipolar+disorder+OR+manic+depression+OR+manic+depression+disorder&retmax=50