Imageomics / pyMorphoSource

Python package to interact with morphosource
MIT License
2 stars 0 forks source link

Consider allowing users to determine facet values #23

Open johnbradley opened 8 months ago

johnbradley commented 8 months ago

Per @JulieWinchester the current facet values can be determined as follows:

An empty-query JSON media search (https://www.morphosource.org/catalog/media.json?locale=en&q=&search_field=all_fields&utf8=%E2%9C%93) returns all possible values for the media_type facet, as well as all other facets, in a “facet” object in the “response” object.

johnbradley commented 8 months ago

These are the current values for media_type returned from the above URL.

[
  {
    "value": "Mesh",
    "hits": 80183,
    "label": "Mesh"
  },
  {
    "value": "Volumetric Image Series",
    "hits": 48867,
    "label": "Volumetric Image Series"
  },
  {
    "value": "Image",
    "hits": 15685,
    "label": "Image"
  },
  {
    "value": "Photogrammetry Image Series",
    "hits": 845,
    "label": "Photogrammetry Image Series"
  },
  {
    "value": "Video",
    "hits": 765,
    "label": "Video"
  },
  {
    "value": "Other",
    "hits": 76,
    "label": "Other"
  },
  {
    "value": "CT Image Series",
    "hits": 6,
    "label": "CT Image Series"
  },
  {
    "value": "Sequential Section Image Series",
    "hits": 5,
    "label": "Sequential Section Image Series"
  }
]