Ticket #1 (closed enhancement: fixed)
rdflibSingle and rdflibMultiple should check for rdfs types
| Reported by: | phil | Owned by: | phil |
|---|---|---|---|
| Priority: | major | Milestone: | RDFAlchemy 0.2 |
| Component: | rdfAlchemy | Keywords: | rdfs |
| Cc: |
Description
The descriptors should check for rdfs type of the object
If it's a literal:
- __set__ method should coerce/ force python type to rdf Literal
- __get__ should do the reverse
If it's a URIRef:
Check the rdf:type of the returned item. Can set the python type (subclass of rdfObject like Company or whatever). This introspection can be done during the descriptor __init__ so it doesn't have to happen at get time
Change History
Note: See
TracTickets for help on using
tickets.
