On Mar 28, 2:28 am, Daniel <unagimiy...@gmail.com> wrote:
> Hi all,
>
> I'd appreciate it if you could help me out with something.
>
> I am trying to build a way to use faceted browsing through a database
> of biological samples.
>
> what I want to model is this:
>
> Sample 1
>      race = white
>      age = adult
>      gene = XCFR2
>      disease = cancer
> Sample 2
>      race = white
>      age = child
>      gene = 343GS
>      disease = stroke
>      date = 2010
>      country = Netherlands
>
> So each sample could contain many tags.  And each tag should have one
> value at a time.  A tag is a category (like race, age, gene, disease),
> and a value is for lack of a better word, the choice or free text that
> is entered to the right of the ='s sign.  TAG = race, then value =
> white
>
> So  does each sample have a many to many relationship with tags?  And
> then tags have a many to many relationship with values?
>
> Each sample can have many tags (race, age, gene, disease, ...etc).
> Each tag can have many diff values (race could be white, black,
> hispanic, asian, etc...) BUT only one at a time
> Each value should be mapped to one tag at a time.  But I guess a value
> could be reused, like the value XCFR2 could be a valid in gene = XCFR2
> and discovered_information = XCFR2.
>
> I think I'm making it too hard, but if someone can help, I would be
> happy

Perhaps you want some kind of machinetags implementation? In other
words, tag a sample with things like "race:white, gene:XCFR2" and so
on.

I've not used it, but there is a branch of django-tagging that
supports machinetags here:
https://code.launchpad.net/~gregor-muellegger/django-tagging/machinetags/
--
DR.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to