Skip to content

Latest commit

 

History

History
76 lines (57 loc) · 2.51 KB

Noid4Php.md

File metadata and controls

76 lines (57 loc) · 2.51 KB

Noid4Php allows for creation of Nice Opaque Identifier (NOID), specifically ARKs. Noid4Php is a feature equivalent implimentation of the original perl based Noid.

Exploration

  1. Clone the repository
git clone https://github.com/Daniel-KM/Noid4Php
  1. Before you can use Noid4Php, you need to make sure that dba extension is installed. To check:
php -m

To install

apt-get install php-7.#-dba
  1. We can use the executable to execute noid commands. Note that you need to use ./noid.
ubuntu:~/Desktop/Noid4Php$ ./noid -help
PHP Warning:  array_shift() expects parameter 1 to be array, string given in /home/nat/Desktop/Noid4Php/noid on line 317
Usage:
               noid [-f Dbdir] [-v] [-h] Command Arguments
               noid -h             (for help with a Command summary).

Usage:
               noid [-f Dbdir] [-v] [-h] Command Arguments
 
 Dbdir defaults to "." if not found from -f or a NOID environment variable.
 For more information try "perldoc noid" or "noid help Command".  Summary:
  1. We need a database/minter to start creating noids. For example:
ubuntu:~/Desktop/Noid4Php$ noid -f /home/nat/Desktop/Noid4Php/test dbcreate s.zd

A more complex minter

./noid -f /home/nat/Desktop/Noid4Php/test2 dbcreate f5.reedeedk long 13030 digitalscholarship.utsc.utoronto.ca utsc.ca/dsu
  1. Once we have minter setup. We can begin creating identifiers.
 ./noid -f /home/nat/Desktop/Noid4Php/test2 mint 1
id: 13030/f5wd3q12m
  1. Binding
ubuntu:~/Desktop/Noid4Php$ ./noid -f /home/nat/Desktop/Noid4Php/test2 bind set 13030/f5wd3q12m locations 'http://digitalscholarship.utsc.utoronto.ca/islandora/object/dsu%3Aroot'
Id:      13030/f5wd3q12m
Element: locations
Bind:    set
  1. Fetching/checking
ubuntu:~/Desktop/Noid4Php$ ./noid -f /home/nat/Desktop/Noid4Php/test2 fetch 13030/f5wd3q12m
id:    13030/f5wd3q12m hold 
Circ:  i|20200807144822|nat/nat|3
locations: http://digitalscholarship.utsc.utoronto.ca/islandora/object/dsu%3Aroot

Questions