Orpheus API Reference
Natural language query documents
POST Natural language query documents
https://api.wisecube.ai/orpheus/graphql
This API allows querying the knowledge graph using SPARQL. Refer to the examples on how to query the graph.
BODY graphql
QUERY
query questionAnswer($query: String) {
summaryInsights(engineID:"orpheus", searchInput: {
query: $query, type: [DOCUMENTS]})
{
data {
__typename
... on QAInsight {
question
answers {
answer
document {
id
title
abs
source
index_name
__typename
}
took
context
statistics
probability
__typename
}
__typename
}
}
__typename
}
}
GRAPHQL VARIABLES
{
"query" : "what is cancer"
}
Example Request:
POST /orpheus/graphql HTTP/1.1
Host: api.wisecube.ai
Content-Type: application/json
Content-Length: 1324
{"query":"query questionAnswer($query: String) {\n summaryInsights(engineID:\"orpheus\", searchInput: {\n query: $query, type: [DOCUMENTS]}) \n {\n data {\n __typename\n ... on QAInsight {\n question\n answers {\n answer\n document {\n id\n title\n abs\n source\n index_name\n __typename\n }\n took\n context\n statistics\n probability\n __typename\n }\n __typename\n }\n }\n __typename\n }\n}","variables":{"query":"what is cancer"}}
Example Response
{
"data": {
"summaryInsights": [
{
"data": {
"__typename": "QAInsight",
"question": "what is cancer",
"answers": [
{
"answer": null,
"document": [
{
"id": "21188657",
"title": "Relationship of detection rate of PET cancer screening examinees and risk factors: analysis of background of examinees.",
"abs": "OBJECTIVE PET cancer screening is performed widely in Japan as opportunistic screening but no study has focused on the correlation with various cancer risk factors and the seeking bias of examinees and cancer detection rate Analyzing our large series of PET cancer screening data correlations with cancer detection rates according to general cancer risk factors and PET detection survey were reviewed and the selection bias of the medical examinees was determined METHODS 19189 examinees who underwent PET cancer screening were enrolled Using logistic regression analysis we analyzed correlations between smoking history drinking history cancer family history and detection rates of thyroid cancer breast cancer colorectal cancer lung cancer which are the main malignancies detected in PET cancer screening In addition we evaluated seeking bias of examinees analyzing correlations between the presence of cancer risk factors and prior screening checkups at other institutions to our PET cancer screening using a matched case control study RESULTS Cancer detection rates by FDG PET were 1 17 224 19189 being much higher than those of standard cancer mass screenings In males statistically significant correlations were seen between lung cancer and smoking and between prostate cancer and a family history of prostate cancer but not between the detection rates of three other types of cancer thyroid cancer lung cancer colorectal cancer and other cancer risk factors In females detection rates of four types of cancer thyroid cancer lung cancer colorectal cancer breast cancer were significantly higher in the examinees without cancer risks and subgroup analysis according to types of cancer did not indicate significant correlations either The matched case control study evaluating seeking bias indicated that a significant proportion of the examinees with cancer risks had undergone prior cancer screening at other institutions CONCLUSIONS Our study indicated that there was significant seeking bias for prior screening of examinees with this accounting for the fact that this study did not find a significant correlation between cancer risks and cancer detection rates The results of our study indicated that PET cancer screening can provide high cancer detection rates ",
"source": "https://pubmed.ncbi.nlm.nih.gov/21188657",
"index_name": "PubMed",
"__typename": "RelatedDocument"
},
{
"id": "8474226",
"title": "[Prevalence, rate of correct clinical diagnosis and mortality of cancer in 4,894 elderly autopsy cases].",
"abs": "The prevalence rate of correct clinical diagnosis and mortality of cancer were analyzed in 4 894 consecutive autopsies at the Tokyo Metropolitan Geriatric Hospital from 1972 to 1990 average age and standard deviation of patients was 78 1 9 1 years Cancer was found in 45 5 of patients of 60 years and over and in 49 1 in men and 41 9 in women p 0 001 Cancer prevalence decreased with advance in age 50 0 in the sixties 47 9 in the seventies 43 2 in the eighties and 39 3 in the nineties and over Multiple cancer was found in approximately 12 of patients of 70 years and over The top three cancer incidences were gastric cancer 15 0 lung cancer 10 7 and colon cancer 5 9 in both genders In men prostate cancer was next common followed in orderly hepatic cancer esophageal cancer gall bladder bile duct cancer pancreas cancer renal cancer and urinary bladder cancer In women the following order of frequency was gall bladder bile duct cancer uterus cancer pancreas cancer hepatic cancer breast cancer thyroid cancer esophageal cancer renal cancer and urinary bladder cancer The prevalence of gastric cancer lung cancer hepatic cancer and esophageal cancer was significantly higher in men while that of gall bladder bile duct cancer was higher in women The age related tendencies varied among cancers of different organs Gastric cancer increased up to the sixties in men and up to the seventies in women and leveled off after those ages Lung cancer revealed peak prevalence in the sixties and seventies and decreased after the age of eighty ABSTRACT TRUNCATED AT 250 WORDS ",
"source": "https://pubmed.ncbi.nlm.nih.gov/8474226",
"index_name": "PubMed",
"__typename": "RelatedDocument"
},
{
"id": "18334108",
"title": "[Cancer incidence and mortality in Guangzhou City from 2000 to 2002].",
"abs": "BACKGROUND OBJECTIVE Population based cancer registration has never been carried out before in Guangzhou This study was to analyze the cancer incidence and mortality in Guangzhou and to provide references for prevention and treatment of cancer METHODS Data of cancer incidence and mortality during 2000 2002 were collected from Guangzhou Population based Cancer Registry Cancer incidence and mortality were calculated and analyzed RESULTS The crude cancer incidence during 2000 2002 in Guangzhou was 227 7 per 100 000 257 0 per 100 000 in males and 196 5 per 100 000 in females the crude cancer mortality was 147 9 per 100 000 183 6 per 100 000 in males and 109 7 per 100 000 in females The incidence of lung cancer ranked first followed by those of liver cancer nasopharyngeal cancer gastric cancer and colon cancer in males Breast cancer was the leading cancer in females followed by those of lung cancer liver cancer colon cancer and nasopharyngeal cancer The cancer incidence and mortality increased with age CONCLUSION Cancer incidence is high in Guangzhou and the research for prevention and treatment of cancer should be enhanced ",
"source": "https://pubmed.ncbi.nlm.nih.gov/18334108",
"index_name": "PubMed",
"__typename": "RelatedDocument"
},
{...},
{...}
],
"took": 0.7922096252441406,
"context": null,
"statistics": [
{
"index_name": "PubMed",
"total_hits": 10000
}
],
"probability": null,
"__typename": "Answer"
}
]
},
"__typename": "Insight"
}
]
}
}