ontocast.onto.scaffolding¶
The nodes OntoCast mints around extracted facts.
The pipeline records where each fact came from with standard vocabulary:
content-unit (chunk) nodes typed prov:Entity and schema:Text, and one
reifier per asserted triple (rdf:reifies in RDF 1.2, rdf:Statement in
the classic export) pointing at its chunks with prov:wasDerivedFrom.
Scaffolding is identified by these nodes, never by namespace: a facts graph may use PROV-O, schema.org or Dublin Core as domain vocabulary, and those triples are facts like any other. The document node is not scaffolding: its title, date and source are facts about the document.
Attributes¶
__all__ = ['chunk_nodes', 'document_nodes', 'is_scaffolding', 'reifier_nodes', 'scaffolding_nodes']
module-attribute
¶
Functions:¶
chunk_nodes(graph)
¶
Content-unit nodes: typed both prov:Entity and schema:Text.
Source code in ontocast/onto/scaffolding.py
document_nodes(graph)
¶
The document node the pipeline mints: typed prov:Entity and foaf:Document.
is_scaffolding(triple, nodes)
¶
True when triple describes, or points at, a scaffolding node.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
triple
|
tuple[Node, Node, Node]
|
An |
required |
nodes
|
set[Node]
|
:func: |
required |
Source code in ontocast/onto/scaffolding.py
reifier_nodes(graph)
¶
Statement reifiers, in either provenance profile.