cascade:Snapshot snapshot
https://ns.cascadeprotocol.org/cascade#Snapshot
The set of files a writer holds as one of its acts left it, as a git commit names its tree and its parents: a node in its act's file, prov:wasGeneratedBy the act, named by cascade:SnapshotNamingRule. The set is every file named as N9 names a file in a folder runtime/pod-layout.ttl gives by solid:instanceContainer, but the views' folder, the syncs' folder, the one it gives cascade:SyncFromAnotherWriter, and the requirements' folder, the one it gives cascade:holdsRequirementsForReadingAPod: a file the layout gives by solid:instance changes in place, and is outside it, and so is any other file in those folders. A file is in the set by its path, whether a host keeps it at that path or in an archive; an archive, in the folder the layout gives cascade:holdsFilesInArchivesOfMediaType, is not.
- Type
owl:Class- Domain of
cascade:fileAddedToSet,cascade:firstParentSnapshot,cascade:mergedParentSnapshot,cascade:setHash- Range of
cascade:firstParentSnapshot,cascade:mergedParentSnapshot
cascade:SnapshotShape checks each cascade:Snapshot.
| Property | Value type | How many | When it is not met |
|---|---|---|---|
prov:wasGeneratedBy | sh:IRI | exactly 1 | A snapshot is generated by one act, named by its IRI. |
cascade:firstParentSnapshot | sh:IRI | at most 1 | A snapshot has at most one first parent, the writer's previous snapshot. |
cascade:mergedParentSnapshot | sh:IRI | A snapshot's merged parents are snapshots, named by their IRIs. | |
cascade:setHash | xsd:string pattern "^[0-9a-f]{64}$" | exactly 1 | A snapshot carries one set hash, 64 lower-case hexadecimal digits. |
cascade:fileAddedToSet | xsd:string | at least 1 | A snapshot names each file of the set its act wrote by its path relative to the pod, its act's own file among them. |
Where it comes from and what uses it
- Subclass of
prov:Entity- Queries
- Rules
- N14. Every act leaves one snapshot, chained to the writer's previous one runtime/naming.feature
- O4. A pod that requires what the runtime cannot do is refused at the open, naming the requirement runtime/opening.feature
- S3. A sync's snapshot merges every head the writer holds runtime/sync.feature
- S4. A writer given only syncs writes nothing, and takes the one head it then holds as its last snapshot runtime/sync.feature
- S5. Two writers hold one set when the set hashes of what each holds agree, whatever order the files arrived in runtime/sync.feature