Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gbv/jskos-php

JSKOS data model in PHP
https://github.com/gbv/jskos-php

coli-conc jskos library

Last synced: 2 months ago
JSON representation

JSKOS data model in PHP

Awesome Lists containing this project

README

        

# jskos - JSKOS data model in PHP

[![Latest Version](https://img.shields.io/packagist/v/gbv/jskos.svg?style=flat-square)](https://packagist.org/packages/gbv/jskos)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
[![Build Status](https://img.shields.io/travis/gbv/jskos-php.svg?style=flat-square)](https://travis-ci.org/gbv/jskos-php)
[![Coverage Status](https://img.shields.io/coveralls/gbv/jskos-php/master.svg?style=flat-square)](https://coveralls.io/r/gbv/jskos-php)
[![Quality Score](https://img.shields.io/scrutinizer/g/gbv/jskos-php.svg?style=flat-square)](https://scrutinizer-ci.com/g/gbv/jskos-php)
[![Total Downloads](https://img.shields.io/packagist/dt/gbv/jskos.svg?style=flat-square)](https://packagist.org/packages/gbv/jskos)

**jskos** is a PHP library for easy processing of knowledge organization systems (KOS) as classifications, thesauri, and authority files given in [JSKOS data format](http://gbv.github.io/jskos/). JSKOS is a JSON format based on [Simple Knowledge Organisation System (SKOS)](http://www.w3.org/TR/skos-reference).

# Requirements

JSKOS-PHP requires PHP 7.2. No additional libraries are required.

# Installation

## With composer

Install the latest version with

~~~bash
composer require gbv/jskos
~~~

This will automatically create `composer.json` for your project (unless it already exists) and add jskos as dependency. Composer also generates `vendor/autoload.php` to get autoloading of all dependencies:

~~~php
require_once __DIR__ . '/vendor/autoload.php';

$concept = new JSKOS\Concept( [ "uri" => "http://example.org" ] );
echo $concept->json();
~~~

# Usage and examples

The [jskos-php-examples repository](https://github.com/gbv/jskos-php-examples)
contains several examples, including wrappers of existing terminology services
(Wikidata, GND...) to JSKOS-API.

The examples can be tried online at .

# Contributung

See `CONTRIBUTUNG.md` for technical details.

Bugs and feature request are [tracked on GitHub](https://github.com/gbv/jskos-php/issues).

# Author and License

Jakob Voß

JSKOS-PHP is licensed under the LGPL license - see `LICENSE.md` for details.

# See also

JSKOS is created as part of project coli-conc: .

The current specification of JSKOS is available at .

Additional PHP packages for JSKOS processing:

* [jskos-http](https://packagist.org/packages/gbv/jskos-http) - JSKOS API server and client
* [jskos-rdf](https://packagist.org/packages/gbv/jskos-rdf) - JSKOS RDF conversion