An open-source Records in Contexts (RiC-O) service. Laravel 12 backend with Apache Jena Fuseki as the RDF store.
This is the reference implementation of the OpenRiC specification, running at ric.theahg.co.za, maintained by Dr Johan Pieterse, The Archive and Heritage Digital Commons Group. It reads the heratio database on the same MySQL server as Heratio, the group's GLAM platform, which still writes RiC through its own routes on that database (known issue K-9). The OpenRiC Workspace is a separate application that implements the specification on its own.
/
├── app/ Laravel application code
├── bin/release Release script: bumps version, commits, tags
├── config/ Laravel config
├── database/ Migrations, seeders
├── docs/
│ ├── drift-log.md Cherry-pick log between OpenRiC and Heratio
│ ├── outreach/ Email drafts, contribution proposals
│ └── plans/ Implementation plans (read before executing)
├── packages/
│ ├── ahg-core/ Vendored from Heratio: shared base services
│ ├── ahg-api/ Vendored from Heratio: REST and auth plumbing
│ ├── ahg-ric/ Vendored from Heratio: RiC entity management
│ └── ahg-ric-model/ The RiC-CM reference browser and ontology services
│ (mirrored into vendor/ahg/, which is what runs)
├── public/
├── resources/ Views, JS, CSS
├── routes/ HTTP + console routes
├── storage/
├── tests/
├── CHANGELOG.md
├── composer.json
├── version.json Source of truth for current version
└── README.md
The packages/ dir holds our own copies of Heratio's shared packages. Do not symlink them back to Heratio: that re-couples the two trees. Drift is tracked per-bug-fix in docs/drift-log.md.
Never git push without using bin/release first. It enforces the version invariant.
./bin/release patch "Fix OntologyService SPARQL escape bug"
./bin/release minor "Phase 1: RiC-O load and OntologyService" --issue 7
./bin/release major "Break: rename route prefix to /reference/ric-cm"What it does:
- Requires a clean working tree and
mainbranch. - Bumps
version.json(semver). - Prepends a dated entry to
CHANGELOG.md. - Commits those two files with message
vX.Y.Z: <message>. - Creates an annotated git tag
vX.Y.Z. - Does NOT push. Prints the push commands for you to run.
To undo locally (before pushing):
git tag -d vX.Y.Z
git reset --hard HEAD~1See .env.example for the full list. Minimum required beyond Laravel defaults:
FUSEKI_URL: the Jena Fuseki endpoint (defaulthttp://localhost:3030).FUSEKI_DATASET_DATA=openric: instance data.FUSEKI_DATASET_MODEL=openric-model: RiC-O OWL ontology (populated in Phase 1 of the reference-browser plan).FUSEKI_USER/FUSEKI_PASSWORD: admin credentials for ontology loads; public SPARQL reads are anonymous.
Read docs/plans/ for the current implementation plan before writing code. Follow the architectural decisions captured there; do not introduce new frontend stacks or break the declared package interface without the decision being explicitly reopened.
AGPL-3.0-or-later, matching the rest of the OpenRiC software. The specification itself is CC BY 4.0.