ocrd_models.ocrd_file module¶
API to mets:file
-
class
ocrd_models.ocrd_file.
OcrdFile
(el, mimetype=None, pageId=None, loctype='OTHER', local_filename=None, mets=None, url=None, ID=None)[source]¶ Bases:
object
Represents a single mets:file/mets:FLocat (METS file entry).
-
property
basename
¶ Get the
os.path.basename
of the local file, if any.
-
property
basename_without_extension
¶ Get the
os.path.basename
of the local file, if any, with extension removed.
-
property
extension
¶
-
property
otherloctype
¶
-
property
pageId
¶ file` (physical page manifestation).
-
property