Michael J. Giarlo | 1 May 01:05 2005
Picon

[Fedora-users] Using API-A findObjects

Greetings folks,

I've been hacking away at PHP for a bit trying to get the API-A function 
"findObjects" to work, and I have thus far failed miserably.  The problem 
I'm running into is construction of a good value for FieldSearchQuery.  I 
keep getting errors such as:

org.xml.sax.SAXException: Bad types (class java.lang.String -> class 
fedora.server.types.gen.FieldSearchQuery)

At this point, I am hard-coding values for debugging purposes.  Here's a 
couple snippets of code to show what I've been trying:

$parms=array('resultFields' => "pid,title,subject",
              new soapval('maxResults', 'nonNegativeInteger', 30),
              new soapval('query', 'FieldSearchQuery', 
"subject,has,cluster*"));
$FieldSearchResult=$aClient->call('findObjects', $parms);

This one fails with the error above.  When I replace the string 
"subject,has,cluster*" with what seems to me to be the proper soapvals, I 
get the same error:

new soapval('conditions', "ArrayOfCondition",  new soapval('condition', 
"Condition", "subject", new soapval('operator', "ComparisonOperator", 
"has"), "cluster*"))

Any ideas, folks?  Let me know if I should provide more information or 
clarify anything I've said here.  I'm a bit under the gun to get this 
resolved, so I appreciate your responses!
(Continue reading)

Huajing Li | 2 May 01:48 2005
Picon

[Fedora-users] How to express a book-like structure in Fedora?

Hi,
 
I am using Fedora to describe a somewhat complex structure (say, a book). In the scope of a chapter, there might be some digital picture resources which are linked with it. I don't want to create separate digital objects for these images because they don't have appropriate metadata. Thus, I create some datastreams for them in the digital object representing the chapter. Here comes a problem: is there any method for a user to query the number of images in the chapter? I am a little confused because each image has a unique datastream ID. Can I "group" the images in a digital object?
 
Thanks in advance!
 
 
Huajing
Edwin Shin | 2 May 07:44 2005
Picon

Re: [Fedora-users] How to express a book-like structure in Fedora?

Some of the UVa library people might be able to chime in with how 
they've modeled books and such, although I believe they generally create 
an object per image.

An alternative approach will be possible in 2.1, which is coming Real 
Soon Now: we're relaxing the the restrictions on the RELS-EXT 
datastream, which will include enabling assertions from a digital object 
to any URI (as opposed to only between digital objects as is the case in 
2.0).

So in 2.1, for the digital object with PID foo:chapter1 and image 
datastream ids DS5, DS6, and DS7, you might assert the following in the 
RELS-EXT datastream:

<rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:myns="http://example.org/myrels#">
  <rdf:Description rdf:about="info:fedora/foo:chapter1">
     <myns:hasImage rdf:resource="info:fedora/foo:chapter1/DS5"/>
     <myns:hasImage rdf:resource="info:fedora/foo:chapter1/DS6"/>
     <myns:hasImage rdf:resource="info:fedora/foo:chapter1/DS7"/>
  </rdf:Description>
</rdf:RDF>

You could then query the Resource Index for chapter objects with 
hasImage predicate, e.g. in iTQL:
   select $chapter $image from <#ri>
   where $chapter <http://example.org/myrels#hasImage> $image

I'm not necessarily advocating this approach. Generally I'd prefer the 
atomicity of an object-per-image model, but perhaps you have specific 
considerations that make that undesirable.

