Output the contents of a single metadata entry.

Listiary database contains and keeps metadata for the contents of different files. This is needed for proper prefetching of data and is needed for the correct work of the wiki.

FF metadata stands for File to Files. It describes what other files each file is related to. FI metadata stands for File to item Ids. It describes what files contain each public item Id. IF metadata stands for item Id to Files. It describes what files contain each public item Id.

Command Syntax

metadata-view FLAG ID [PRESENTATION_FLAGS]
FLAG - ff, fi, if - Sets which metadata to fetch. ID - Filename or item Id to fetch metadata for.
PRESENTATION_FLAGS - common presentation flags for the SparkCli.
For more info on presentation flags, check the Presentation flags manual.

Examples

php spark.php metadata-view ff "root.filename"
View ‘File to Files’ metadata for a specific file
Tells you which files need to be fetched together.


php spark.php metadata-view fi "root.filename"
View ‘File to Items’ metadata for a specific file.
Tells you what items a file has.


php spark.php metadata-view if "root.filename.rnode"
View ‘Item to Files’ metadata for a specific public item.
Tells you which files have that item.


php spark.php metadata-view ff "root.filename" -auto -hb theme=DEFAULT
View ‘File to Files’ metadata for a specific file.
Tells you which files need to be fetched together.
With presentation flags.


php spark.php metadata-view fi "root.filename" -auto -hb theme=DEFAULT
View ‘File to Items’ metadata for a specific file.
Tells you what items a file has.
With presentation flags.


php spark.php metadata-view if "root.filename.rnode" -auto -hb theme=DEFAULT
View ‘Item to Files’ metadata for a specific public item.
Tells you which files have that item.
With presentation flags.


Back