Git Product home page Git Product logo

bartoc-dumps's Introduction

BARTOC dumps

This repository is deprecated and will not be used anymore. See http://bartoc.org/stats instead!

This repository contains scripts to create JSKOS/RDF dumps and statistics of BARTOC to be published at https://coli-conc.gbv.de/publications/bartoc/.

Background

The dumps are not based on the full downloads provided at http://bartoc.org/de/download/ but on a mapping of RDFa output to JSKOS.

  • schemes.ids - list of BARTOC KOS IDs
  • schemes/*.json - BARTOC KOS records in JSKOS
  • schemes.ndjson - dito
  • registries.ids - list of BARTOC terminology registry IDs
  • registries/*.json - BARTOC registry records in JSKOS
  • registries.ndjson - dito

Script download.php collects JSKOS records by wrapping the RDFa output from BARTOC and jsonld2nt.php converts JSKOS to RDF/NTriples. See Makefile for details.

See https://github.com/gbv/jskos-php-examples for an implementation of a JSKOS API wrapping BARTOC RDFa Linked Open Data.

Reports and statistics can be generated with report into directory reports.

Installation

First install requirements:

composer install --no-dev

To regularly run update, create a shell script such as the following to be run via cronjob:

cd $location
make -B ids
make
make report

To ensure proper Mime types for JSON and NDJSON files it makes sense to configure your Webserver, for instance like this:

AddDefaultCharset utf-8
AddType 'application/json; charset=UTF-8' .json
AddType 'application/x-ndjson; charset=UTF-8' .ndjson

bartoc-dumps's People

Contributors

nichtich avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bartoc-dumps's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.