ontocast.tool.facts_validation.connectivity¶
How the aggregated facts hang together.
:func:facts_connectivity counts the connected components of the served
graph and the instances linked to nothing; :func:instance_links and
:func:links_lost count the links the gate's repairs removed.
Attributes¶
__all__ = ['FactsConnectivity', 'facts_connectivity', 'instance_links', 'links_lost']
module-attribute
¶
Classes¶
FactsConnectivity
¶
Bases: BaseModel
How the instances of a facts graph hang together.
Source code in ontocast/tool/facts_validation/connectivity.py
Functions:¶
facts_connectivity(graph, fact_namespaces, document=None)
¶
Count the connected components and isolated instances of graph.
Instances (:func:~ontocast.tool.facts_validation.terms.fact_instances)
are joined by any link (:func:instance_links' notion), directly or
through blank nodes; the document node, when given, is not an instance
but joins what it links (cited works, metadata), as a reader of the graph
sees it. Provenance reifiers and chunk nodes join nothing.
Source code in ontocast/tool/facts_validation/connectivity.py
instance_links(graph, fact_namespaces)
¶
Triples that link an instance (or a blank node) to another node.
Typing, owl:sameAs and the pipeline's provenance scaffolding are not
links, and neither is a literal value. A domain property is a link in any
vocabulary, PROV-O included.
Source code in ontocast/tool/facts_validation/connectivity.py
links_lost(before, after)
¶
How many of the links before the graph after no longer holds.