[Mulgara-dev] simple app for functional groupings

Paul Gearon gearon at ieee.org
Wed Mar 12 16:40:58 UTC 2008


On Mar 10, 2008, at 7:49 PM, William Mills wrote:

> I have a relatively simple app I want to play with in Mulgara, which  
> is doing functional groupings of machines.  In it I have:
>
> roles:      a named grouping of other roles, machine expressions,  
> and machine names.
>
> machine expressions:     a regexp like string used to define a list  
> of hostnames, i.e. www{1-4,6}.mulgara.org whih identifies 5 hosts.
>
> machine names:                a simple machine name like  
> www1.mulgara.org
>
> What is the best (if there is one)  RDF way to structure this so  
> that I can easily get
>
> 1)    the short definition of a role, i.e. the minimal set of roles,  
> machine expressions, and machine names
>
> 2)    the full list of host names contained by a role
>
> 3)    for a given host get the list of roles it is a member of.
>
> There are several ways to structure this, and I'm not sure of the  
> pitfalls yet.

The main thing you want to do is to make sure you have a relationship  
(ie. a predicate) for everything you want to search on.  For instance,  
item 3 would want some sort of memberOf property to each role a host  
belongs to.  It doesn't matter which direction it's pointing in, so  
you could have an inverse predicate like hasMember instead, with no  
issues.

Point 2 will require another sort of membership predicate between  
roles and their members.  And point 1 I can't say, because I don't  
really understand the question.  :-)

Regards,
Paul



More information about the Mulgara-dev mailing list