Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions crates/ogar-action-handler/tests/ontology_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@ use std::path::Path;
use lance_graph_ontology::namespace::SchemaKind;
use ogar_action_handler::ogit::{OgitTables, Table, TypeId, entity_curies, load_registry};

/// Entities OGAR's reader returns and the cache misses, measured on
/// AdaWorldAPI/OGIT `master` at `2315167`.
const ONLY_IN_THE_TABLES: [&str; 4] = [
"ogit.Accounting:FiscalJurisdiction",
"ogit.PTF:Dummy",
"ogit.PTF:HiroTopology",
"ogit.PTF:Test",
/// Entities OGAR's reader returns and the cache misses. All three are
/// subclasses of `ogit.Healthcare:Assessment`, not direct subclasses of
/// `ogit:Entity`; OGAR's reader takes any class under an `entities/`
/// directory, the cache's `ttl_parse` only a direct `rdfs:subClassOf
/// ogit:Entity`. Measured on the AdaWorldAPI/OGIT branch that declares the
/// prefixes FiscalJurisdiction.ttl and the NTO/PTF entities lacked, which
/// removed the four entries this list used to hold.
const ONLY_IN_THE_TABLES: [&str; 3] = [
"ogit.Healthcare:HistologicAssessment",
"ogit.Healthcare:MriAssessment",
"ogit.Healthcare:SonographicAssessment",
];

#[test]
Expand Down
4 changes: 3 additions & 1 deletion crates/ogar-from-schema/src/ttl_emit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,9 @@ mod tests {
fn nine_domains_lift_surface_round_trip() {
for (domain, floor) in [
("Transport", 27),
("Accounting", 36),
// 33 since AdaWorldAPI/OGIT#11 removed three unreferenced
// Accounting files (two verbs, one attribute).
("Accounting", 33),
("SalesDistribution", 23),
("Credit", 21),
("Cost", 5),
Expand Down
Loading