Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add yaml v1 #15

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add yaml v1 #15

wants to merge 2 commits into from

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

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.

3 participants