bergie / VIE

Semantic Interaction Framework for JavaScript

Home Page:http://viejs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Point entity.collection to entity's original collection

bergie opened this issue · comments

In Backbone, Models keep a reference to their collection via model.collection property. This also happens with VIE, but since entities often belong to more than one collection, this is less useful.

For consistency, the model.collection property should always point to the originating collection for the entity, i.e the set of enhancements returned by StanbolService, or the rel parsed by RdfaService.