PHPackages                             acdh-oeaw/arche-ref-sources - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. acdh-oeaw/arche-ref-sources

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

acdh-oeaw/arche-ref-sources
===========================

Library for fetching data from external reference sources

1.1.3(2mo ago)02.5k[2 issues](https://github.com/acdh-oeaw/arche-ref-sources/issues)MITPHPPHP ^8.1CI passing

Since Dec 13Pushed 2mo ago4 watchersCompare

[ Source](https://github.com/acdh-oeaw/arche-ref-sources)[ Packagist](https://packagist.org/packages/acdh-oeaw/arche-ref-sources)[ Docs](https://github.com/acdh-oeaw/arche-ref-sources)[ RSS](/packages/acdh-oeaw-arche-ref-sources/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (18)Versions (21)Used By (0)

arche-ref-sources
=================

[](#arche-ref-sources)

[![Build status](https://github.com/acdh-oeaw/arche-ref-sources/actions/workflows/test.yaml/badge.svg)](https://github.com/acdh-oeaw/arche-ref-sources/actions/workflows/test.yaml)[![Coverage Status](https://camo.githubusercontent.com/57121f1de9bed62a80d02ebcf68895c3b1fd14c4dd792eb6c6af2a094696bfd4/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f616364682d6f6561772f61726368652d7265662d736f75726365732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/acdh-oeaw/arche-ref-sources?branch=master)

A script for enhancing an ARCHE Suite repository data with information gathered from external reference sources (Geonames, GND, wikidata, etc.).

It works by resolving existing identifiers that are external reference source URIs, fetching information from there and updating a corresponding ARCHE Suite repository resource.

Installation
============

[](#installation)

- run `composer require acdh-oeaw/arche-ref-sources`

or

- clone this repo and enter its directory
- run `composer update`

Configuration
=============

[](#configuration)

See the `config-sample.yaml` provided by this repository for an example.

Running
=======

[](#running)

- If you installed using composer: `vendor/bin/arche-ref-sources` in the directory where you run the `composer` command.
- If you cloned this repo: `php -f arche-ref-sources` in the directory containing the repository.

Remarks (substitute `{arche-ref-source}` according to the instruction above):

- Run `{arche-ref-source} --help` to get the list of available options.
- Run `{arche-ref-source} {all the parameters you may want} pathToConfigFile.yaml`
    - You need a configuration file. You can use `config-sample.yaml` provided by this repository as a base (it contains useful comments).
    - For starters you will probably want to stick to the default `parse` mode (only fetch data from the external source but don't try to update ARCHE) with `--verbose` (to see what has been fetched and extracted) and maybe `--output` (so what has been fetched and extracted is saved in a TTL file you can use later on)
    - For filtering resources you can use `--id` (process exactly one resource with a given id; id namespace doesn't count), `--after someDate` (process only resources modified afer a given date) and maybe `--limit N` (process only number of N resources)
    - You can choose the ARCHE instance by providing the `--repoUrl` (the default is apollo, for minerva you should use `--repoUrl https://arche-dev.acdh-dev.oeaw.ac.at/api`)
    - You can also read data from an RDF file instead of an ARCHE repository using the `--inputFile` parameter.

---

Instructions for
-----------------------------------------------------------

[](#instructions-for-repo-ingestionhephaistosarzoeawacat)

The script is already installed on

- ssh to repo-ingestion@hephaistos
- run `./login.sh`
- run `/ARCHE/vendor/bin/arche-ref-sources {parameters} {pathToConfigFile}` and replace the part in `{}` with your choice of parameters
    - Example 1: fetch data without changing what is there for resources modified after 01.12.2021, output on console what has been fetched and also write this output to a file:
        - `/ARCHE/vendor/bin/arche-ref-sources --mode parse --verbose --output /ARCHE/staging/enrichment/outputEnrich.ttl --after 2021-12-01 /ARCHE/vendor/acdh-oeaw/arche-ref-sources/config-sample.yaml`
    - Example 2, not for the faint of heart: fetch data and change on instance, but immediately revert changes; also output on console what has been fetched and write this output to a file as well:
        - `/ARCHE/vendor/bin/arche-ref-sources --mode test --verbose --output /ARCHE/staging/enrichment/outputEnrich.ttl /ARCHE/vendor/acdh-oeaw/arche-ref-sources/config-sample.yaml`
    - If you want to use your own config file, make a copy of /ARCHE/vendor/acdh-oeaw/arche-ref-sources/config-sample.yaml (`cp /ARCHE/vendor/acdh-oeaw/arche-ref-sources/config-sample.yaml {placeOfYourChoice`) and edit it.

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance88

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 97.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~82 days

Recently: every ~119 days

Total

20

Last Release

61d ago

Major Versions

0.8.5 → 1.0.02024-11-27

PHP version history (3 changes)0.1.0PHP &gt;=8

0.8.3PHP &gt;=8 &lt;8.3

0.8.4PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/f1f662e3acb95efd9208cdcd2c97437db366044aea705985251760efcbd23070?d=identicon)[zozlak](/maintainers/zozlak)

---

Top Contributors

[![zozlak](https://avatars.githubusercontent.com/u/6503177?v=4)](https://github.com/zozlak "zozlak (70 commits)")[![bellerophons-pegasus](https://avatars.githubusercontent.com/u/5328599?v=4)](https://github.com/bellerophons-pegasus "bellerophons-pegasus (2 commits)")

---

Tags

arche

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/acdh-oeaw-arche-ref-sources/health.svg)

```
[![Health](https://phpackages.com/badges/acdh-oeaw-arche-ref-sources/health.svg)](https://phpackages.com/packages/acdh-oeaw-arche-ref-sources)
```

###  Alternatives

[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[j0k3r/php-readability

Automatic article extraction from HTML

186808.8k6](/packages/j0k3r-php-readability)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
