madbob/lov-api

Linked Open Vocabularies (LOV) API 的简单封装

0.1.1 2022-02-15 12:29 UTC

This package is auto-updated.

Last update: 2024-09-15 17:16:23 UTC


README

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/');