marklogic / entity-services

Data modeling and code scaffolding for data integration in MarkLogic
https://docs.marklogic.com/guide/entity-services
Apache License 2.0
7 stars 10 forks source link

Assemble model descriptors from graph #188

Open jmakeig opened 8 years ago

jmakeig commented 8 years ago

As a data steward, I want to be able to organize my entities into descriptor docs as I see fit, for example, to group related entities into their own descriptor documents or separate entities into one descriptor per entity or to have just one descriptor doc for all entities. Each grouping should distill into the same entity type graph. Today, the downstream artifact generators assume one in-memory map structure that represents the entire type model. This is a direct mapping from a single descriptor doc that represents all entities. It should be possible to assemble the in-memory descriptors needed from code gen regardless of how the input entity definitions are grouped.

One implementation idea is to provide a function that would operate on the triples to assemble a map/object. Someone extending the model would also use this same technique to build custom in-memory representations of their extensions.

Some things to consider:

jmakeig commented 8 years ago

@grechaw @damonfeldman @paxtonhare

grechaw commented 7 years ago

I consider this a high-priority item for vnext. Creating entity models out of external, say, RDF-based models requires a method for making models out of triples. Just made #241 as a recipe that would depend on this functionality.

grechaw commented 7 years ago

needs a little design spec/proposal next

grechaw commented 7 years ago

Added labels for BT and planning purposes. I'll have some prototyping to show when we return from London, or before.