/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

    Optional (token)

  • Request parameters
    Parameter Description
    source *required
    [alphanumeric]
    example: source=wikipedia
    Name of the ifonrmation source
    version *required
    [alphanumeric with format “aaaa-mm-dd”]
    example: version=2018-09-15
    Date of the information source extraction, in “yyyy-mm-dd” format
    token
    [alphanumeric]
    example: token=eyJhbGciOiJI...
    Optional access key to save the current query inside the user's profile
  • Example request
                                         GET http://disnet.ctb.upm.es/api/disnet/query/metadata?source=wikipedia&version=2018-09-15&token=
                                    
  • Success response (application/json)
                                        {
        "token": "null", 
        "authorized": false, 
        "authorizationMessage": "null", 
        "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)

    Common errors

    Source error

    Version error