def get_equivalent(self, functional_equivalent, form=None): return resolve_slices( functional_equivalent, self, ('FunctionalEquivalentTable', "http://cldf.clld.org/v1.0/terms.rdf#segmentSlice"), ('FormTable', "http://cldf.clld.org/v1.0/terms.rdf#segments"), 'Form_ID', target_row=form)
def get_subsequence(self, cognate, form=None): """ Compute the subsequence of the morphemes of a form which is specified in a partial cognate assignment. :param partial_cognate: :return: """ return resolve_slices( cognate, self, ('CognateTable', "http://cldf.clld.org/v1.0/terms.rdf#segmentSlice"), ('FormTable', "http://cldf.clld.org/v1.0/terms.rdf#segments"), 'Form_ID', target_row=form)