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

Improve data structure for pathway relationships #52

Open
timothyfcook opened this issue Aug 21, 2015 · 2 comments
Open

Improve data structure for pathway relationships #52

timothyfcook opened this issue Aug 21, 2015 · 2 comments

Comments

@timothyfcook
Copy link
Contributor

So that parents can have multiple children and children can have multiple parents.

This is sort of currently possible, but it's messy.

One child can have two parents (if they both list the child in their comes_before property) but one child can only reference one parent (because the child's comes_after property only contains a single reference).

@timothyfcook
Copy link
Contributor Author

might be something like this:

{
  "on_pathways": [
    {
      "name": "Cooking and Eating",
      "name-slug": "cooking-and-eating",
      "before_this": ["resource-example-a", "resource-example-b", "resource-example-c"],
      "after_this": ["resource-example-e"]
    }

    {
      "name": "Composting",
      "name-slug": "composting",
      "before_this": ["resource-example-u", "resource-example-v"],
      "after_this": ["resource-example-y", "resource-example-z"]
    }
  ],
}

@timothyfcook
Copy link
Contributor Author

This could possibly be addressed by the work be done to define a standard pathways data spec: 1EdTech/openbadges-discussion#24

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

No branches or pull requests

1 participant