/query/metadata

  • Description

    Retrieve metadata for a given source and snapshot.

  • URL (PATH)

    /query/metadata?source=:source&version=:version&token=:token

  • Method

    GET

  • Auth required

    Yes (token)

  • Request parameters
    Parameter Description
    source *required
    [alphanumeric]
    example: source=wikipedia
    Name of the information source.
    version *required
    [alphanumeric with format “aaaa-mm-dd”]
    example: token=eyJhbGciOiJI...
    Date of information source extraction, in "yyyy-mm-dd" format.
    token *required
    [alphanumeric]
    example: token=eyJhbGciOiJI...
    Access key that allows the query to be executed.
  • Example request
                                
                                    GET http://disnet.ctb.upm.es/api/disnet/query/metadata?source=wikipedia&version=2018-09-15&token=eyJhbGciOiJI...
                                
                            
  • Success response (application/json)
                                
                                    {
                                        "token": "eyJhbGciOiJI...",
                                        "authorized": true,
                                        "authorizationMessage": "Authorized!",
                                        "responseCode": "200",
                                        "responseMessage": "OK",
                                        "errorsFound": [],
                                        "configurationsCount": 3,
                                        "configurationList": [
                                            {
                                                "configurationId": "wikipedia:2018-09-15_1536988072973",
                                                "tool": "SE010 - DISEASES AVAILABLE LIST REST API",
                                                "diseaseAlbumConfiguration": {
                                                    "albumId": "ueur88feoutx",
                                                    "version": "2018-09-15",
                                                    "numberDiseases": 9858,
                                                    "source": "SO01",
                                                    "requests": [
                                                        "/last",
                                                        "/get"
                                                    ],
                                                    "serviceCode": "SE010"
                                                }
                                            },
                                            {
                                                "configurationId": "wikipedia:2018-09-15_1537395624575",
                                                "tool": "SE007 - METAMAP REST API",
                                                "metamapConfiguration": {
                                                    "semanticTypes": [
                                                        "sosy",
                                                        "diap",
                                                        "dsyn",
                                                        "fndg",
                                                        "lbpr",
                                                        "lbtr",
                                                        "inpr",
                                                        "menp",
                                                        "mobd",
                                                        "patf",
                                                        "cgab"
                                                    ],
                                                    "sources": [
                                                        "SNOMEDCT_US"
                                                    ],
                                                    "options": "-y -R"
                                                }
                                            },
                                            {
                                                "configurationId": "wikipedia:2018-09-15_1537451461991",
                                                "tool": "SE006 - TVP REST API",
                                                "tvpConfiguration": {
                                                    "numDisnetConcepts": 203626,
                                                    "numNonRepeatedDisnetConcepts": 12748,
                                                    "numValidatedNonRepeatedDisnetConcepts": 1913
                                                }
                                            }
                                        ]
                                    }
                                
                            
  • Error response (application/json)