Ticket #273 (closed Enhancement: fixed)

Opened 8 years ago

Last modified 5 years ago

Core API: retrieve topic by URI

Reported by: jri Owned by: jri
Priority: Major Milestone:
Component: DeepaMehta Standard Distribution Version: 4.0.11
Keywords: Cc: dgf, Malte
Complexity: 3 Area: Application Framework / API
Module: deepamehta-core

Description

Currently this can by achieved by

getTopic("uri", new SimpleValue?("my.uri.here"), ...)

But this is a little surprising.

A getTopicByUri() convenience method would be better.

Change History

comment:1 Changed 8 years ago by jri

  • Status changed from new to accepted

comment:2 Changed 8 years ago by jri

  • Milestone changed from Release 4.1 to Release 4.2

comment:3 Changed 7 years ago by jri

  • Milestone Release 4.2 deleted

comment:4 Changed 5 years ago by jri

  • Cc Malte added

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

  • Status changed from accepted to closed
  • Resolution set to fixed

In 41daf510a51346c6e37217197afe9cb281dc7f45/deepamehta:

Core API: add getTopicByUri() (#273).

1 new method in Core service:

Topic getTopicByUri(String uri)

This is a convenience method which basically calls

getTopic("uri", new SimpleValue(uri))

If no such topic is found, null is returned.

Close #273.

comment:6 Changed 5 years ago by Jörg Richter <jri@…>

In f3dc84a48ecfb8fc1d5285fdaaaf06b5ac98a508/deepamehta:

Webservice: getTopicByUri() is RESTful (#273).

GET /core/topic/by_uri/{uri}

1 new method is Webclient's rest_client.js:

dm4c.restc.get_topic_by_uri(uri, include_childs, include_assoc_childs)

See #273.

Note: See TracTickets for help on using tickets.