DISQUS

DISQUS Hello! Phil Dawes' Stuff is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Jump to original thread »
Author

sparta & my ideal python/rdf api

Started by phildawes · 9 months ago

I’ve been using sparta quite a bit recently, and have found it to be a really cool way of handling rdf in python. For me it’s about 80% there.
The main problem is that fundamentally there’s a mismatch between the way python represents objects and rdf constra ... Continue reading »

1 comment

  • This would seem to be a good match for descriptors... Make property a descriptor which checks maxCardinality, if it's 1 return the property, if it's more return a generator. The __set__ on the descriptor could take care of setting the property..
    The only thing I can see which might cause problems is presenting a consistent API, i.e. how are you supposed to know that it's a generator as opposed to a value/object/whatever gets returned.

Add New Comment

Returning? Login