acdh-oeaw/arche-openrefine

基于ARCHE套件的OpenRefine API实现

0.5.3 2024-09-20 08:02 UTC

This package is auto-updated.

Last update: 2024-09-20 08:03:13 UTC


README

OpenRefine APIs实现ARCHE套件

允许将ARCHE套件用作OpenRefine的后端协调器。

支持的功能

  • 基于对存储库内容的全文搜索的协调端点
  • 预览端点实现为一个重定向到{repositoryApiBaseURL}/{resourceId}/metadata
  • 实体、属性和类型的建议端点

评分算法

  • 首先根据元数据属性值进行匹配,计算属性匹配得分。
    • 属性权重在propertyWeights配置属性中定义(参见config-sample.yaml)。如果配置中没有提供属性权重,则假设为1
    • 如果匹配仅部分(查询短语只是属性值的一部分),则权重乘以partialMatchCoefficient配置属性。
  • 在资源级别上,得分为其所有属性匹配得分的总和。

安装

  • 获取Composer
  • composer require acdh-oeaw/arche-openrefine
    ln -s vendor/acdh-oeaw/arche-openrefine/index.php index.php
    cp vendor/acdh-oeaw/arche-openrefine/config-sample.yaml config.yaml
    cp vendor/acdh-oeaw/arche-openrefine/.htaccess .htaccess # apache-only
  • 调整config.yaml中的设置

示例实例

一个运行在ARCHE存储库之上的示例实例,其清单位于https://arche.acdh.oeaw.ac.at/openrefine/reconcile