equal
deleted
inserted
replaced
437 class match_rtype(ExpectedValuePredicate): |
437 class match_rtype(ExpectedValuePredicate): |
438 """accept if the relation type is found in expected ones. Optional |
438 """accept if the relation type is found in expected ones. Optional |
439 named parameters `frometypes` and `toetypes` can be used to restrict |
439 named parameters `frometypes` and `toetypes` can be used to restrict |
440 target subject and/or object entity types of the relation. |
440 target subject and/or object entity types of the relation. |
441 |
441 |
442 :param \*expected: possible relation types |
442 :param *expected: possible relation types |
443 :param frometypes: candidate entity types as subject of relation |
443 :param frometypes: candidate entity types as subject of relation |
444 :param toetypes: candidate entity types as object of relation |
444 :param toetypes: candidate entity types as object of relation |
445 """ |
445 """ |
446 def __init__(self, *expected, **more): |
446 def __init__(self, *expected, **more): |
447 self.expected = expected |
447 self.expected = expected |