-
Notifications
You must be signed in to change notification settings - Fork 8
Minerva Model Search API
goodb edited this page Jul 17, 2020
·
5 revisions
Testing service for developers running at: http://noctua-dev.berkeleybop.org:6800/search/models/
Notes:
- The service responds to either GET or POST HTTP requests.
- Unless otherwise noted below, multiple values for a given parameter are allowed and are added by repeating the parameter in the request. e.g. ?gp=WB:WBGene00011979&gp=WB:WBGene00011980&gp=WB:WBGene00011981
- Parameter combinations are allowed.
- The search works over RDF databases, hence everything actually runs using IRIs. That being said, an effort is made to handle curies in input fields by converting them to IRIs. e.g. the system should respond the same to WB:WBGene00011979 as it does to http://identifiers.org/wormbase/WBGene00011979
Response example:
{
"n": 2,
"models": [
{
"id": "gomodel:568b0f9600000284",
"date": "2018-12-11",
"title": "C. elegans defense response to Gram negative bacterium in the intestine",
"state": "development",
"contributors": [
"http://orcid.org/0000-0002-1706-4196",
"http://orcid.org/0000-0002-3013-9906"
],
"groups": [
"http://www.wormbase.org"
],
"query_match": {
"http://identifiers.org/wormbase/WBGene00011979": [
"http://model.geneontology.org/568b0f9600000284/580685bd00000134"
]
}
},
{
"id": "gomodel:c360eb0b-6ac5-4418-b3ae-c0e550ac4c55",
"date": "2020-3-10",
"title": "WB:WBGene00011979",
"state": "development",
"contributors": [
"http://orcid.org/0000-0002-6659-0416"
],
"groups": [
"http://geneontology.org"
],
"query_match": {
"http://identifiers.org/wormbase/WBGene00011979": [
"http://model.geneontology.org/c360eb0b-6ac5-4418-b3ae-c0e550ac4c55/95b97753-62e2-469e-aba0-955bfd9fcf76",
"http://model.geneontology.org/c360eb0b-6ac5-4418-b3ae-c0e550ac4c55/4e34e3a4-6199-4ecb-8844-6b77acc0e23c",
"http://model.geneontology.org/c360eb0b-6ac5-4418-b3ae-c0e550ac4c55/ff782db7-3ca6-42c4-a184-a9391582d978"
]
}
}
],
"sparql": "PREFIX owl: \u003chttp://www.w3.org/2002/07/owl#\u003e \nPREFIX rdf: \u003chttp://www.w3.org/1999/02/22-rdf-syntax-ns#\u003e \n#model metadata\nPREFIX metago: \u003chttp://model.geneontology.org/\u003e\nPREFIX lego: \u003chttp://geneontology.org/lego/\u003e \n#model data\nPREFIX part_of: \u003chttp://purl.obolibrary.org/obo/BFO_0000050\u003e\nPREFIX occurs_in: \u003chttp://purl.obolibrary.org/obo/BFO_0000066\u003e\nPREFIX enabled_by: \u003chttp://purl.obolibrary.org/obo/RO_0002333\u003e\nPREFIX has_input: \u003chttp://purl.obolibrary.org/obo/RO_0002233\u003e\nPREFIX has_output: \u003chttp://purl.obolibrary.org/obo/RO_0002234\u003e\nPREFIX causally_upstream_of: \u003chttp://purl.obolibrary.org/obo/RO_0002411\u003e\nPREFIX provides_direct_input_for: \u003chttp://purl.obolibrary.org/obo/RO_0002413\u003e\nPREFIX directly_positively_regulates: \u003chttp://purl.obolibrary.org/obo/RO_0002629\u003e\n\nSELECT ?id ?date ?title ?state ?ind1 (GROUP_CONCAT(DISTINCT ?contributor;separator\u003d\";\") AS ?contributors) (GROUP_CONCAT(DISTINCT ?group;separator\u003d\";\") AS ?groups) \nWHERE {\n GRAPH ?id { \n ?id \u003chttp://purl.org/dc/elements/1.1/title\u003e ?title ;\n \u003chttp://purl.org/dc/elements/1.1/date\u003e ?date ;\n \u003chttp://purl.org/dc/elements/1.1/contributor\u003e ?contributor ; \n optional{?id \u003chttp://purl.org/pav/providedBy\u003e ?group } . \n optional{?id lego:modelstate ?state } . \n ?ind1 rdf:type \u003chttp://identifiers.org/wormbase/WBGene00011979\u003e . \n \n \n \n \n \n \n \n \n }\n } \n GROUP BY ?id ?date ?title ?state ?ind1 \n ORDER BY desc(?date) desc(?id) \nLIMIT 1000\n\n\n "
}
relevant tickets: https://github.com/geneontology/minerva/issues/230