[redland-dev] Setting attrbutes of an RDF statement (in Ada bindings)

Victor Porton porton at narod.ru
Fri Aug 15 18:45:42 EDT 2014


The following Ada code retrieves attributes of an RDF statements.

   function Get_Subject   (Statement: Statement_Type_Without_Finalize) return RDF.Raptor.Term.Term_Type_Without_Finalize;
   function Get_Predicate (Statement: Statement_Type_Without_Finalize) return RDF.Raptor.Term.Term_Type_Without_Finalize;
   function Get_Object    (Statement: Statement_Type_Without_Finalize) return RDF.Raptor.Term.Term_Type_Without_Finalize;
   function Get_Graph     (Statement: Statement_Type_Without_Finalize) return RDF.Raptor.Term.Term_Type_Without_Finalize; -- may return null handle

Should I also make code which would set the attributes?

As for now all four attributes are set by:

   function New_Statement (World: RDF.Raptor.World.World_Type_Without_Finalize'Class;
                                          Subject, Predicate, Object, Graph: RDF.Raptor.Term.Term_Type_Without_Finalize)
                                          return Statement_Type;

when a statement is created.

Should there be code which sets them afterward (not when the statement is created, but later)?

--
Victor Porton - http://portonvictor.org


More information about the redland-dev mailing list