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
_______________________________________________
redland-dev mailing list
[email protected]
http://lists.librdf.org/mailman/listinfo/redland-dev

Reply via email to