[Mulgara-general] Rules and SKOS

Brian Sletten brian at bosatsu.net
Mon Sep 29 00:04:19 UTC 2008


Paul was very gracious in helping me prepare for a DevX article I am  
writing on using SKOS to categorize services in a SOA. I think this is  
going to be a useful bit of code for larger resource-oriented  
infrastructures. We have a consistent addressing scheme to link our  
data, our services, our documents and our concepts. We have a standard  
metadata model for describing all of these. Now, we can categorize  
services trivially and discover services of interest based on  
arbitrary portions of the taxonomy.

For those interested in playing around, here is basically all it  
takes. The soa-skos taxonomy is a toy service taxonomy for printing  
services:

create <devx:services>;
create <devx:services-instances>;
create <devx:rules>;
create <devx:services-ent>;

load <http://zepheira.com/examples/soa-skos> into <devx:services>;

insert <http://server1/print> <devx:category> <http://zepheira.com/examples/soa-skos#ColorLaserPrintingService 
 > into <devx:services-instances>;
insert <http://server2/print> <devx:category> <http://zepheira.com/examples/soa-skos#BWLaserPrintingService 
 > into <devx:services-instances>;

load <http://zepheira.com/examples/skos-rules.rdf> into <devx:rules>;

apply <devx:rules> to <devx:services> <devx:services-ent>;

select $instance from <devx:services-instances> where $instance  
<devx:category> $service and (<http://zepheira.com/examples/soa-skos#LaserPrintingService 
 > <skos:narrowerTransitive> $service in <devx:services-ent> or  
$service <mulgara:is> <http://zepheira.com/examples/soa-skos#LaserPrintingService 
 >);

Results:

instance
http://server1/print
http://server2/print


On Sep 28, 2008, at 7:26 PM, Paul Gearon wrote:

> I've recently had to do a little bit of work with SKOS and Rules, and
> I thought it might be worth pointing out to people.
>
> You'll find a description on how to use rules in the Wiki at:
>  http://mulgara.org/trac/wiki/Rules
>
> I've also included a file for partial SKOS entailments (partial,
> because I don't have collection support yet). This is attached to and
> described in:
>  http://mulgara.org/trac/wiki/SKOS
>
> The SKOS rules may be informative for anyone wanting to use SKOS, or
> rules in general. Note that almost all the work is done in the 6 rules
> at the bottom of the file. Everything else is done with OWL
> vocabulary.  (There are 4 extra rules, some of which may be redundant,
> plus a 5th that is necessary due to a strange requirement in SKOS, but
> each of these are exceptional, rather than the norm).
>
> Regards,
> Paul
> _______________________________________________
> Mulgara-general mailing list
> Mulgara-general at mulgara.org
> http://mulgara.org/mailman/listinfo/mulgara-general

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mulgara.org/pipermail/mulgara-general/attachments/20080928/e839e9bc/attachment.htm>


More information about the Mulgara-general mailing list