Search Docs…

Search Docs…

Orpheus API Reference

Predicate Graphql Query

POST Predicate Graphql Query

https://api.wisecube.ai/orpheus/graphql

BODY graphql

The API retrieves information about predicates associated with a given label.

QUERY

query($label: String!){getPredicates(label: $label)  
}

GRAPHQL VARIABLES

{
    "label": "encodes"
}

Example Request:

POST /orpheus/graphql HTTP/1.1 
Host: api.wisecube.ai 
Content-Type: application/json 
Content-Length: 1324 

{\"query\":\"query($label: String!){getPredicates(label: $label)  \\n}\",\"variables\":{\"label\":\"encodes\"}}

Example Response

{
    "data": {
        "getPredicates": [
            {
                "id": "e1rGTokBvmoa-dmO1_jJ",
                "uri": "http://www.wikidata.org/entity/P688",
                "description": "the product of a gene (protein or RNA)",
                "pid": "P688",
                "label": "encodes",
                "alias": [
                    "codes for"
                ]
            },
            {
                "id": "fVrGTokBvmoa-dmO1_jJ",
                "uri": "http://www.wikidata.org/entity/P688",
                "description": "the product of a gene (protein or RNA)",
                "pid": "P688",
                "label": "encodes",
                "alias": [
                    "codes for"
                ]
            },
            {...},
            {...}
        ]
    }
}

Wisecube AI

© 2024