Search Docs…

Search Docs…

Orpheus API Reference

Execute Score Function Query

POST Execute Score Function Query

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

BODY graphql

This API retrieves the score for each triple.

QUERY

query($triples: [[String!]]) { executeScoreFunction(triples: $triples
  )
}

GRAPHQL VARIABLES


{
    "triples":  [
    [
      "Q14865565",
      "P2293",
      "Q3658562"
    ],
    [
      "Q14865565",
      "P2293",
      "Q282142"
    ],
    [
      "Q14865565",
      "P2293",
      "Q264118"
    ]
  ]
}

Example Request:

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

{\"query\":\"query($triples: [[String!]]) { executeScoreFunction(triples: $triples\\n  )\\n}\",\"variables\":{\"triples\":[[\"Q14865565\",\"P2293\",\"Q3658562\"],[\"Q14865565\",\"P2293\",\"Q282142\"],[\"Q14865565\",\"P2293\",\"Q264118\"]]}}

Example Response

{
    "data": {
        "executeScoreFunction": [
            [
                "Q14865565",
                "P2293",
                "Q3658562",
                2.5887339506901013
            ],
            [
                "Q14865565",
                "P2293",
                "Q282142",
                -0.9171887648406936
            ],
            [
                "Q14865565",
                "P2293",
                "Q264118",
                0.6925418926673297
            ]
        ]
    }
}


Wisecube AI

© 2024