OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

obix-comment message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [obix-comment] href in ref element


The difference between uri and ref is that uri is a property which
happens to be of type "uri".  Ref is merely a hyperlink to an object of
some other type.  This is also the reason we use href over val for the
ref's URI.  The major difference is that uri's probably never map to an
oBIX object but a ref *must* reference an oBIX document.

I think your contract example uses href inheritance which as of now we
don't support.

Brian

-----Original Message-----
From: Chaudhari, Hemraj [mailto:HChaudhari@trane.com] 
Sent: Tuesday, October 31, 2006 10:50 AM
To: obix-comment@lists.oasis-open.org
Subject: [obix-comment] href in ref element

Hi,

 

I wanted to know why references in ref elements are stored in href. Why
we
are not using val to store reference like uri?

 And if we do store reference in val for ref element, what is difference
in
ref and uri elements?

 

Consider following example.

 

<ref href="/people/Greg-Brady"/>

 

In this case I loose ability to locate this element by href.

 

 

Can I define contract like.

 

<obj href="myContract">

  <ref  name="child1" href="child1" val="/something"/>

  <ref  name="child2" href="child2" val="/somethingelse"/> 

</obj>

 

By this way I can access reference elements by uri . e.g. /child1 or
/child2

 

Regards,

Hemraj Chaudhari.



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]