Ticket #10 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

Add Create with kwargs

Reported by: http://astro.pip.verisignlabs.com/ Owned by: phil
Priority: major Milestone: RDFAlchemy 0.2
Component: rdfAlchemy Keywords: create
Cc: Billing Source:
Max Authorized Hours:

Description

__init__() should be able to handle kwargs so that we can have calls like:

rdfalchemy.maintainer = Person(first="Philip", last="Cooper")

The consturctor should create 3 triples

  1. bnode1 rdf:type foaf:Person
  2. bnode1 foaf:givenname "Philip"
  3. bnode1 foaf:surname "Cooper"

and the assignment (assuming rdfalchemy is a Doap project) one more:

  1. projectnode doap:maintainer bnode1

Change History

Changed 4 years ago by http://openvest.myopenid.com/

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

works as described fixed in changeset:91

Note: See TracTickets for help on using tickets.