MCPcopy Create free account
hub / github.com/cosdata/cosdata / entity_inference

Function entity_inference

org/src/cosql.rs:468–487  ·  view source on GitHub ↗
(input: &str)

Source from the content-addressed store, hash-verified

466}
467
468fn 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
489fn relationship_inference(input: &str) -> IResult<&str, Inference> {
490 map(

Callers

nothing calls this directly

Calls 1

wsFunction · 0.70

Tested by

no test coverage detected