Created
October 14, 2015 01:53
-
-
Save daniel-dgi/46a66160456d54b2b54a to your computer and use it in GitHub Desktop.
Basic Image made with a wonka meme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fedora = Chullo::create('http://127.0.0.1:8080/fcrepo/rest'); | |
$pcdm = new Porkpie($fedora); | |
$uri = $pcdm->createObject(); | |
echo $uri; | |
echo "\n"; | |
$preservation_master_path = "/Users/danny/Desktop/memes_collection/condascending_wonka/oh_you're_an_engineer.jpg"; | |
$thumbnail_path = "/Users/danny/Desktop/memes_collection/condascending_wonka/condascending_wonka_thumbnail.png"; | |
$mods_path = "/Users/danny/Desktop/memes_collection/condascending_wonka/oh_you're_an_engineer.xml"; | |
$standard = "http://www.loc.gov/mods/v3"; | |
echo $pcdm->addPreservationMaster( | |
$uri, | |
file_get_contents($preservation_master_path), | |
'image/jpeg' | |
); | |
echo "\n"; | |
echo $pcdm->addThumbnail( | |
$uri, | |
file_get_contents($thumbnail_path), | |
'image/png' | |
); | |
echo "\n"; | |
echo $pcdm->addNonRdfDescriptiveMetadata( | |
$uri, | |
file_get_contents($mods_path), | |
'text/xml', | |
$standard | |
); | |
echo "\n"; | |
http://127.0.0.1:8080/fcrepo/rest/b0/aa/01/8e/b0aa018e-cc4a-4428-ab76-46be6e486145 | |
http://127.0.0.1:8080/fcrepo/rest/b0/aa/01/8e/b0aa018e-cc4a-4428-ab76-46be6e486145/7d/a1/1d/f0/7da11df0-5bb5-456f-8c96-b1b97c3e29b8/50/2a/7b/2d/502a7b2d-2b80-4327-ab85-83016c3f72ff | |
http://127.0.0.1:8080/fcrepo/rest/b0/aa/01/8e/b0aa018e-cc4a-4428-ab76-46be6e486145/7d/a1/1d/f0/7da11df0-5bb5-456f-8c96-b1b97c3e29b8/69/c1/41/67/69c14167-06dd-4653-a28a-b65a852cbbe9 | |
http://127.0.0.1:8080/fcrepo/rest/b0/aa/01/8e/b0aa018e-cc4a-4428-ab76-46be6e486145/7d/a1/1d/f0/7da11df0-5bb5-456f-8c96-b1b97c3e29b8/38/1d/56/27/381d5627-c62a-40ae-bfe8-4d6438f28377 | |
Press ENTER or type command to continue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment