...
- Mediaflux intro
- Import data with metadata
- Query data based on metadata searches
...
Material
Mediaflux (ref) is the underlying storage platform that pshell communicates with. It is out of scope to discuss the full capabilities of Mediaflux, but, a few relevant items will be mentioned.
...
Code Block |
---|
asset.get :id ASSET-ID
asset.get :id "path=FULL-PATH-TO-FILE" |
Code Block |
---|
asset.query :where "LOGICAL-EXPRESSION"
asset.query :where "namespace='/projects/Demo'"
asset.query :where "namespace>='/projects/Demo' and name='*.jpg'"
asset.query :where "namespace>='/projects/Data Team/sean' and (name='*.JPG' or name='*.PNG')" |
Simple actions on the results
Code Block |
---|
asset.query :where "namespace>='/projects/Demo' and name='*.jpg'" :action get-value :xpath -ename name name |
Exercises
Exercise 1 - upload a (supplied?) file and then inspect the metadata in the system.
Expand | ||
---|---|---|
| ||
put IMG_0222.PNG asset.get :id "path=/projects/Data Team/sean/IMG_0222.PNG" asset = None { version=4 id=1377760 vid=74319092 } type = image/png namespace = /projects/Data Team/sean path = /projects/Data Team/sean/IMG_0222.PNG name = IMG_0222.PNG meta = None { stime=74319092 } etc |
...