madbob/lov-api

Simple wrapper for the Linked Open Vocabularies (LOV) API

0.1.1 2022-02-15 12:29 UTC

This package is auto-updated.

Last update: 2022-07-15 12:34:23 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/');