mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-18 01:31:02 +02:00
* 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
16 lines
267 B
Python
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()
|
|
|