I want to save the incoming visual data of a social robot into a semantic memory as RDF triple in the form "Subject, predicate, object". Im unsure how exactly this kind of datastructure should be programmed in C++. My first attempt was something like this:
class RDFentry {
public:
int subject;
std::string predicate;
int object;
};
std::vector<RDFentry> myrdf = {};
myrdf.push_back({i,"infront",3});
An example entry would be: "1 infront 3" in short for "subect #1 spatial relation is infront of object #3". My problem is, that there is a missing field for the timeframe. The idea is not only store the spatialrelations but also temporal information. Another problem is, that with a fourth timecode field, the number of entries in in the RDF database would explode. In a normal game, 30 frames per second are generated, so after a minute of program running, the semantic memory would be full. How do i solve these problemes, are there any papers which give examples for RDF triple storage in context of social robotics?