term.pxd 585 B

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