NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For example, consider the following criteria.json file. When you perform a query, the system requires it in the context of a compoundQuery element with a join operator, even if it contains only one simple query.

Clipboard
AllowLineWraptrue
Code Block
    {
       "compoundQuery": {
          "operator": "AND",
          "queries": [
             {
                "attribute": "source_file_size",
                "value": "10",
                "operator": "NUM_LESS_OR_EQUAL"
             }
          ] 
		  },
       "detailedResponse": false,
       "page": 1,
       "totalCount": true
    }

With the above criteria.json file, the following command generates a list of data files in DME, in Project_1 and subcollections, that are size 10 or smaller. The output provides a total count of results and lists only the first page (the first 100 paths).

...