| 466 | } |
| 467 | |
| 468 | fn entity_inference(input: &str) -> IResult<&str, Inference> { |
| 469 | map( |
| 470 | tuple(( |
| 471 | ws(char('$')), |
| 472 | ws(identifier), |
| 473 | ws(tag("isa")), |
| 474 | ws(identifier), |
| 475 | delimited( |
| 476 | ws(char('(')), |
| 477 | separated_list0(ws(char(',')), attribute_value), |
| 478 | ws(char(')')), |
| 479 | ), |
| 480 | )), |
| 481 | |(_, variable, _, entity_type, attributes)| Inference::EntityInference { |
| 482 | variable: variable.to_string(), |
| 483 | entity_type: entity_type.to_string(), |
| 484 | attributes, |
| 485 | }, |
| 486 | )(input) |
| 487 | } |
| 488 | |
| 489 | fn relationship_inference(input: &str) -> IResult<&str, Inference> { |
| 490 | map( |