@@ -49,12 +49,12 @@ documents. They answer: "Which document contained this one?" All fields are defi
4949
5050=== Nesting Identifiers
5151
52- `TikaCoreProperties.EMBEDDED_ID` (`X-TIKA:embedded_id `)::
52+ `TikaCoreProperties.EMBEDDED_ID` (`tk:embedded-id `)::
5353A 1-indexed integer assigned by Tika to each embedded document during parsing. IDs are
5454assigned in the order documents are encountered by the `RecursiveParserWrapper`. This ID
5555uniquely identifies each embedded document within a single parse operation.
5656
57- `TikaCoreProperties.EMBEDDED_ID_PATH` (`X-TIKA:embedded_id_path `)::
57+ `TikaCoreProperties.EMBEDDED_ID_PATH` (`tk:embedded-id-path `)::
5858A path showing the containment hierarchy using `EMBEDDED_ID` values. For example, `/1/3`
5959indicates that the file with `EMBEDDED_ID=3` was contained within the file with
6060`EMBEDDED_ID=1`. This is the most reliable field for tracking containment relationships.
@@ -64,22 +64,22 @@ folder structures or original paths within the containers themselves.
6464
6565=== Synthetic Paths
6666
67- `TikaCoreProperties.EMBEDDED_RESOURCE_PATH` (`X-TIKA:embedded_resource_path `)::
67+ `TikaCoreProperties.EMBEDDED_RESOURCE_PATH` (`tk:embedded-resource-path `)::
6868A synthetic path built by concatenating file names (from `RESOURCE_NAME_KEY`) at each
6969nesting level. This provides a human-readable path through the containment hierarchy.
7070+
7171WARNING: Do not use this field for creating directory structures to write out attachments.
7272There may be path collisions, illegal characters, or zip slip vulnerabilities. Use
7373`EMBEDDED_ID_PATH` for reliable containment tracking.
7474
75- `TikaCoreProperties.FINAL_EMBEDDED_RESOURCE_PATH` (`X-TIKA:final_embedded_resource_path `)::
75+ `TikaCoreProperties.FINAL_EMBEDDED_RESOURCE_PATH` (`tk:final-embedded-resource-path `)::
7676Similar to `EMBEDDED_RESOURCE_PATH`, but calculated at the end of the full parse. For some
7777parsers, an embedded file's name isn't known until after its child files have been parsed.
7878This field may have fewer "unknown" file names than `EMBEDDED_RESOURCE_PATH`.
7979
8080=== Resource Naming
8181
82- `TikaCoreProperties.RESOURCE_NAME_KEY` (`X-TIKA:resourceName `)::
82+ `TikaCoreProperties.RESOURCE_NAME_KEY` (`tk:resource-name `)::
8383The file name (not path) of the resource. Tika makes a best effort to determine a meaningful
8484name from the container's metadata. When unavailable, Tika falls back to synthetic names
8585such as `embedded-1.jpeg`.
@@ -95,7 +95,7 @@ the nesting structure. All fields below are defined in `TikaCoreProperties`.
9595
9696=== Internal Paths
9797
98- `TikaCoreProperties.INTERNAL_PATH` (`X-TIKA:internalPath `)::
98+ `TikaCoreProperties.INTERNAL_PATH` (`tk:internal-path `)::
9999The path (including file name) as literally stored within the container. This is what the
100100container knows about where the file lives in its internal structure:
101101+
@@ -108,7 +108,7 @@ This differs fundamentally from `EMBEDDED_RESOURCE_PATH`:
108108* `INTERNAL_PATH` is what the _container stores_ about the file's location within itself
109109* `EMBEDDED_RESOURCE_PATH` is what _Tika synthesizes_ from the nesting structure
110110
111- `TikaCoreProperties.ORIGINAL_RESOURCE_NAME` (`X-TIKA:origResourceName `)::
111+ `TikaCoreProperties.ORIGINAL_RESOURCE_NAME` (`tk:orig-resource-name `)::
112112For some file formats, the file path where the document was last saved on the creator's
113113system. For example, an `.xlsx` file named `budget.xlsx` may include a metadata property
114114storing where it was last saved: `C:\Users\Alice\budget.xlsx`. This is not specific to
@@ -118,11 +118,11 @@ embedded files - it's a property that certain file formats preserve about themse
118118
119119Microsoft Office formats use additional identifiers for embedded objects.
120120
121- `TikaCoreProperties.EMBEDDED_RELATIONSHIP_ID` (`X-TIKA:embeddedRelationshipId `)::
121+ `TikaCoreProperties.EMBEDDED_RELATIONSHIP_ID` (`tk:embedded-relationship-id `)::
122122A Microsoft-specific identifier used internally to reference embedded objects within
123123Office documents. This is the relationship ID from the Office Open XML or OLE structure.
124124
125- `Office.EMBEDDED_STORAGE_CLASS_ID` (`msoffice:embeddedStorageClassId `)::
125+ `Office.EMBEDDED_STORAGE_CLASS_ID` (`msoffice:embedded-storage-class-id `)::
126126A UUID that identifies the class of embedded object in Microsoft formats. While not
127127exactly a MIME type, it provides similar information about what type of object is
128128embedded. Defined in the `Office` metadata class.
@@ -134,39 +134,39 @@ embedded. Defined in the `Office` metadata class.
134134|Property |Metadata Key |Source
135135
136136|`EMBEDDED_ID`
137- |`X-TIKA:embedded_id `
137+ |`tk:embedded-id `
138138|Containment
139139
140140|`EMBEDDED_ID_PATH`
141- |`X-TIKA:embedded_id_path `
141+ |`tk:embedded-id-path `
142142|Containment
143143
144144|`EMBEDDED_RESOURCE_PATH`
145- |`X-TIKA:embedded_resource_path `
145+ |`tk:embedded-resource-path `
146146|Containment
147147
148148|`FINAL_EMBEDDED_RESOURCE_PATH`
149- |`X-TIKA:final_embedded_resource_path `
149+ |`tk:final-embedded-resource-path `
150150|Containment
151151
152152|`RESOURCE_NAME_KEY`
153- |`X-TIKA:resourceName `
153+ |`tk:resource-name `
154154|Containment
155155
156156|`INTERNAL_PATH`
157- |`X-TIKA:internalPath `
157+ |`tk:internal-path `
158158|Container
159159
160160|`ORIGINAL_RESOURCE_NAME`
161- |`X-TIKA:origResourceName `
161+ |`tk:orig-resource-name `
162162|Container
163163
164164|`EMBEDDED_RELATIONSHIP_ID`
165- |`X-TIKA:embeddedRelationshipId `
165+ |`tk:embedded-relationship-id `
166166|Container (MS)
167167
168168|`Office.EMBEDDED_STORAGE_CLASS_ID`
169- |`msoffice:embeddedStorageClassId `
169+ |`msoffice:embedded-storage-class-id `
170170|Container (MS)
171171|===
172172
0 commit comments