See the Resource Index Guide 
(http://www.fedora.info/download/2.0/userdocs/server/resourceIndex/) and 
the ImageCollection demo for examples.

Huajing Li wrote:
> Hi,
> 
> I am using Fedora to describe a somewhat complex structure (say, a
> book). In the scope of a chapter, there might be some digital picture
> resources which are linked with it. I don't want to create separate
> digital objects for these images because they don't have appropriate
> metadata. Thus, I create some datastreams for them in the digital
> object representing the chapter. Here comes a problem: is there any
> method for a user to query the number of images in the chapter? I am
> a little confused because each image has a unique datastream ID. Can
> I "group" the images in a digital object?
> 
> Thanks in advance!
> 
> 
> Huajing

Giovanni Formenti | 2 May 13:14 2005
Picon

[Fedora-users] Fedora + WebDAV & Workflow

Hi!
Nobody try to upload document into fedora with WebDAV protocol? There is
some open-source tools for this?
And use Fedora with an open-source Workflow engine?! I'm studying Enhydra
Sharak for this kind of integration...

Thanks for any help and suggest!
Giovanni

Elly Cramer | 2 May 14:08 2005
Picon

RE: [Fedora-users] Using API-A findObjects

Michael,

This does not answer your question, but here's another idea.  I use
file_get_contents in php with the search url in API-A-Lite instead of
findObjects.  I find it sufficient for my requirements.  Here's a snippet
from the search page.

  if (isset($_REQUEST['my'])) { 
     $conditions = urlencode("contributor~'*$realName*' ftype='O'");
     $searchPhrase = "query=$conditions";
  } else {
     $terms = urlencode($terms);
     $searchPhrase = "terms=*$terms*";
  }
  // Is this a new search page or more results? Determined by sessionToken.
  if (!isset($sessionToken)) {
    //Call URL for xml results, maxResults, fields diplayed, and searchPhrase
to send to xslt (see Fedora API docs).
    $xml =
file_get_contents("$searchURL?xml=true&maxResults=$maxResults&pid=true&label=
true&description=true&$searchPhrase");
  } elseif (isset($sessionToken)){
    //Call URL for xml results with sessionToken to xslt (see Fedora API
docs).
    $xml =
file_get_contents("$searchURL?xml=true&sessionToken=$sessionToken");
  }
  // Allocate a new XSLT processor
  $xh = xslt_create();
  //xslt_set_base ($xh, $xsl_path); 
  $arguments = array( '/_xml' => $xml,);
  $parms = array('terms' => $terms, 'userName' => $userName);
  if ($result = xslt_process($xh, 'arg:/_xml', "$xsl_path/search.xsl", NULL,
$arguments, $parms)) {
    echo $result;
  } else {
    print "Sorry, the XSLT transformation failed. ";
    print "The reason is that " . xslt_error($xh) . " and the ";
    print "error code is " . xslt_errno($xh);
  }
  xslt_free($xh);
}

-----Original Message-----
From: fedora-users-bounces@...
[mailto:fedora-users-bounces@...] On Behalf Of Michael J. Giarlo
Sent: Saturday, April 30, 2005 7:05 PM
To: fedora-users@...
Subject: [Fedora-users] Using API-A findObjects

Greetings folks,

I've been hacking away at PHP for a bit trying to get the API-A function
"findObjects" to work, and I have thus far failed miserably.  The problem I'm
running into is construction of a good value for FieldSearchQuery.  I keep
getting errors such as:

org.xml.sax.SAXException: Bad types (class java.lang.String -> class
fedora.server.types.gen.FieldSearchQuery)

At this point, I am hard-coding values for debugging purposes.  Here's a
couple snippets of code to show what I've been trying:

$parms=array('resultFields' => "pid,title,subject",
              new soapval('maxResults', 'nonNegativeInteger', 30),
              new soapval('query', 'FieldSearchQuery',
"subject,has,cluster*")); $FieldSearchResult=$aClient->call('findObjects',
$parms);

This one fails with the error above.  When I replace the string
"subject,has,cluster*" with what seems to me to be the proper soapvals, I get
the same error:

new soapval('conditions', "ArrayOfCondition",  new soapval('condition',
"Condition", "subject", new soapval('operator', "ComparisonOperator", "has"),
"cluster*"))

Any ideas, folks?  Let me know if I should provide more information or
clarify anything I've said here.  I'm a bit under the gun to get this
resolved, so I appreciate your responses!

-Mike
Thornton Staples | 2 May 14:39 2005

Re: [Fedora-users] How to express a book-like structure in Fedora?

At UVA we create an object for each page image, each of which is
considered the child of an object for the book. The PIDs for the
page-image objects are embedded in the content of the book object. If
the book object has a marked-up transcription (i.e., you can tell which
page images are in which chapters) it could have a disseminator that
returned the stream of PIDs that were in the chapter. In fact, all
functions which use the page images from the book, like page-turning,
are disseminatons of the book object.

