Fedora developers will doubtless correct me if I'm misleading you, but changing 
the definition of PID would be a major undertaking. PIDs are namespaced for 
very good reasons. What's more, it's not clear (to me) that obtaining URLs of a 
particular form requires changing the definition of PID. A PID is (as the name 
would have you believe) an identifier, which only incidentally becomes part of 
an URL fragment.

You could consider proxying your repository through an Apache httpd instance 
using mod_proxy then using mod_rewrite to make your URLs anything you desire. 
Of course, similar tools exist for other webservers.

---
A. Soroka
Digital Research and Scholarship R & D and Online Library Environment
the University of Virginia Library




On Dec 6, 2010, at 9:50 AM, Ludovic Deravet wrote:

> 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-531f8568d57d
> 
> 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 <[email protected]> 
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users


------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to