Ticket #9 (closed whish list: fixed)

Opened 4 years ago

Last modified 4 years ago

What about help?

Reported by: http://david.larlet.fr/ Owned by: http://openvest.myopenid.com
Priority: minor Milestone:
Component: rdfAlchemy Keywords:
Cc: Billing Source:
Max Authorized Hours:

Description

Maybe I'm missing an obvious link but I can't find a way to join a mailing-list or an IRC channel. I think it's important because documentation is "limited" for the moment.

For instance I can't figure out how inheritance works... when you use Person.get_by(name="Foo") with foaf model (in examples), should it use Agent.name argument?

Change History

Changed 4 years ago by http://astro.pip.verisignlabs.com/

  • owner changed from phil to http://openvest.myopenid.com

Since my last server migration I have not reinstalled mailman. Traffic was quite low but perhaps I should start a googlegroup. I'll look into that.

RE inheritance...I have been bringing the descriptor I want for "get_by" into the class I'm using. Although Agent defines the openid descriptor you can say:

Person = rdflibSingle(foaf.openid)

and all's well. If you have use cases where you want the inheritance to work for get_by, we all need to agree that the class of the returned instance would be the child class (Person not Agent).

"Limited" is a nice word for the current documentation. That must be the French tralslation of lousy. I do need to complete it and post the project in the cheeseshop.

Changed 4 years ago by http://astro.pip.verisignlabs.com/

  • status changed from new to closed
  • resolution set to fixed

You can now  visit rdfalchemy-dev at Google Groups for support or questions that don't quite rise to the level of a ticket.

The inheritance described now words as of changeset:98 you can now use:

class Agent(rdfObject):
            rdf_type = FOAF.Agent
            name = rdflibSingle(FOAF.name)
            mbox = rdflibSingle(FOAF.mbox)
        
class Person(Agent):
            rdf_type = FOAF.Person
            first = rdflibSingle(FOAF.givenname,'first')
            last = rdflibSingle(FOAF.surname,'last')


p=Person.get_by(mbox="mailto:philip.cooper@openvest.com")
Note: See TracTickets for help on using tickets.