term.pxd 551 B

12345678910111213141516171819
  1. from lakesuperior.model.base cimport Buffer
  2. ctypedef struct Term:
  3. char type
  4. char *data
  5. char *datatype
  6. char *lang
  7. cdef:
  8. # Temporary TPL variable.
  9. char *_pk
  10. int serialize(const Term *term, Buffer *sterm) except -1
  11. int deserialize(const Buffer *data, Term *term) except -1
  12. int from_rdflib(term_obj, Term *term) except -1
  13. int serialize_from_rdflib(term_obj, Buffer *data) except -1
  14. object deserialize_to_rdflib(const Buffer *data)
  15. object to_rdflib(const Term *term)
  16. object to_bytes(const Term *term)