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

Serialize ACSet presentations to JSON with JSON Schema validation #648

Closed
aaguinal opened this issue Jul 26, 2022 · 0 comments · Fixed by #649
Closed

Serialize ACSet presentations to JSON with JSON Schema validation #648

aaguinal opened this issue Jul 26, 2022 · 0 comments · Fixed by #649
Assignees

Comments

@aaguinal
Copy link
Contributor

Add the ability to serialize and deserialize ACSet presentations, such as SchWeightedGraph, SchGraph, etc. using a JSON format similar to the one shown below:

{
    "version": {
        "ACSetSchema": "0.0.1",
        "Catlab":  "0.13.0"
    },
    "Ob": [
        {
            "name": "V"
        },
        {
            "name": "E"
        }
    ],
    "Hom": [
        {
            "name": "src",
            "domain": "E",
            "codomain": "V"
        },
        {
            "name": "tgt",
            "domain": "E",
            "codomain": "V"
        }
    ],
    "Attr": [
        {
            "name": "weight",
            "domain": "E",
            "codomain": "Weight"
        }
    ],
    "AttrType": [
        {
            "name": "Weight"
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants