mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 16:36:21 +02:00
Schema structure refactor (#451)
* Write schema refactor spec * Implemented schema refactor spec
This commit is contained in:
parent
f4733021c5
commit
5de56c5dbc
27 changed files with 370 additions and 223 deletions
16
trustgraph-base/trustgraph/schema/core/metadata.py
Normal file
16
trustgraph-base/trustgraph/schema/core/metadata.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
|
||||
from pulsar.schema import Record, String, Array
|
||||
from .primitives import Triple
|
||||
|
||||
class Metadata(Record):
|
||||
|
||||
# Source identifier
|
||||
id = String()
|
||||
|
||||
# Subgraph
|
||||
metadata = Array(Triple())
|
||||
|
||||
# Collection management
|
||||
user = String()
|
||||
collection = String()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue