Hi Ludovic
 
The namespace:pid form of PIDs in Fedora is pretty much hard-wired into
Fedora.  Doubtless with some code changes this could be changed, but the
identifier format is this by design.  If this is key to your requirements
the only thing I can suggest is some form of URL-rewriting outside of
Fedora.
 
Regards
Steve
 
 
-----Original Message-----
From: Ludovic Deravet [mailto:ludovicdera...@gmail.com] 
Sent: 06 December 2010 14:51
To: Support and info exchange list for Fedora users.
Subject: Re: [fcrepo-user] Is it possible to change the default PID format?


Hi Greg, 

In fact, I really want to avoid having the namespace in the PID to simplify
the URIs. So instead of having:

http://hostname/fedora/get/objects/mynamespace:e9de9812-5506-48ca-9f80-531f8
568d57d

It will be:

http://hostname/fedora/get/objects/e9de9812-5506-48ca-9f80-531f8568d57d

Regards,

Ludovic

On Mon, Dec 6, 2010 at 3:13 PM, Ludovic Deravet <ludovicdera...@gmail.com>
wrote:


Hello, 

I would like to know if it is possible to change the default PID format that
is supported by Fedora. By default, it is 'namespace:alphanumericvalue' but
we would like to only have 'alphanumericvalue' (e.g.
e9de9812-5506-48ca-9f80-531f8568d57d). I have check the Fedora's
configuration files but couldn't find where the default format is enforced
or could be changed.

If I do the following change:

<xsd:simpleType name="pidType">
   <xsd:restriction base="xsd:string">
   <xsd:maxLength value="64"/>
   <xsd:pattern value="(([A-Za-z0-9])|-|\.|~|_|(%[0-9A-F]{2}))+"/>
   </xsd:restriction>
</xsd:simpleType>

And then try to ingest a FOXML sample file through the Flash Admin
interface, I can't because the format is not recognized.

And when I try to execute a search using the Resource Index, I'm getting the
following exception:

ERROR 2010-12-06 14:39:41.448 [http-8080-1] (RISearchServlet) Unexpected
error servicing API-A request
org.trippi.TrippiException: Unrecognized format:
e9de9812-5506-48ca-9f80-531f8568d57d

Thanks in advance for your help.

Kind regards,
-- 
Ludovic





-- 
Ludovic

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to