[MarkLogic Dev General] Thoughtful URI naming
ShellineSE at ldschurch.org
Thu Jan 28 11:17:23 PST 2010
We generally avoid the use of http:// as the root, with one significant exception: When we set up our Schemas database, we use http://lds.org as the root. Then, in schema declarations, we can use http://lds.org/schema/annotations.xsd, for example. If that document were to be taken out of MarkLogic, the declaration will still work.
From: general-bounces at developer.marklogic.com [mailto:general-bounces at developer.marklogic.com] On Behalf Of Geert Josten
Sent: Thursday, January 28, 2010 12:11 PM
To: General Mark Logic Developer Discussion
Subject: RE: [MarkLogic Dev General] Thoughtful URI naming
> Good ideas, Geert. That's helpful.
> You mentioned avoiding the http protocol format for module
> URIs. I would think that it might be a good idea to use that
> format for module URIs if there's any chance in the module
> being used elsewhere (for example, if you plan to open-source
> some part of your work).
> Otherwise, I was thinking along the same general lines.
I am not really against using http in either document uri's or module uri's, I just don't tend to do so as a personal preference. It looks a bit odd to me, but perhaps I am just fooling myself.. ;-)
One thing though is that it might appear to others that the documents and modules are retrieved from internet, which is not the case. Something like doc("http://mycomp.com/mydoc.xml") is really looking in the databases of MarkLogic Server, not accessing internet. It could confuse others..
Drs. G.P.H. Josten
Source of Innovation
2665 JZ Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend.
General mailing list
General at developer.marklogic.com
NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
More information about the General