ResearchSoftwareInstitute / greendatatranslator

Green Team Data Translator Software Engineering and Development
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

ICEES Query #180

Open stevencox opened 4 years ago

stevencox commented 4 years ago

@xu-hao

I'm not getting results back for a population->chemical query to icees.

Not sure if the query below's still good but it seems to be getting a database connection error.

Does something need to be restarted?

FWIW, it does seem consistent.

@karafecho

$ curl -X POST -k "https://icees.renci.org/2.0.0/knowledge_graph" -H  "accept: application/json" -H  "Content-Type: application/json" -d '
{
       "query_options": {
           "table": "patient",
           "year": 2010,
           "cohort_features": {
               "AgeStudyStart": {
                   "operator": "=",
                   "value": "0-2"
               }
           },
           "feature": {
               "EstResidentialDensity": {
                   "operator": "<",
                   "value": 1
               }
           },
           "maximum_p_value":1
       },
       "machine_question": {
           "nodes": [
               {
                   "id": "n00",
                   "type": "population_of_individual_organisms"
               },
               {
                   "id": "n01",
                   "type": "chemical_substance"
               }
           ],
           "edges": [
               {
                   "id": "e00",
                   "type": "association",
                   "source_id": "n00",
                   "target_id": "n01"
               }
           ]
       }
}
' | jq "."
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3557  100  2560  100   997  14009   5456 --:--:-- --:--:-- --:--:-- 14065
{
  "return value": {
    "tool_version": "2.0.0",
    "message_code": "Error",
    "datetime": "2019-07-07/28/19 00:34:02",
    "reasoner_id": "ICEES",
    "code_description": "(psycopg2.OperationalError) FATAL:  remaining connection slots are reserved for non-replication superuser connections\n\n(Background on this error at: http://sqlalche.me/e/e3q8)"
  },
  "version": "2.0.0",
  "terms and conditions": "The Translator Integrated Clinical and Environmental Exposures Service (ICEES) is providing you with Data that have been de-identified in accordance with 45 C.F.R. §§ 164.514(a) and (b) and that UNC Health Care System (UNCHCS) is permitted to provide under 45 C.F.R. § 164.502(d)(2). Recipient agrees to notify UNCHCS via NC TraCS in the event that Recipient receives any identifiable data in error and to take such measures to return the identifiable data and/or destroy it at the direction of UNCHCS.\n\nRestrictions on Recipient’s Use of Data. Recipient further agrees to use the data exclusively for the purposes and functionalities provided by the ICEES: cohort discovery; feature-rich cohort discovery; hypothesis-driven queries; and exploratory queries. Recipient agrees to use appropriate safeguards to protect the Data from misuse and unauthorized access or disclosure. Recipient will report to UNCHCS any unauthorized access, use, or disclosure of the Data not provided for by the Service of which Recipient becomes aware. Recipient will not attempt to identify the individuals whose information is contained in any Data transferred pursuant to this Service Agreement or attempt to contact those individuals. Recipient agrees not to sell the Data to any third party for any purpose. Recipient agrees not to disclose or publish the Data in any manner that would identify the Data as originating from UNCHCS. Finally, Recipient agrees to reasonably limit the number of queries to the Service per IP address within a given time interval, in order to prevent rapid ‘attacks’ on the Service.\n\nWe kindly request that users of this service provide proper attribution for any products (e.g., manuscripts, podium presentations, software) derived from work related to ICEES. Attribution should include acknowledgement of the funder (National Institutes of Health, National Center for Advancing Translational Sciences, Biomedical Data Translator Program [awards OT3TR002020 and OT2TR002514] and Center for Translational Science Program [award UL1TR002489]), UNC Hospitals and Health Care System, and all team members who contributed to the work.\n"
}
karafecho commented 4 years ago

Rose Wang (student intern from NCSSM) and I are receiving the same error message that Steve received.

image