Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » URI fragments
URI fragments [message #429569] Fri, 24 April 2009 21:57 Go to next message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi,

Does anyone know where I can find information on the syntax for URI
fragments used by EMF to specify references? In particular, I'd like to
know the syntax I may encounter when parsing XMI serialised by EMF.

Many thanks in advance.

Cheers,
Louis.

----
Louis Rose
Research Student
Department of Computer Science,
University of York,
Heslington, York, YO10 5DD, United Kingdom.
+44 1904 434762
Twitter: @louismrose
Re: URI fragments [message #429570 is a reply to message #429569] Fri, 24 April 2009 22:43 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Louis,

Page 454 to 456 of the EMF book has details. Generally by default you
get /<index-in-resource>{/@<feature-name>[.<index>]} which represents
the containment reference path to the object starting at the root of the
resource.


Louis Rose wrote:
> Hi,
>
> Does anyone know where I can find information on the syntax for URI
> fragments used by EMF to specify references? In particular, I'd like
> to know the syntax I may encounter when parsing XMI serialised by EMF.
>
> Many thanks in advance.
>
> Cheers,
> Louis.
>
> ----
> Louis Rose
> Research Student
> Department of Computer Science,
> University of York,
> Heslington, York, YO10 5DD, United Kingdom.
> +44 1904 434762
> Twitter: @louismrose


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: URI fragments [message #429573 is a reply to message #429570] Sat, 25 April 2009 07:12 Go to previous messageGo to next message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Thanks Ed, just what I was after.

Ed Merks wrote:
> Louis,
>
> Page 454 to 456 of the EMF book has details. Generally by default you
> get /<index-in-resource>{/@<feature-name>[.<index>]} which represents
> the containment reference path to the object starting at the root of the
> resource.
>
>
> Louis Rose wrote:
>> Hi,
>>
>> Does anyone know where I can find information on the syntax for URI
>> fragments used by EMF to specify references? In particular, I'd like
>> to know the syntax I may encounter when parsing XMI serialised by EMF.
>>
>> Many thanks in advance.
>>
>> Cheers,
>> Louis.
>>
>> ----
>> Louis Rose
>> Research Student
>> Department of Computer Science,
>> University of York,
>> Heslington, York, YO10 5DD, United Kingdom.
>> +44 1904 434762
>> Twitter: @louismrose
Re: URI fragments [message #429577 is a reply to message #429570] Sat, 25 April 2009 13:16 Go to previous messageGo to next message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Ed,

A related question. Which part of EMF generates the (UUID?) values for
xmi:id attributes.

Cheers,
Louis (wishing he had brought home the EMF book from the office).

Ed Merks wrote:
> Louis,
>
> Page 454 to 456 of the EMF book has details. Generally by default you
> get /<index-in-resource>{/@<feature-name>[.<index>]} which represents
> the containment reference path to the object starting at the root of the
> resource.
>
>
> Louis Rose wrote:
>> Hi,
>>
>> Does anyone know where I can find information on the syntax for URI
>> fragments used by EMF to specify references? In particular, I'd like
>> to know the syntax I may encounter when parsing XMI serialised by EMF.
>>
>> Many thanks in advance.
>>
>> Cheers,
>> Louis.
>>
>> ----
>> Louis Rose
>> Research Student
>> Department of Computer Science,
>> University of York,
>> Heslington, York, YO10 5DD, United Kingdom.
>> +44 1904 434762
>> Twitter: @louismrose
Re: URI fragments [message #429579 is a reply to message #429577] Sat, 25 April 2009 14:25 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Louis,

EcoreUtil.generateUUID generates it and if XMLResourceImpl.useUUIDs is
true, attachedHelper will generate one when an object is attached to
that resource.


Louis Rose wrote:
> Ed,
>
> A related question. Which part of EMF generates the (UUID?) values for
> xmi:id attributes.
>
> Cheers,
> Louis (wishing he had brought home the EMF book from the office).
>
> Ed Merks wrote:
>> Louis,
>>
>> Page 454 to 456 of the EMF book has details. Generally by default you
>> get /<index-in-resource>{/@<feature-name>[.<index>]} which represents
>> the containment reference path to the object starting at the root of
>> the resource.
>>
>>
>> Louis Rose wrote:
>>> Hi,
>>>
>>> Does anyone know where I can find information on the syntax for URI
>>> fragments used by EMF to specify references? In particular, I'd like
>>> to know the syntax I may encounter when parsing XMI serialised by EMF.
>>>
>>> Many thanks in advance.
>>>
>>> Cheers,
>>> Louis.
>>>
>>> ----
>>> Louis Rose
>>> Research Student
>>> Department of Computer Science,
>>> University of York,
>>> Heslington, York, YO10 5DD, United Kingdom.
>>> +44 1904 434762
>>> Twitter: @louismrose


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: URI fragments [message #429582 is a reply to message #429579] Sat, 25 April 2009 17:02 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Perfect, thanks Ed. Enjoy the rest of the weekend.

Ed Merks wrote:
> Louis,
>
> EcoreUtil.generateUUID generates it and if XMLResourceImpl.useUUIDs is
> true, attachedHelper will generate one when an object is attached to
> that resource.
>
>
> Louis Rose wrote:
>> Ed,
>>
>> A related question. Which part of EMF generates the (UUID?) values for
>> xmi:id attributes.
>>
>> Cheers,
>> Louis (wishing he had brought home the EMF book from the office).
>>
>> Ed Merks wrote:
>>> Louis,
>>>
>>> Page 454 to 456 of the EMF book has details. Generally by default you
>>> get /<index-in-resource>{/@<feature-name>[.<index>]} which represents
>>> the containment reference path to the object starting at the root of
>>> the resource.
>>>
>>>
>>> Louis Rose wrote:
>>>> Hi,
>>>>
>>>> Does anyone know where I can find information on the syntax for URI
>>>> fragments used by EMF to specify references? In particular, I'd like
>>>> to know the syntax I may encounter when parsing XMI serialised by EMF.
>>>>
>>>> Many thanks in advance.
>>>>
>>>> Cheers,
>>>> Louis.
>>>>
>>>> ----
>>>> Louis Rose
>>>> Research Student
>>>> Department of Computer Science,
>>>> University of York,
>>>> Heslington, York, YO10 5DD, United Kingdom.
>>>> +44 1904 434762
>>>> Twitter: @louismrose
Previous Topic:[CDO] CDOLock.isObjectLockedByOthers() enhancement proposal
Next Topic:Resource null
Goto Forum:
  


Current Time: Wed Apr 24 19:16:39 GMT 2024

Powered by FUDForum. Page generated in 0.03703 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top