Using: Difference between revisions

2,196 bytes added ,  1 year ago
(establishing page)
 
Line 10: Line 10:
== How to ==
== How to ==
=== Openrefine reconciliation ===
=== Openrefine reconciliation ===
I used Openrefine to prepare most of the data I've added to Ottgaz. I will not describe parsing lists (such as Sezen) into Openrefine here, though I have limited documentation of this process [[Transforming the OYA|elsewhere]]. This section assumes that you know how to use Openrefine and Docker, and describes the tools and process for reconciling and uploading data.
==== Run a local reconciliation interface ====
Download the [https://gitlab.com/nfdi4culture/ta1-data-enrichment/openrefine-wikibase OpenRefine Wikibase] package, which you can run on Docker.
==== Add Wikibase instance ====
Use this manifest to add Ottgaz to OpenRefine.
<pre>
{
    "version": "2.0",
    "mediawiki": {
      "name": "Ottgaz",
      "root": "https://ottgaz.org/wiki/",
      "main_page": "https://ottgaz.org/wiki/Main_Page",
      "api": "https://ottgaz.org/w/api.php"
    },
    "wikibase": {
      "site_iri": "https://ottgaz.org/entity/",
      "maxlag": 5,
      "max_edits_per_minute": 60,
      "tag": "openrefine-${version}",
      "properties": {
        "instance_of": "P1",
        "subclass_of": "P2"
      },
      "constraints": {
        "property_constraint_pid": "P2302",
        "exception_to_constraint_pid": "P2303",
        "constraint_status_pid": "P2316",
        "mandatory_constraint_qid": "Q21502408",
        "suggestion_constraint_qid": "Q62026391",
        "distinct_values_constraint_qid": "Q21502410"
      }
    },
    "oauth": {
      "registration_page": "https://ottgaz.org/wiki/Special:OAuthConsumerRegistration/propose"
    },
    "entity_types": {
      "item": {
        "site_iri": "https://ottgaz.org/entity/",
        "reconciliation_endpoint": "http://localhost:8000/${lang}/api",
        "mediawiki_api": "https://ottgaz.org/w/api.php"
      },
      "property": {
        "site_iri": "https://ottgaz.org/entity/",
        "mediawiki_api": "https://ottgaz.org/w/api.php"
      },
      "mediainfo": {
        "site_iri": "https://ottgaz.org/entity/",
        "reconciliation_endpoint": "http://localhost:8000/${lang}/api"
      }
    },
    "editgroups": {
      "url_schema": "([[:toollabs:editgroups-commons/b/OR/${batch_id}|details]])"
    }
  }
</pre>