Supporting multiple formats
Options for file format loading
format may be:
- tsv — folder like, objects are files in a subfolder
- file-like:
The final one seem to be the most promising.
Folder-like syntax
-
/
is used for both files and folders
- folders have no format attached
- objects in folders have format attached
File name |
Object name |
Is folder |
Is archive |
Notes |
format/folder/filename.format
|
object |
no |
no |
|
format/folder/filename |
object |
yes |
no |
|
format/folder.zip/filename.format
|
object |
no |
yes |
|
format/folder.zip/filename |
object |
yes |
yes |
|
format/folder/filename.format/object |
[object] |
no |
no |
|
format/folder/filename/object.format
|
[object] |
yes |
no |
|
format/folder.zip/filename.format/object |
[object] |
no |
yes |
|
format/folder.zip/filename/object.format
|
[object] |
yes |
yes |
|
Syntax with :
for subfiles
-
/
is used for folders, :
is used for files
- folders have no format attached
- objects in folders have format attached
File name |
Object name |
Is folder |
Is archive |
Notes |
format/folder/filename.format
|
object |
no |
no |
|
format/folder/filename |
object |
yes |
no |
|
format/folder.zip:filename.format
|
object |
no |
yes |
|
format/folder.zip:filename |
object |
yes |
yes |
|
format/folder/filename.format:object |
[object] |
no |
no |
|
format/folder/filename/object.format
|
[object] |
yes |
no |
|
format/folder.zip:filename.format:object |
[object] |
no |
yes |
|
format/folder.zip:filename/object.format
|
[object] |
yes |
yes |
|
Syntax with :
for subfiles and same place format
-
/
is used for folders, :
is used for files
- folders have format attached as well
- objects in folders have no format attached
File name |
Object name |
Is folder |
Is archive |
Notes |
format/folder/filename.format
|
object |
no |
no |
|
format/folder/filename.format
|
object |
yes |
no |
|
format/folder.zip:filename.format
|
object |
no |
yes |
|
format/folder.zip:filename.format
|
object |
yes |
yes |
|
format/folder/filename.format:object |
[object] |
no |
no |
|
format/folder/filename.format/object |
[object] |
yes |
no |
|
format/folder.zip:filename.format:object |
[object] |
no |
yes |
|
format/folder.zip:filename.format/object |
[object] |
yes |
yes |
|
Syntax with :
for subfiles and same place format and proper extensions
-
/
is used for folders, :
is used for files
- folders have format attached as well
- objects in folders have format attached
File name |
Object name |
Is folder |
Is archive |
Notes |
format/folder/filename.format
|
object |
no |
no |
|
format/folder/filename.format
|
object |
yes |
no |
|
format/folder.zip:filename.format
|
object |
no |
yes |
|
format/folder.zip:filename.format
|
object |
yes |
yes |
|
format/folder/filename.format:object |
[object] |
no |
no |
|
format/folder/filename.format/object.format
|
[object] |
yes |
no |
|
format/folder.zip:filename.format:object |
[object] |
no |
yes |
|
format/folder.zip:filename.format/object.format
|
[object] |
yes |
yes |
|
Syntax same place format and proper extensions
-
/
is used for both folders and files
- folders have format attached as well
- objects in folders have format attached
File name |
Object name |
Is folder |
Is archive |
Notes |
format/folder/filename.format
|
object |
no |
no |
|
format/folder/filename.format
|
object |
yes |
no |
|
format/folder.zip/filename.format
|
object |
no |
yes |
|
format/folder.zip/filename.format
|
object |
yes |
yes |
|
format/folder/filename.format/object |
[object] |
no |
no |
|
format/folder/filename.format/object.format
|
[object] |
yes |
no |
|
format/folder.zip/filename.format/object |
[object] |
no |
yes |
|
format/folder.zip/filename.format/object.format
|
[object] |
yes |
yes |
|
Syntax same place format, proper extensions, repeated filename for objects
-
/
is used for both folders and files
- folders have format attached as well
- objects in folders have format attached
File name |
Object name |
Is folder |
Is archive |
Notes |
format/folder/filename.format
|
object |
no |
no |
|
format/folder/filename.format
|
object |
yes |
no |
|
format/folder.zip/filename.format
|
object |
no |
yes |
|
format/folder.zip/filename.format
|
object |
yes |
yes |
|
format/folder/filename.format/object |
[object] |
no |
no |
|
format/folder/filename.format/filename_object.format
|
[object] |
yes |
no |
|
format/folder.zip/filename.format/object |
[object] |
no |
yes |
|
format/folder.zip/filename.format/filename_object.format
|
[object] |
yes |
yes |
|
Example: Syntax same place format, proper extensions, repeated filename for objects
-
/
is used for both folders and files
- folders have format attached as well
- objects in folders have format attached
File name |
Object name |
Is folder |
Is archive |
Notes |
npz/reactor/anue_spectra.npz
|
U235 |
no |
no |
|
tsv/reactor/anue_spectra.tsv
|
U235 |
yes |
no |
|
npz/reactor.zip/anue_spectra.npz
|
U235 |
no |
yes |
|
tsv/reactor.zip/anue_spectra.tsv
|
U235 |
yes |
yes |
|
npz/reactor/anue_spectra.npz/U235 |
[U235] |
no |
no |
|
tsv/reactor/anue_spectra.tsv/anue_spectra_U235.tsv
|
[U235] |
yes |
no |
|
npz/reactor.zip/anue_spectra.npz/U235 |
[U235] |
no |
yes |
|
tsv/reactor.zip/anue_spectra.tsv/anue_spectra_U235.tsv
|
[U235] |
yes |
yes |
|
ztsv/reactor/anue_spectra.ztsv/anue_spectra_U235.tsv
|
[U235] |
yes |
yes |
|