Ifd:removeParentFromConcept
From dev.ifd-library.org
API version 2
public IfdConceptInRelationship [] removeParentFromConcept ( String concept_guid, IfdConceptInRelationship parent, String rel_context_guid String session_id ) throws IfdServerException
Removes the parent from the concepts. This do not delete the parent from the library, it just removes it from the concept.
Input:
-
string concept_guid- The global unique identifier for concept from which we want to remove the child. -
IfdConceptInRelationship parent- The parent we want to remove from the concept. -
>string rel_context_guidThe global unique identifier of the related context. - session_id - The session id for the active user
Returns:
- IfdConceptInRelationship - The concepts after the child has been removed.
Implementation:
return removeChildFromConcept(parent, concept, session_id);
API version 3
public IfdConceptInRelationship [] removeParentFromConcept ( String session_id, String concept_guid, IfdConceptInRelationship parent, String rel_context_guid) throws IfdServerException
EXPRESS Heading
QUERY FUNCTION removeParentFromConcept(
concept_guid : STRING;
parent : IfdConceptInRelationship ;
rel_context_guid : STRING) : LIST OF IfdConceptInRelationship;
The function removes relationship between two specified concepts.
Input:
- session_id - The session id for the active user
-
string concept_guid- global unique id of the child concept;
IfdConceptInRelationship parent - structure with parent relationship specification:
- base.guid – global unique id of the parent concept, it shall be instantiated in target population before call to function;
- relationship_type – type of the relationship to be removed
- context_guids – ignored in the input;
-
string rel_context_guidglobal unique id of the relationship context
Returns:
- IfdConceptInRelationship - The rest of parents in the same context and relationship type for the child concept, after the removing.
Difference against v.2.00
- (132) In v.2.00 the function had an error in work with 'GROUPS' – removing all relationships where child is counted (not only related to the specified parent);
- (133) In v.2.00 the function did not manage 'ASSIGNS_PROPERTY_WITH_VALUES' relationships;
- (134) In v.2.00 the function interpreted relationships 'SEQUENCES' in opposite way to ISO12006-3 specifications (child/parent direction);
- (135) In v.2.00 the function returned all parents in scope of specified context
Comments: Talk:Ifd:removeParentFromConcept