We build a very minimal descriptive metadata record from the parent
object for each page image, using the title of the book plus the page
number, plate number or whatever can be inferred from the text. Our
image objects are never discoverable directly anyway, one always find a
book, an artwork, a map, whatever, directly, then asks for the image.
Each image object does have full admninstrative and technical metadata
that was captured in the workflow.

Thorny

Huajing Li wrote:
> Hi,
> 
> I am using Fedora to describe a somewhat complex structure (say, a book). In the scope of a chapter, there
might be some digital picture resources which are linked with it. I don't want to create separate digital
objects for these images because they don't have appropriate metadata. Thus, I create some datastreams
for them in the digital object representing the chapter. Here comes a problem: is there any method for a
user to query the number of images in the chapter? I am a little confused because each image has a unique
datastream ID. Can I "group" the images in a digital object?
> 
> Thanks in advance!
> 
> 
> Huajing
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Fedora-users mailing list
> Fedora-users@...
> http://comm.nsdl.org/mailman/listinfo/fedora-users

Susan Thomas | 3 May 12:01 2005
Picon
Picon

[Fedora-users] Paradigm project - Software Engineer vacancy

Paradigm project Software Engineer

Academic Related Grade 2 £22,507 - £29,128 p.a. including 38 days annual
leave (13 fixed)
Fixed term contract until December 2006

Web oriented developer needed to provide assistance to the PARADIGM
project <http://www.paradigm.ac.uk> of the Bodleian Library and the John
Rylands University Library, Manchester. The project is to develop best
practices and solutions for the collection and preservation of private
papers in digital form. It is expected that the project will make use of
the Dspace and Fedora digital repositories and the successful applicant
will be comfortable with their core technologies of Java and SQL. A
grounding in web services and XML will also be required.

In addition to installing, configuring and developing the above
repositories and related software, the Software Engineer will be expected
to investigate other software packages as needed.

Good communication skills are essential. The postholder must be able to
liaise effectively with non-technical colleagues, and will be required to
participate in the dissemination of the project's findings by producing
technical and end-user documentation, contributing to a Workbook on
Digital Private Papers, and giving presentations on technical aspects of
the project.

Further particulars and application forms may be obtained from
<http://www.sers.ox.ac.uk/vacancies/>; or from Sarah Connor, Systems and
Electronic Resources Service, SERS Building, Osney Mead, Oxford, OX2 0ES
(Tel: 01865 280040; E-mail: sarah.connor@...).

The closing date for completed application forms is 30th may 2005. Please
quote our ref: LNS15178.

Thornton Staples | 4 May 15:12 2005

Re: [Fedora-users] Fedora + WebDAV & Workflow

Hi,

