dbTalk Databases Forums  

Clues on modeling a really simple concept

comp.databases.theory comp.databases.theory


Discuss Clues on modeling a really simple concept in the comp.databases.theory forum.



Reply
 
Thread Tools Display Modes
  #21  
Old   
Andy Dingley
 
Posts: n/a

Default Re: Clues on modeling a really simple concept - 05-13-2009 , 06:34 AM






On 6 Apr, 21:01, Spike <fau... (AT) gmail (DOT) com> wrote:

Quote:
Both galleries and pictures belongs to a single user, but a single
picture can be used on many galleries.

users --> pictures --> pictures_to_galleries --> galleries

My question is: Should i add a relationship between galleries and
users?
Yes, because the role in which a picture "belongs" to a user and a
gallery "belongs" to a user is likely to be entirely different, thus
not modelled through this transitive relation.

If pictures are shareable by galleries, but pictures only "belong" to
a single user, then I can only assume from this that "belong" here
means some sort of creator or IP owner role. That's sensible, but
quite different from the "inclusion in a set" role with galleries.

On the whole, I'd suggest ignoring the database model for the moment
and focussing on image metadata, probably beginning with a look at
Dublin Core. Once you have a clearer metadata model in your mind, you
can think about RDBMS schema to represent it.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.