Dissemination method for Low-Res JPEG from TIFF

Fedora Commons Sdef object

Ingest new object Sdef (PID openbess:jpgldSdef) with these DS:

  • DC
  • RELS_EXT
<rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <rdf:Description rdf:about="info:fedora/openbess:jpgldSdef">
    <fedora-model:hasModel rdf:resource="info:fedora/fedora-system:ServiceDefinition-3.0"></fedora-model:hasModel>
  </rdf:Description>
</rdf:RDF>
  • METHODMAP
<fmm:MethodMap xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap" name="methodmap">
  <fmm:Method operationName="getJpgLD"></fmm:Method>
</fmm:MethodMap>

Fedora Commons Sdep object

Ingest new object Sdep (PID openbess:jpgldSdep-pageCModel) with these DS:

  • DC
  • RELS-EXT
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <rdf:Description rdf:about="info:fedora/openbess:jpgldSdep-pageCModel">
    <hasModel xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/fedora-system:ServiceDeployment-3.0"></hasModel>
    <isDeploymentOf xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/openbess:jpgldSdef"></isDeploymentOf>
    <isContractorOf xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/islandora:pageCModel"></isContractorOf>
  </rdf:Description>
</rdf:RDF>
  • DSINPUTSPEC
<fbs:DSInputSpec xmlns:fbs="http://fedora.comm.nsdlib.org/service/bindspec" label="jp2SdepInputSpec">
	<fbs:DSInput DSMax="1" DSMin="1" DSOrdinality="false" wsdlMsgPartName="DC">
	<fbs:DSInputLabel>DC</fbs:DSInputLabel>
	<fbs:DSMIME>text/xml</fbs:DSMIME>
	<fbs:DSInputInstruction></fbs:DSInputInstruction>
	</fbs:DSInput>
</fbs:DSInputSpec>
  • WDSL
<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap" xmlns:soapenc="http://schemas.xmlsoap.org/wsdl/soap/encoding" xmlns:this="djatoka" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Fedora Local Djatoka Service" targetNamespace="jpgldSDep">
          <wsdl:message name="getRegionRequest">
            <wsdl:part name="PID" type="xsd:string"></wsdl:part>
            <wsdl:part name="DSID" type="xsd:string"></wsdl:part>
            <wsdl:part name="svc_id" type="xsd:string"></wsdl:part>
          </wsdl:message>
          <wsdl:message name="response">
            <wsdl:part name="exhibit" type="xsd:base64Binary"></wsdl:part>
          </wsdl:message>
          <wsdl:portType name="FedoraDjatokaPortType">
            <wsdl:operation name="getJpgLD">
              <wsdl:input message="this:getRegionRequest"></wsdl:input>
              <wsdl:output message="this:response"></wsdl:output>
            </wsdl:operation>
          </wsdl:portType>
          <wsdl:service name="FedoraDjatoka">
            <wsdl:port binding="this:FedoraDjatoka_http" name="FedoraDjatoka_port">
              <http:address location="http://local.fedora.server/"></http:address>
            </wsdl:port>
          </wsdl:service>
          <wsdl:binding name="FedoraDjatoka_http" type="this:FedoraDjatokaPortType">
            <http:binding verb="GET"></http:binding>
            <wsdl:operation name="getJpgLD">
              <http:operation location="adore-djatoka/resolver?url_ver=Z39.88-2004&amp;rft_id=http://local.fedora.server/fedora/get/(PID)/(DSID)&amp;svc_id=(svc_id)&amp;svc_val_fmt=info:ofi/fmt:kev:mtx:jpeg2000&amp;svc.format=image/jpeg&amp;svc.level=4"></http:operation>
              <wsdl:input>
                <http:urlReplacement></http:urlReplacement>
              </wsdl:input>
              <wsdl:output>
                <mime:content type="image/jpeg"></mime:content>
              </wsdl:output>
            </wsdl:operation>
          </wsdl:binding>
</wsdl:definitions>
  • METHODMAP
<fmm:MethodMap xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap" bDefPID="djatoka:bDef" name="MethodMap - djatoka Service Methods">
	<fmm:Method operationName="getJpgLD" wsdlMsgName="getRegionRequest" wsdlMsgOutput="response">
            <fmm:DefaultInputParm defaultValue="$PID" label="fedora object pid" parmName="PID" passBy="VALUE" required="true"></fmm:DefaultInputParm>
            <fmm:DefaultInputParm defaultValue="TIFF" label="content model" parmName="DSID" passBy="VALUE" required="true"></fmm:DefaultInputParm>
            <fmm:DefaultInputParm defaultValue="info:lanl-repo/svc/getRegion" parmName="svc_id" passBy="VALUE" required="true"></fmm:DefaultInputParm>
            <fmm:MethodReturnType wsdlMsgName="response" wsdlMsgTOMIME="image/jpeg"></fmm:MethodReturnType>
	</fmm:Method>
</fmm:MethodMap>

Fedora Commons pageCModel

Add the new service to RELS-EXT datastream:

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <rdf:Description rdf:about="info:fedora/islandora:pageCModel">
    <hasModel xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/fedora-system:ContentModel-3.0"></hasModel>
    <hasService xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/islandora:viewerSdef"></hasService>
    <hasService xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/islandora:jp2Sdef"></hasService>
    <hasService xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/islandora:tei2htmlSdef"></hasService>
    <hasService xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/openbess:jpgldSdef"></hasService>
  </rdf:Description>
</rdf:RDF>
 
 
repo/jpglr.txt ยท Last modified: 2013/06/18 10:49 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
DigiBess is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki