trustgraph/trustgraph-base/trustgraph/schema/metadata.py
cybermaggedon 7954e863cc
Feature: document metadata (#123)
* Rework metadata structure in processing messages to be a subgraph
* Add subgraph creation for tg-load-pdf and tg-load-text based on command-line passing of doc attributes
* Document metadata is added to knowledge graph with subjectOf linkage to extracted entities
2024-10-23 18:04:04 +01:00

16 lines
267 B
Python

from pulsar.schema import Record, String, Array
from . types import Triple
class Metadata(Record):
# Source identifier
id = String()
# Subgraph
metadata = Array(Triple())
# Collection management
user = String()
collection = String()