Hello,
We discussed with Anne and Mathieu about the project moose on the web and
how would we search for an entity in a model by interacting with the moose
server implementing REST API.
- The first API request to the server is allModels and then the server
responds with the list of the moose models (JSON data). Once the user has
got a list of model, how can one choose the model one wants to explore. One
can select a moose model based on: i) its name, ii) its position in the
collection returned by the server (1 for first, 2 for second, etc.) or iii)
its mooseID. The name of a moose model is not unique so it does not help
choosing the correct unique model. For the time, we choose the position in
the collection returned by the server but if we have huge list, the
position is difficult to remember. mooseID does not have semantic meaning.
A meaningful solution would be to make all moose models have a unique name.
What do you think?
- Generalizing the search to all the entities in the model, how do you
select an Entity with its name in the model knowing that the names are not
unique (there can be two "add:" in a model). Scoping information can help
and we have mooseName that concatenates the name with the scoping
information of an entity. So a method named get() in java with class and
package information appended looks like "java.utils::Scanner.get()". Is the
name uniqueness guaranteed with this mechanism?
We had a discussion regarding the interaction with the server, I'll send a
separate mail for it.
Usman