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

detector

"signature"

text

The type detector whose opinion stands behind the reading: a signature, compared against the table’s rows.

container_media_types

["application/gzip", "application/pdf", "application/x-hdf5", "application/x-ole-storage", "application/x-tar", "application/x-xz", "application/x-bzip2", "application/vnd.sqlite3", "application/x-iso9660-image", "application/x-elf", "application/x-mach-binary", "video/mp4", "video/quicktime"]

list of text

The general-purpose containers a format is written on; a signature naming one concludes no format.

unclear_media_types

["application/zip"]

list of text

The containers whose use only a laboratory can say.