Difference between revisions of "AIP pointer file"

From Archivematica
Jump to navigation Jump to search
(Wiki links)
(Ways of finding the pointer file)
Line 1: Line 1:
 
Documentation in progress
 
Documentation in progress
  
== Samples ==
+
== Access ==
 +
 
 +
Accessing pointer files inside Archivematica can be done by navigating the Dashboard to '''Archival storage''' finding a suitable AIP, e.g. at time of writing a compressed AIP, and under '''Pointer file''' clicking '''View'''. Archivematica will make a call to the Storage Service API to return the file for that AIP.
 +
 
 +
* [https://wiki.archivematica.org/Storage_Service_API#Get_pointer_file Storage Service API reference to return a Pointer File]
 +
 
 +
== Developer Notes ==
 +
 
 +
=== Location inside Storage Service ===
 +
 
 +
Pointer file are stored in internal Storage Service directories, e.g.
 +
 
 +
/var/archivematica/storage_service/d5c3/3360/7b92/4a2f/9002/32f5/a143/daaf/pointer.d5c33360-7b92-4a2f-9002-32f5a143daaf.xml
 +
 
 +
You can see where they are stored looking up the Storage Service database:
 +
 
 +
<source lang="sql">
 +
select locations_location.uuid,
 +
      locations_location.relative_path,
 +
  locations_location.description,
 +
      locations_location.purpose
 +
from locations_location
 +
inner join locations_package
 +
on locations_location.uuid =
 +
  locations_package.pointer_file_location_id
 +
</source>
 +
 
 +
== Sample Pointer Files ==
  
 
* [https://wiki.archivematica.org/Dataset_preservation#Sample_pointer.xml_file Sample XML Pointer File]
 
* [https://wiki.archivematica.org/Dataset_preservation#Sample_pointer.xml_file Sample XML Pointer File]

Revision as of 21:48, 11 March 2018

Documentation in progress

Access

Accessing pointer files inside Archivematica can be done by navigating the Dashboard to Archival storage finding a suitable AIP, e.g. at time of writing a compressed AIP, and under Pointer file clicking View. Archivematica will make a call to the Storage Service API to return the file for that AIP.

Developer Notes

Location inside Storage Service

Pointer file are stored in internal Storage Service directories, e.g.

/var/archivematica/storage_service/d5c3/3360/7b92/4a2f/9002/32f5/a143/daaf/pointer.d5c33360-7b92-4a2f-9002-32f5a143daaf.xml

You can see where they are stored looking up the Storage Service database:

select locations_location.uuid, 
       locations_location.relative_path, 
	   locations_location.description, 
       locations_location.purpose
from locations_location
inner join locations_package 
on locations_location.uuid = 
   locations_package.pointer_file_location_id

Sample Pointer Files

External Links