Ticket #807 (closed Defect: fixed)

Opened 9 years ago

Last modified 9 years ago

dm4-core api: no method to fetch an association by its uri

Reported by: Malte Owned by: jri
Priority: Minor Milestone: Release 4.7
Component: DeepaMehta Standard Distribution Version: 4.6.1
Keywords: Cc:
Complexity: 3 Area:
Module: deepamehta-core


.. currently i cannot find a method which allows me to load/fetch an assoc by its uri.

Would be neat to have this functionality.

Change History

comment:1 Changed 9 years ago by jri

  • Status changed from new to accepted

comment:2 Changed 9 years ago by Jörg Richter <jri@…>

In b0adf8631e7ae6933f0e16dc38adaf32dd0fb7dc/deepamehta:

Core API: get associations by key/value (#807).

2 new methods in DeepaMehtaService:

Association getAssociation(String key, SimpleValue value);
List<Association> getAssociations(String key, SimpleValue value);


GET /core/assoc/by_value/{key}/{value}
GET /core/assoc/multi/by_value/{key}/{value}

The semantics is fully analogue to the corresponding getTopic[s] methods.
In particular you can set "uri" as key to fetch an association by its URI.

Thank you, Malte, for reporting!

See #807.

comment:3 Changed 9 years ago by jri

  • Status changed from accepted to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.