updated readme
This commit is contained in:
parent
f1ab6bd74b
commit
abde48640f
@ -30,8 +30,12 @@ Package | Description
|
|||||||
use NoccyLabs\Dataset\DatasetManager;
|
use NoccyLabs\Dataset\DatasetManager;
|
||||||
|
|
||||||
$dm = new DatasetManager();
|
$dm = new DatasetManager();
|
||||||
|
|
||||||
|
// Call on getDataset() if you want access to the metadata,
|
||||||
|
// Replace with openDataset() to quicly call getDataset()->open()
|
||||||
$ds = $dm->getDataset("noccylabs/dataset-iso3166#countries");
|
$ds = $dm->getDataset("noccylabs/dataset-iso3166#countries");
|
||||||
|
|
||||||
|
// This is how you get the metadata
|
||||||
echo "Dataset ID: ".$ds->getIdentifier(); // noccylabs/dataset-iso3166#countries
|
echo "Dataset ID: ".$ds->getIdentifier(); // noccylabs/dataset-iso3166#countries
|
||||||
echo "Dataset version: ".$ds->getVersion(); // 2022.10.1
|
echo "Dataset version: ".$ds->getVersion(); // 2022.10.1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user