Re: [Question] How to define class instances by intention, in OWL (with a SPARQL query)

My knowledge of OWL is not good enough to answer the real quastion,  
but you could at least do

       CONSTRUCT { ?x a :BirthPlaceOf19CRomanticComposer }
       WHERE
           {
           ?c  dbpprop:birthPlace  ?x.
           ?c a <http://dbpedia.org/class/yago/RomanticComposers>.
           ?c  dbpprop:birth  ?b.
           ?c  dbpprop:death ?d.
           FILTER (?b > 1800)
           FILTER (?d <1900)
            }

and import the resulting graph. There will be some RIF equivalent too.

- Steve

On 4 Aug 2009, at 14:29, Pierre-Yves Vandenbussche wrote:

>
> Hello,
>
> I'm currently working on dynamic collection definition and try to  
> express it in OWL format.
>
> I would like to specify a class for which all instances are defined  
> in intention by a query. The only way I found is to put a property  
> "query" which has a literal value and contained the query.
> As far as i know, this representation, by the mean of OWL  
> restriction, is not possible (i may be wrong) .
>
> Example : The class of native places of 19th century romantic  
> composers, as retrieved by the following SPARQL Query on dbpedia
>
>       SELECT ?x
>       WHERE
>           {
>           ?c  dbpprop:birthPlace  ?x.
>           ?c a <http://dbpedia.org/class/yago/RomanticComposers>.
>           ?c  dbpprop:birth  ?b.
>           ?c  dbpprop:death ?d.
>           FILTER (?b > 1800)
>           FILTER (?d <1900)
>            }
>
>
> Is there a way to define in OWL, membership of a class with a query ?
>
> Thank you,
>
> Pierre-Yves.
>

-- 
Steve Harris
Garlik Limited, 2 Sheen Road, Richmond, TW9 1AE, UK
+44(0)20 8973 2465  http://www.garlik.com/
Registered in England and Wales 535 7233 VAT # 849 0517 11
Registered office: Thames House, Portsmouth Road, Esher, Surrey, KT10  
9AD

Received on Wednesday, 5 August 2009 13:00:57 UTC