Skip to content

Conversation

MaxLatey
Copy link

@MaxLatey MaxLatey commented Nov 27, 2024

Initial proposal for YAML LPG schema including both simple and extensible serialisations.

TODOs

  • @gitbuda Take the ideas from the "hybrid schema" spec because it's aligned with the "unique-label" schema spec (exactly one label per node type)
  • How to represent edges that go between multiple pairs of node types (in both versions) it's how to make the syntax nicer?

gitbuda and others added 2 commits November 21, 2024 19:23
Initial proposal for YAML LGP schema including simple and extensible versions.
@gitbuda
Copy link
Member

gitbuda commented Nov 28, 2024

Review is WIP ⏳ + Let's try talking more about higher-level rules, e.g., how to incorporate https://en.wikipedia.org/wiki/F-logic 🤔

@@ -0,0 +1,129 @@
# LPG YAML Schema Options - examples

# Version 1 - simple
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple version is for interoperability (sharing info between different domains, e.g., business and research)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

USA-CASE: Share the understanding as quickly as possible

---
Nodes:
Person:
attributes:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How to add "label aliases" (under Person or attributes)?

mandatory: BOOLEAN
indexed: BOOLEAN
default: STRING
extension:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be anything, such as information about the information or metadata about the label node.

default: STRING
extension:
- count: INT
- filling_factor: FLOAT
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

N/A

- multiedge: BOOLEAN
- from_node_type: Person
- to_node_type: Address
attributes:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"properties are the properties of the edge type"
"attributes are properties of the edges"

properties (properties of the edges) vs attributes

type: STRING
mandatory: BOOLEAN
indexed: BOOLEAN
default: STRING
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the type of the default value?

attributes:
- id:
type: STRING
mandatory: BOOLEAN
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unique: BOOLEAN is an extension on the attribute

@CLAassistant
Copy link

CLAassistant commented Apr 7, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
0 out of 2 committers have signed the CLA.

❌ gitbuda
❌ mentat10191
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants