Skip to content
openricPublic

About

Standalone OpenRiC API service: Laravel 12, extracted from Heratio's ahg-ric package; the reference implementation of the OpenRiC specification

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

173 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenRiC

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.

Repository layout

/
├── 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.

Release flow

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:

  1. Requires a clean working tree and main branch.
  2. Bumps version.json (semver).
  3. Prepends a dated entry to CHANGELOG.md.
  4. Commits those two files with message vX.Y.Z: <message>.
  5. Creates an annotated git tag vX.Y.Z.
  6. 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~1

Environment

See .env.example for the full list. Minimum required beyond Laravel defaults:

  • FUSEKI_URL: the Jena Fuseki endpoint (default http://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.

Contributing

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.

License

AGPL-3.0-or-later, matching the rest of the OpenRiC software. The specification itself is CC BY 4.0.

About

Standalone OpenRiC API service: Laravel 12, extracted from Heratio's ahg-ric package; the reference implementation of the OpenRiC specification

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages