bergie / VIE

Semantic Interaction Framework for JavaScript
http://viejs.org/
MIT License
303 stars 56 forks source link

Reading collections yields extra type "owl:Thing" #152

Open cwygoda opened 11 years ago

cwygoda commented 11 years ago

Reading collections yields an extra type "owl:Thing" for the children and the parent entities. The children are inserted into the main collection with subject only first (https://github.com/bergie/VIE/blob/master/src/service/RdfaService.js#L178), yielding the "owl:Thing" type and then later fully blown up when they are read themselves (https://github.com/bergie/VIE/blob/master/src/service/RdfaService.js#L188).

This for example breaks create.js' Type-based editor setup: If in the with-type example one quote is already put into the HTML file, the citation property is given the full editor instead of the simple one.

Or is it me having an great misunderstanding?

LaKrue commented 11 years ago

maybe related my issue 156 (Deep relations: wrong type behavior). Both have a different behavior between initial HTML source and generated DOM by createjs in common.

Did you find a solution or workaround @arsgeografica ?

bergie commented 11 years ago

If you have the time, would be great to get some unit tests to demonstrate this. Makes fixing easier :-)