We haven't used a workflow engine with Fedora yet, but are interested in 
doing so over the next year. So far, I have been looking at Twister 
(http://www.smartcomps.org/twister/) and ActiveBPEL 
(http://www.activebpel.org/). I haven't gotten very far with it yet, but 
Twister is looking like the better choice for us. We are mostly 
interested in an engine that can choreograph human and machine processes.

Most immediately, we need one that can run machine processes that are 
not web services. Twister is BPEL and web services oriented, but one can 
develop custom service interfaces, too. It is early in the development 
of the project, though.

Thorny

Giovanni Formenti wrote:
> Hi!
> Nobody try to upload document into fedora with WebDAV protocol? There is
> some open-source tools for this?
> And use Fedora with an open-source Workflow engine?! I'm studying Enhydra
> Sharak for this kind of integration...
> 
> Thanks for any help and suggest!
> Giovanni
> 
> 
> _______________________________________________
> Fedora-users mailing list
> Fedora-users@...
> http://comm.nsdl.org/mailman/listinfo/fedora-users

Derek Adams | 4 May 16:38 2005
Picon

[Fedora-users] Eclipse plugin / JSR-170

Has anyone created an Eclipse plugin for administering Fedora servers?  Since Eclipse is quickly becoming the editor of choice for the Java community, it would be nice to have server admin available within the IDE. It would also draw more attention to the project. I have a lot of experience developing Eclipse plugins (http://gaijin-studio.sourceforge.net/modules/news/) and would like to volunteer for creating the plugin if one does not exist.
 
Also, has anyone looked at the JSR-170 spec (see http://incubator.apache.org/jackrabbit/) for content repositories in relation to Fedora? Providing an interface that is JSR-170-compatible may increase interest in Fedora as well.
 
Thanks!
Derek Adams

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Peter Murray | 5 May 21:26 2005

[Fedora-users] Job Opportunity: OhioLINK System Developer for the Digital Resource Commons

Please Post

System Developer Search

Grant Funded Project – temporary position for 2 years.

The System Developer position will serve as a key team member to facilitate the design, development, testing and implementation of new content management technologies for state of Ohio higher education communities through OhioLINK. The system developer will be building custom applications using Tomcat/Java in the Fedora Project environment (http://www.fedora.info/). The java applications will be used to deliver web content as enterprise-scale web sites.

Education

Bachelors Degree in Computer Science or related technical field is desired. Hand's-on experience with Java, Apache/Tomcat, UNIX, and XML/XSL are more important than a formal college degree in Computer Science. An American Library Association (ALA) accredited graduate level degree is also desired.

Required Skills

Experience in the following: planning, design, building, and implementing of web-database applications using J2EE, SQL, and other relevant technologies in a UNIX/Linux environment to provide access to databases and electronic resources; excellent oral, written, and interpersonal communication skills; excellent analytical, organizational, and problem-solving skills; experience with manipulation of metadata in a variety of XML schemas such as Dublin Core, EAD, METS, MODS, TEI, MPEG-7, etc.; evidence of ability to work effectively and collaboratively with staff and customers to facilitate access, assessment, and management of issues related to electronic resources; knowledge and understanding of issues and practices related to electronic information, resources, copyright and intellectual property rights, and scholarly communication.

Desired Skills

Work experience in the design, development, and integration of software systems using XML, XSLT, Application Servers and/or UNIX scripts, particularly projects developed with an open source philosophy; knowledge of image, audio and video file formats (JPEG 2000 highly desired); familiarity with current technologies related to computers, operating systems, client-server computing, network functions, system administration and database management fundamentals; relevant experience in an academic or research library setting; strong public service orientation and awareness of the impact of electronic resource access on user needs and expectations; recent experience and knowledge gained via hands-on project work is most desired.

Background

OhioLINK's Digital Resource Commons (DRC) is an Ohio Board of Regents-funded project to create a federated repository service that ingests, preserves, presents, and mediates administration of the educational and research materials of participating institutions. With the capability to store and deliver a virtually unlimited variety of digital file types and formats (including text, data sets, image, audio, video, streaming video, multimedia presentations, animations, etc.) the DRC is positioned to capture digital content from student and faculty researchers as it is produced and return it to users of the DRC upon request. The DRC offers wide and flexible control to member institutions and the communities within institution to define how content is added, preserved, and displayed to repository users. With federated community administration features, lead contacts at member institutions can create communities and delegate up to a complete subset of their privileges within the system to the editors/moderators of those new communities. The ability to scope and brand content to a particular community and institution is offered while retaining the ability to search for content across the entire repository. As both an Open Archives Initiative Data Provider and Service Provider, the DRC is positioned to become the premier point for the discovery of knowledge by and about Ohio's scholars. In conjunction with the other parts of the Ohio Board of Regents grant funding, the DRC is one piece of a larger effort to build the Ohio Digital Commons for Education — a powerful vision for the future of learning and research in the state of Ohio.

Generous benefits package.

Please send a current resume and the names, email addresses, and phone numbers of 3 references to resume-hbROQncn9SD2fBVCVOL8/A@public.gmane.org. Include a cover letter that also clearly states your salary expectations. Review of potential applicants will begin no later than May 16, 2005 and will continue until a successful candidate is chosen and has accepted.

For more information about OhioLINK, go to http://www.ohiolink.edu


-- Peter Murray http://www.pandc.org/peter/work/ Assistant Director, Multimedia Systems tel:+1-614-728-3600;ext=338 OhioLINK: the Ohio Library and Information Network Columbus, Ohio

Gmane