Skip to content

Pharmacology API calls fail - estimated execution time -762693632 #15

Description

@stain

In the Docker install, the target/pharmacology/pages API calls like http://heater.cs.man.ac.uk:3002/target/pharmacology/pages?uri=http%3A%2F%2Fwww.uniprot.org%2Funiprot%2FP30542 fail with:

Internal Server Error

Sorry, there was an internal error in serving this request, possibly due to an upstream server, or a configuration error.
The SPARQL endpoint used by this URI configuration did not return a successful response.

logs/puelia.log says the SPARQL query is:

PREFIX chembl: <http://rdf.ebi.ac.uk/terms/chembl#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX bibo: <http://purl.org/ontology/bibo/>
PREFIX cheminf: <http://semanticscience.org/resource/>
PREFIX obo: <http://purl.obolibrary.org/obo/>
PREFIX qudt: <http://qudt.org/1.1/schema/qudt#>
PREFIX chembl: <http://rdf.ebi.ac.uk/terms/chembl#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX bibo: <http://purl.org/ontology/bibo/>
PREFIX cheminf: <http://semanticscience.org/resource/>
PREFIX obo: <http://purl.obolibrary.org/obo/>
PREFIX qudt: <http://qudt.org/1.1/schema/qudt#>
SELECT DISTINCT ?item ?chembl_compound WHERE {  VALUES ?chembl_target_uri { <http://rdf.ebi.ac.uk/resource/chembl/target/CHEMBL2096679> <http://rdf.ebi.ac.uk/resource/chembl/target/CHEMBL2111329> <http://rdf.ebi.ac.uk/resource/chembl/target/CHEMBL226> <http://rdf.ebi.ac.uk/resource/chembl/target/CHEMBL2096982> <http://rdf.ebi.ac.uk/resource/chembl/target/CHEMBL2095195> <http://rdf.ebi.ac.uk/resource/chembl/target/CHEMBL2096908>  } GRAPH <http://www.ebi.ac.uk/chembl> {
 ?assay_uri chembl:hasTarget ?chembl_target_uri .
 ?assay_uri chembl:hasActivity ?item .
 ?item chembl:hasMolecule ?chembl_compound .
 ?chembl_target_uri a ?target_type .
 OPTIONAL { ?chembl_target_uri dcterms:title ?target_name_chembl }
 OPTIONAL { ?chembl_target_uri chembl:organismName ?target_organism }
 OPTIONAL { ?chembl_target_uri chembl:hasTargetComponent ?protein .
 GRAPH <http://www.conceptwiki.org> {
 ?cw_target skos:exactMatch ?protein ;
 skos:prefLabel ?protein_name
 }
 }
 OPTIONAL { ?assay_uri chembl:organismName ?assay_organism }
 OPTIONAL { ?assay_uri dcterms:description ?assay_description }
 OPTIONAL { ?assay_uri chembl:assayTestType ?assay_type }
 OPTIONAL { ?item chembl:publishedType ?published_type }
 OPTIONAL { ?item chembl:publishedRelation ?published_relation }
 OPTIONAL { ?item chembl:publishedValue ?published_value }
 OPTIONAL { ?item chembl:publishedUnits ?published_unit }
 OPTIONAL { ?item chembl:standardType ?activity_type }
 OPTIONAL { ?item chembl:standardRelation ?activity_relation }
 OPTIONAL { ?item chembl:standardValue ?standard_value .
 BIND (xsd:decimal(?standard_value) as ?activity_value)}
 OPTIONAL { ?item chembl:standardUnits ?activity_unit }
 OPTIONAL { ?item chembl:hasQUDT ?qudt_uri }
 OPTIONAL { ?item chembl:pChembl ?pChembl }
 OPTIONAL { ?item chembl:activityComment ?act_comment }
 OPTIONAL { ?item chembl:hasDocument ?doc_uri .
 OPTIONAL { ?doc_uri owl:sameAs ?doi }
 OPTIONAL { ?doc_uri bibo:pmid ?pmid }
 } 
}
OPTIONAL { GRAPH <http://ops.rsc.org> {
 ?ocrs_compound skos:exactMatch ?chembl_compound .
 ?ocrs_compound cheminf:CHEMINF_000396 ?inchi;
 cheminf:CHEMINF_000399 ?inchi_key;
 cheminf:CHEMINF_000018 ?smiles .
 OPTIONAL { [] obo:IAO_0000136 ?ocrs_compound ;
 a cheminf:CHEMINF_000484 ;
 qudt:numericValue ?molweight . }
 OPTIONAL { [] obo:IAO_0000136 ?ocrs_compound ;
 a cheminf:CHEMINF_000367;
 qudt:numericValue ?num_ro5_violations . }
 OPTIONAL { GRAPH <http://www.conceptwiki.org> {
 ?cw_compound skos:exactMatch ?ocrs_compound ;
 skos:prefLabel ?compound_name .
 } } 
} } } ORDER BY ?item  LIMIT 10 OFFSET 0

Trying this at the Virtuoso instance at http://heater.cs.man.ac.uk:3003/sparql I get the error:

Virtuoso 42000 Error The estimated execution time -762693632 (sec) exceeds the limit of 400 (sec).

I am not sure what a negative execution time means.. perhaps @ghard have any ideas?

(This is Virtuoso version 07.20.3212 - I'm updating the image to see if 7.2.1 does anything different)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions