Hello,
I'm using ontologies (OWL) to store information about products
E.g. let's say I've got (in some general notation):
<man trousers> subClassOf <man wear>
<t-shirt> subClassOf <man wear>
<man wear> hasProperty <sizeOf>
I'm looking for a query language (RDQL?, SPARQL?), to ask DB engine
(Jena?) for <man wear> of XXL size. In response I'm supposing to get
some instances of <man trousers> of such size, which in fact means this
language will make some inference about <sizeOf> property. Do you know
any such language?
TIA,
Maciej
[ comp.ai is moderated. To submit, just post and be patient, or if ]
[ that fails mail your article to <comp-ai@moderators.isc.org>, and ]
[ ask your news administrator to fix the problems with your system. ]
Marc Dzaebel - 15 Mar 2006 00:46 GMT
Hi Maciej,
> I'm looking for a query language (RDQL?, SPARQL?), to ask DB engine
> (Jena?) for <man wear> of XXL size. In response I'm supposing to get
> some instances of <man trousers> of such size, which in fact means this
> language will make some inference about <sizeOf> property. Do you know
> any such language?
If you use Protege with the OWL-plugin, the query could be a comfortable
class definition with logic axioms which is reusable. An attached reasoner
will then infer, which instances satisfy the conditions. However, a
SPARQL-plugin is available too and you have many other possibilities with
the Protege-API, because the Protege-Framestore is optimized for such
queries. The Algernon-plugin works even with plain Protege.
Marc
See http://protege.stanford.edu/plugins/owl/sparql.html
[ comp.ai is moderated. To submit, just post and be patient, or if ]
[ that fails mail your article to <comp-ai@moderators.isc.org>, and ]
[ ask your news administrator to fix the problems with your system. ]