ontocast.onto.embedding_policy¶
Classes¶
Functions:¶
strip_provenance_triples_for_embedding(graph)
¶
Return a copy of graph suitable for embedding generation.
Provenance scaffolding (chunk nodes, reifiers) and the document node would dominate embedding neighborhoods and make retrieval match document provenance rather than asserted facts, so every triple touching them is dropped. Domain triples stay whatever their vocabulary: an ontology's own PROV-O or Dublin Core annotations are text worth embedding.