surfrdf icon indicating copy to clipboard operation
surfrdf copied to clipboard

Example of Object to RDF mappings?

Open wikier opened this issue 8 years ago • 4 comments

As far as I can see in the documentation, SuRF is more focused on retrieving RDF resources and map them into Python objects, right @cosminbasca?

I guess the opposite use case is also somehow supported: serialize Python object to RDF. I wonder if there is any documentation or source example covering that aspect. What do the Python classes need to provide?

For instance, for my tries I know they need to provide some kind of logic in the find() method. I could continue with a fail-and-error approach, but I guess is not very productive...

Thanks in advance.

wikier avatar Jun 17 '16 10:06 wikier

yes, you are correct on both points, the main design purpose behind SuRF was to offer RDF access in a pythonic manner. While the reverse is possible, it is not properly documented or explored for that matter. An interesting direction to look into though (as time permits :) )

cosminbasca avatar Jun 17 '16 11:06 cosminbasca

Can you just provide me all what you have in the project (a class example, some usage with the store, etc...), and then I'm happy to help with the documentation and possible missing features.

wikier avatar Jun 17 '16 14:06 wikier

sounds good, will try to find some time and crop up a few examples to get you started. Thanks again!

cosminbasca avatar Jun 17 '16 14:06 cosminbasca

Hello, This library is very very interesting ! @cosminbasca @wikier I am interested as well in this feature as well, did you make progress on this?

Thank you :)

charbull avatar Jun 29 '17 22:06 charbull