Format from content
Ingence takes a file to be in the format its contents begin with, whatever its extension says. A container that many formats are built on, such as HDF5 or ZIP, does not count.
format_from_content version 1+d1
Kind of rule: What files are (
classifies). Says what a file or a folder is, by placing it in a class.What it concludes: a class
Reasoning:
defeasible. A conclusion is usually right, and is retracted when a rule it names concludes against it.What it reads: one file at a time
Is it available in this version?
Yes. The engine runs it.
What would defeat it
The engine withdraws what this rule concludes about something when any of these rules concludes about the same thing:
format_built_on_a_container: Ingence flags a file whose contents are a container, such as HDF5, as built on that container. Ingence asks about a ZIP that has an archive’s extension, because only the lab can say what it holds.installed_software_in_folder: Ingence recognizes a folder as an installed program, such as a copy of Fiji or a Python environment. It knows it by the parts it holds: a name ending in .app, program-style subfolders or mostly program files. Ingence still lists and reads its files, and rules about experiments leave them alone.
It stands aside beneath every folder one of these rules raises:
Parameters
Parameter |
Shipped value |
May be |
What it does |
|---|---|---|---|
|
|
text |
The type detector whose opinion stands behind the reading: a signature, compared against the table’s rows. |
|
|
list of text |
The general-purpose containers a format is written on; a signature naming one concludes no format. |
|
|
list of text |
The containers whose use only a laboratory can say. |