Package: fscontext 0.2.0

Daniel Antal

fscontext: File System Contextualisation and Record Set Reconstruction

Provides a provenance-aware framework for contextual reconstruction from file systems and related digital resource collections. The package creates reproducible snapshots of file-level metadata, paths, repository context, and optional content signatures. It supports contextual grouping, structural abstraction, temporal analysis, semantic stabilization, duplicate and reuse detection, and lightweight workflow reconstruction from file system observations. The framework deliberately separates observational evidence, contextual abstraction, semantic interpretation, and analytical reconstruction, enabling reproducible workflows that can be inspected by reviewers. It is designed to support future alignment with archival and contextual knowledge representation models, including the World Wide Web Consortium Provenance Ontology (PROV-O): Lebo et al. (2013) <https://www.w3.org/TR/prov-o/> and Records in Contexts developed by the International Council on Archives Expert Group on Archival Description (EGAD) <https://www.ica.org/ica-network/expert-groups/egad/records-in-contexts-ric/>.

Authors:Daniel Antal [aut, cre]

fscontext_0.2.0.tar.gz
fscontext_0.2.0.zip(r-4.7)fscontext_0.2.0.zip(r-4.6)fscontext_0.2.0.zip(r-4.5)
fscontext_0.2.0.tgz(r-4.6-any)fscontext_0.2.0.tgz(r-4.5-any)
fscontext_0.2.0.tar.gz(r-4.7-any)fscontext_0.2.0.tar.gz(r-4.6-any)
fscontext_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
fscontext/json (API)

# Install 'fscontext' in R:
install.packages('fscontext', repos = c('https://dataobservatory-eu.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/dataobservatory-eu/fscontext/issues

Pkgdown/docs site:https://fscontext.dataobservatory.eu

Datasets:

On CRAN:

Conda:

filesystemrecordsric

4.90 score 36 exports 39 dependencies

Last updated from:a4d9846718. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK169
source / vignettesOK190
linux-release-x86_64OK168
macos-release-arm64OK245
macos-oldrel-arm64OK209
windows-develOK170
windows-releaseOK95
windows-oldrelOK104
wasm-releaseOK167

Exports:add_snapshot_contextas_characteras_value_keyclassify_operational_file_typecompile_rulebookconstruct_structural_pathscontext_rootscoverage_rootscoverage_rules_pathderive_record_setderive_structural_groupsdetect_generated_artifactsexclude_operational_noiseinvert_contextual_groupinginvert_value_keyis.prelabelledobserve_universeobserve_waczprelabelquick_signaturequick_signature_textread_snapshotrecordset_dfrefinerefine_by_rulebooksave_scanscan_storagesnapshot_storagesnapshot_to_reconstruction_contextsnapshot_to_recordset_dfsubset_snapshotsummarise_duplicatessummarise_observed_activitysummarize_duplicatessummarize_observed_activitywacz_to_recordset_df

Dependencies:assertthatbitbit64clicliprcpp11crayondatasetdigestdplyrforcatsfsgenericsgluehavenhmsISOcodesjsonlitelabelledlifecyclemagrittrpillarpkgconfigprettyunitsprogresspurrrR6readrrlangstringistringrtibbletidyrtidyselecttzdbutf8vctrsvroomwithr

From Structural Aggregations to Record Sets
Motivation | Example 1: An R package | Example 2: A ZIP archive | Example 3: A WACZ package | Structural Aggregations and Informative Objects | Structural Aggregations and RiC | From Folder Hierarchies to Record Sets | References

Last update: 2026-06-29
Started: 2026-06-29

Introduction to fscontext
What is fscontext? | Context before semantics | The fscontext workflow | Creating a snapshot | Working with example data | Adding contextual information | Creating Record Sets | Repeated observation | Semantic stabilisation | Relationship to Records in Contexts | Next steps

Last update: 2026-06-29
Started: 2026-06-13

Working with Record Sets
recordset_df

Last update: 2026-06-29
Started: 2026-06-29

Handling Semantic Ambiguity with prelabelled Vectors
Introduction | A small ambiguous dataset | Creating provisional semantic assertions | Inspecting the prelabelled vector | Semantic operationalisation | A more ambiguous dataset | Incremental semantic stabilization | Semantic workspaces | From provisional semantics to formally defined semantics

Last update: 2026-06-13
Started: 2026-06-13

Readme and manuals

Help Manual

Help pageTopics
Add contextual identifiers to snapshot observationsadd_snapshot_context
Semantic character coercionas_character
Standardize contextual semantic mappingsas_value_key
Classify operational file typesclassify_operational_file_type
Compile a semantic refinement rulebookcompile_rulebook
Construct recursive contextual structural pathsconstruct_structural_paths
Extract normalized contextual rootscontext_roots
Evaluate contextual root coveragecoverage_roots
Evaluate contextual rule coverage for structural pathscoverage_rules_path
Derive contextual Record Set membershipderive_record_set
Derive structural aggregation metadata from relative pathsderive_structural_groups
Detect operationally generated or low-priority artifactsdetect_generated_artifacts
Exclude operational noise from analytical workflowsexclude_operational_noise
Example filesystem snapshot 01fscontextdemo_snapshot_01
Second example filesystem snapshotfscontextdemo_snapshot_02
Invert contextual grouping mappingsinvert_contextual_grouping
Invert contextual semantic mappingsinvert_value_key
Test if a vector is prelabelledis.prelabelled
Construct a longitudinal observational universeobserve_universe
Observe a WACZ web archiveobserve_wacz
Create a prelabelled vectorprelabel
Compute a fast operational signature for a filequick_signature
Compute a fast operational signature for textquick_signature_text
Read and combine observational filesystem snapshotsread_snapshot
Create a semantically annotated Record Setrecordset_df
Refine semantic assertions through contextual matchingrefine
Iteratively refine semantic assertions using a rulebookrefine_by_rulebook
Persist an observational snapshot to disksave_scan
Observe a filesystem and construct a reproducible snapshotscan_storage
Create and persist an observational snapshot of a filesystemsnapshot_storage
Reconstruct a contextual observational Record Set from filesystem snapshotssnapshot_to_reconstruction_context
Create a contextual Record Set datasetsnapshot_to_recordset_df
Subset observational filesystem Instantiationssubset_snapshot
Summarise repeated and divergent filesystem observationssummarise_duplicates summarize_duplicates
Summarise observed activity from filesystem observationssummarise_observed_activity summarize_observed_activity
Create a Record Set dataset from a WACZ observationwacz_to_recordset_df