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: 2024-11-15 17:37:25 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/');