Ticket #10 (closed enhancement: fixed)
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
- bnode1 rdf:type foaf:Person
- bnode1 foaf:givenname "Philip"
- bnode1 foaf:surname "Cooper"
and the assignment (assuming rdfalchemy is a Doap project) one more:
- projectnode doap:maintainer bnode1
Change History
Note: See
TracTickets for help on using
tickets.
