MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / graph

Function graph

atomic-core/tests/kg_ontology.rs:9–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7use std::collections::BTreeSet;
8
9fn graph() -> Vec<Triple> {
10 TurtleParser::new()
11 .for_reader(TTL.as_bytes())
12 .collect::<Result<_, _>>()
13 .unwrap()
14}
15
16fn objects<'a>(graph: &'a [Triple], subject: &str, predicate: &str) -> BTreeSet<&'a str> {
17 graph

Calls 2

unwrapMethod · 0.45
as_bytesMethod · 0.45

Tested by

no test coverage detected