/** * A symmetric relationship is one whose type is symmetric (i.e. is it's own * inverse. An example of a symmetric relationship is synonomy. */ private RelationshipList findSymmetricRelationships( Synset sourceSynset, Synset targetSynset, PointerType type) throws JWNLException { return findSymmetricRelationships(sourceSynset, targetSynset, type, DEFAULT_SYMMETRIC_SEARCH_DEPTH); }
/** * Find all relationships of type <var>type</var> between <var>sourceSynset</var> and <var>targetSynset</var>. * This method creates a symmetric or asymmetric relationship based on whether <var>type</var> is symmetric. */ public RelationshipList findRelationships( Synset sourceSynset, Synset targetSynset, PointerType type) throws JWNLException { return (type.isSymmetric()) ? findSymmetricRelationships(sourceSynset, targetSynset, type) : findAsymmetricRelationships(sourceSynset, targetSynset, type); }
/** * Find all relationships of type <var>type</var> between <var>sourceSynset</var> and <var>targetSynset</var> * to depth <var>depth</var>. This method creates a symmetric or asymmetric relationship based on * whether <var>type</var> is symmetric. */ public RelationshipList findRelationships( Synset sourceSynset, Synset targetSynset, PointerType type, int depth) throws JWNLException { return (type.isSymmetric()) ? findSymmetricRelationships(sourceSynset, targetSynset, type, depth) : findAsymmetricRelationships(sourceSynset, targetSynset, type, depth); }