Hi Diogo,

This response is probably too late to be useful (christmas holidays etc), but 
...

On 15 Dec 2010, at 18:20, Diogo FC Patrao wrote:
> In section 7.7 of the dqr-server documentation (just below 
> http://www4.wiwiss.fu-berlin.de/bizer/d2rq/spec/#conditional) I read about 
> additionalProperties that would be added to a mapping. The example is:
> 
> map:PersonsClassMap a d2rq:ClassMap;
>         d2rq:class :Person;
>         d2rq:additionalClassDefinitionProperty map:PersonEquivalence.
> 
> map:PersonEquivalence a d2rq:AdditionalProperty;
>         d2rq:propertyName owl:equivalentClass;
>         d2rq:propertyValue foaf:Person.
> 
> My question is, if I make such a mapping, both queries should yield the same 
> results (IN d2r-server as is)?
> 
> SELECT distinct * 
> {
>    ?person a :Person
> }
> 
> and
> 
> SELECT distinct * 
> {
>    ?person a foaf:Person
> }

No, because D2RQ doesn't do OWL inference. It would generate the 
owl:equivalentClass triple, but would not infer anything based on it, so you 
can't query for the inferred triple (xxx a foaf:Person).

> If not, what should I do in order to it happens?

Try this:

   map:PersonsClassMap a d2rq:ClassMap;
      d2rq:class :Person;
      d2rq:class foaf:Person;

You can have multiple d2rq:class values for a class map.

(Extending D2RQ so that it does simple inferencing -- class/property 
hierarchies and equivalence, domain/range -- would be quite easy, but would 
have a performance penalty and there hasn't been much demand for it.)

Best,
Richard



> 
> Thanks''
> 
> 
> Diogo F.C. PatrĂ£o
> Manager of Medical Informatics
> Biotechnology Laboratory
> Hospital A.C. Camargo
> http://www.accamargo.org.br/
> ------------------------------------------------------------------------------
> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d_______________________________________________
> d2rq-map-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel


------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
d2rq-map-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel

Reply via email to