API examples
H2020 NanoinformaTIX - eNanoMapper database

Q1.Material types query

Query
curl -X POST "https://api.ideaconsult.net/nanoreg1/select?wt=json" \
		-H "accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" \
		-d "rows=0&wt=json&fl=*&fq=type_s:substance&q=owner_name_hs:NANoREG&json.facet={field1: {type:terms,field:substanceType_hs ,limit : -1, mincount:1, missing:true }}"
Response
{"responseHeader":{"zkConnected":true,"status":0,"QTime":0,"params":{"q":"owner_name_hs:NANoREG","json.facet":"{field1: {type:terms,field:substanceType_hs ,limit : -1, mincount:1, missing:true }}","fl":"*","fq":"type_s:substance","rows":"0"
,"wt":["json","json"]}},"response":{"numFound":147,"start":0,"docs":[]},"facets":{"count":147,"field1":{"missing":{"count":0},"buckets":[{"val":"NPO_1373","count":38},{"val":"NPO_354","count":30},{"val":"CHEBI_133349","count":12},{"val":"NP
O_1486","count":11},{"val":"NPO_1892","count":8},{"val":"CHEBI_3311","count":7},{"val":"CHEBI_51050","count":7},{"val":"NPO_1542","count":7},{"val":"ENM_9000006","count":5},{"val":"CHEBI_59999","count":3},{"val":"CHEBI_133326","count":2},{"
val":"CHEBI_18246","count":2},{"val":"CHEBI_51135","count":2},{"val":"NPO_1550","count":2},{"val":"CHEBI:18246","count":1},{"val":"CHEBI_133333","count":1},{"val":"CHEBI_133337","count":1},{"val":"CHEBI_133340","count":1},{"val":"CHEBI_3341
8","count":1},{"val":"CHEBI_36973","count":1},{"val":"ENM_9000007","count":1},{"val":"NPO_157","count":1},{"val":"NPO_401","count":1},{"val":"NPO_606","count":1},{"val":"NPO_943","count":1}]}}}
               
                    

Q2.Materials query

Query
curl -X POST "https://api.ideaconsult.net/nanoreg1/select?wt=json" -H "accept: application/json" -H 'Content-Type: application/x-www-form-urlencoded' -d "rows=0&wt=json&fl=*&fq=type_s:study&q=*:*&json.facet={field3: {type:terms,field:topcategory_s ,limit : -1, mincount:1, missing:true , facet:{field2: {type:terms,field:endpointcategory_s ,limit : -1, mincount:1, missing:true , facet:{field1: {type:terms,field:owner_name_s ,limit: -1, mincount:1, missing:true }}}}}}""

Q3.Endpoints query

Query
curl -X POST "https://api.ideaconsult.net/nanoreg1/select?wt=json" -H "accept: application/json" -H 'Content-Type: application/x-www-form-urlencoded' -d "rows=0&wt=json&fl=*&fq=type_s:study&q=*:*&json.facet={field2: {type:terms,field:topcategory_s ,limit : -1, mincount:1, missing:true , facet:{field1: {type:terms,field:endpointcategory_s ,limit : -1, mincount:1, missing:true }}}}"