[Cubicweb] CWEP-0002 - RQL rewriting

Sylvain Thénault sylvain.thenault at logilab.fr
Fri Dec 20 11:51:16 CET 2013


On 20 décembre 10:26, Adrien Di Mascio wrote:
> >>Map RDF to Yams
> >>...................
> >>
> >>Given the following XY equivalences:
> >>
> >>.. sourcecode:: python
> >>
> >>    xy.add_equivalence('CWUser', 'foaf:Person')
> >>    xy.add_equivalence('Person', 'foaf:Person')
> >>
> >>when writing::
> >>
> >>     Any S WHERE S is foaf:Person
> >>
> >>we would like the query to be rewritten as::
> >>
> >>     Any A WHERE A is IN(Person, User)
> >
> >As already said, I'ld remove that from this document which is about having way
> >to define "computed" relation/attribute.
> 
> I don't agree. I consider this a valid rql rewriting use case. Why
> wouldn't that fit in this document ?

because  we're talking (and should concentrate on) more specific things than
just "rql rewriting". I agree the above feature is nice, and is about rql
rewriting, simply I think this another CWEP.
-- 
Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org



More information about the Cubicweb mailing list