fedora-commons

SPARQL INSERT not working with PUT method. why?

久未见 提交于 2019-12-24 16:35:26
问题 I am trying to create a new object with PUT method and to add some of my own prefixes with SPARQL query. But, the object is being created without the added prefixes. It works with POST and PATCH though. Why and is there alternative way for SPARQL to use with PUT method and add using user-defined prefixes? PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX indexing: <http://fedora.info/definitions/v4/indexing#> DELETE { } INSERT { <>

How can I ingest an image into Fedora Commons using PHP?

拟墨画扇 提交于 2019-12-19 11:18:24
问题 I am trying to ingest an image into a Fedora Commons repository using PHP. Here is the code I'm using: $queryArgs = array( "label" => "label goes here", "format" => "info:fedora/fedora-system:METSFedoraExt-1.1", "namespace" => $prefix, "ownerID" => $fedoraUsername, "logMessage" => "log message goes here" ); $url = sprintf( "%s://%s:%d/%s/objects/%s?%s", "http", $host, $port, "fedora", $prefix . ":" . $identifier, http_build_query($queryArgs) ); $headers = array("Accept: text/xml", "Content

How can I ingest an image into Fedora Commons using PHP?

狂风中的少年 提交于 2019-12-01 13:40:31
I am trying to ingest an image into a Fedora Commons repository using PHP. Here is the code I'm using: $queryArgs = array( "label" => "label goes here", "format" => "info:fedora/fedora-system:METSFedoraExt-1.1", "namespace" => $prefix, "ownerID" => $fedoraUsername, "logMessage" => "log message goes here" ); $url = sprintf( "%s://%s:%d/%s/objects/%s?%s", "http", $host, $port, "fedora", $prefix . ":" . $identifier, http_build_query($queryArgs) ); $headers = array("Accept: text/xml", "Content-Type: image/jpg"); $userPassword = $fedoraUsername . ":" . $fedoraPassword; $verifyPeer = false;