madbob/lov-api

Simple wrapper for the Linked Open Vocabularies (LOV) API

0.1.0 2020-09-21 02:19 UTC

This package is auto-updated.

Last update: 2021-08-21 02:35:47 UTC


README

Very simple wrapper to the Linked Open Vocabularies (LOV) API.

use MadBob\LovAPI\LovAPI;

/*
    Inits the client
*/
$lov = new LovAPI;

/*
    Fetches some information about the ontology, given his namespace
*/
$info = $lov->get('http://schema.org/');

/*
    Fetches the actual ontology file from the repository, given a namespace
*/
$file = $lov->fetchFile('http://schema.org/');