Web service API: Querying against multiple properties possible?
Last Post 15 Aug 2014 01:27 PM by jbowie. 1 Replies.
Author Messages
kongarUser is Offline
New Member
New Member
Posts:2


--
15 Aug 2014 12:29 PM
    Hi,

    Using the web service API, is there any way I can combine constraints when trying to search for Concepts? As in, can I do a single call and get all Concepts of a given namespace that has property1=value1 and property2=value2? It will be even better if I can query against associations as well.

    Thanks!

    jbowieUser is Offline
    Basic Member
    Basic Member
    Posts:110


    --
    15 Aug 2014 01:27 PM
    The DTS API (both Java and web service) does not currently support "compound" constraints. This would have to be performed in client code.

    If you have relatively static criteria, subsets can be used for this case. Create a subset expression with the necessary constraints and build the subset. Then conforming concepts can be extracted (or tested for membership) in a single web service call.

    Good luck!


    ---