Skip to content

AGLDWG/iri-mapping-validator

Repository files navigation

IRI Mapping Validator

for Australian Government Linked Data Working Group-issued IRIs

This repository contains a simple set of scripts for validating the mappings of persistent IRIs allocated by the Australian Government Linked Data Working Group (AGLDWG).

The script - a Python script - operates by sending Internet requests for each AGLDWG managed persistent IRI and comparing the responses with the static comparison data stored in this repository.

Use

Typical use is like this:

python validator.py linked.data.gov.au-vocabs.json,linked.data.gov.au-ontologies.json

Here the validator is run with two input files - for linked.data.gov.au vocabs & ontologies.

Test Format

Redirection tests use JSON files for to/from IRI in this format:

{
  "https://linked.data.gov.au/dataset/geofabric": [
    {
      "label": "Geofabric - distributed as Linked Data, HTML",
      "from_iri": "https://linked.data.gov.au/dataset/geofabric",
      "from_headers": null,
      "to_iri": "https://geofabricld.net",
      "to_headers": null
    },
    {
      "label": "Geofabric - distributed as Linked Data, Accept Turtle",
      "from_iri": "https://linked.data.gov.au/dataset/geofabric",
      "from_headers": {
        "Accept": "text/turtle"
      },
      "to_iri": "https://geofabricld.net/index.ttl",
      "to_headers": {
        "Content-Type": "text/turtle"
      }
    }
  ]
}

Each allocated IRI - in the above case https://linked.data.gov.au/dataset/geofabric - can have any number of individual tests. Here there is a test for HTML & RDF (Turtle) redirects.

See the JSON files in this directory for all tests implemented so far.

License

This repository is licensed under the Apache 2.0 license. See the LICENSE deed in this repository for details.

Contacts

System Owner: Australian Government Linked Data Working Group

System Owner contact:
Nicholas Car
Co-chair, AGLDWG
Research School of Computer Science
Australian National University
[email protected]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published