Ifd:getParentConcepts
From dev.ifd-library.org
IfdConceptInRelationship[] getParentConcepts(
String concept_guid,
String[] context_guids,
IfdRelationshipTypeEnum [] relationship_types,
IfdLanguage[] languages,
String session_id)
throws Ifd:IfdServerException
Express heading
QUERY_FUNCTION getParentConcepts (
concept_guid : STRING;
context_guids : LIST OF STRING;
relationship_types : LIST OF STRING;
languages : LIST OF IfdLanguage) : LIST OF IfdConceptInRelationship;
Function to list the parents (relating concepts) of the given concept, constrained by the given array of contexts, the given array of relationship_types and the given array of languages. The parents are returned as an array of IfdConceptInRelationship
Input:
-
string concept_guid- the concept_guid for which we want the parents -
string context_guids[]- array of context_guids in which you want to constrain the results -
IfdRelationshipTypeEnum relationship_types[]- array of relationships from enumeration of the selected IfdRelationshipTypeEnum -
IfdLanguage languages[]- array of languages in which you want to constrain the results -
string session_id- the session id for the current user
Return:
-
IfdConceptInRelationship[]- an array containing the requested parents
Comments: -The Concept parameter should be the guid of the Concept, not the Concept itself. (resolved) -The Context parameter is not clear, what is it used for, what content might it have? I suggest to leave it out. (declined) -The language parameter is not needed, I suggest to leave it out. (declined) -An additional parameter is needed for filtering between Definition and Specification. For this I suggest to use IfdPropertyTypeEnum. (not relevant here) -The function should only return a list of guids. (declined) -The function should not throw an exception when returning nothing. (resolved) Kees Woestenenk