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

Data-driven extractions #290

Open grechaw opened 7 years ago

grechaw commented 7 years ago

As I'm considering extraction template generation, it seems worthwhile to consider using the vocabulary to drive decisions about how the model is exposed in templates:

"PersonType" : {
   "properties" ...,
   "tripleProperties" : [ 'p1'. 'p2' ],
   "columnProperties" : ['p1', 'p2'] 

In this proposal, 'tripleProperties' would be exposed as RDF properties, using the model's IRI for the given property and it's declared type.

Currently, columns are generated for all properties. The only property used in a triple is the primary key, which is used to generate the instance's subject iri.

grechaw commented 7 years ago

To be considered for 9.0-3 designs