Bridges-C++  3.4.4
Bridges(C++ API)
MovieActorWikidata.h
Go to the documentation of this file.
1 #ifndef MOVIEACTOR_WIKIDATA_H
2 #define MOVIEACTOR_WIKIDATA_H
3 
4 namespace bridges {
5  namespace dataset {
20  // Since the data always comes from wikidata, we could strip the
21  // prefix http://www.wikidata.org/entity/ from the entities to gain
22  // memory. Should we?
24  std::string movieURI;
25  std::string actorURI;
26  std::string movieName;
27  std::string actorName;
28 
29  public:
34  }
35 
40  void setMovieURI (std::string mu) {
41  movieURI = mu;
42  }
43 
48  void setActorURI (std::string au) {
49  actorURI = au;
50  }
51 
56  void setMovieName (std::string mn) {
57  movieName = mn;
58  }
59 
64  void setActorName (std::string an) {
65  actorName = an;
66  }
67 
72  const std::string& getMovieURI() const {
73  return movieURI;
74  }
75 
80  const std::string& getActorURI() const {
81  return actorURI;
82  }
83 
88  const std::string& getMovieName() const {
89  return movieName;
90  }
91 
96  const std::string& getActorName() const {
97  return actorName;
98  }
99  };
100  }
101 }
102 
103 #endif
This is a helper class for accessing actor-movie data from Wikidata.
Definition: MovieActorWikidata.h:23
const std::string & getMovieName() const
Definition: MovieActorWikidata.h:88
void setMovieURI(std::string mu)
Definition: MovieActorWikidata.h:40
const std::string & getActorName() const
Definition: MovieActorWikidata.h:96
void setActorName(std::string an)
Definition: MovieActorWikidata.h:64
const std::string & getActorURI() const
Definition: MovieActorWikidata.h:80
void setActorURI(std::string au)
Definition: MovieActorWikidata.h:48
void setMovieName(std::string mn)
Definition: MovieActorWikidata.h:56
MovieActorWikidata()
Definition: MovieActorWikidata.h:33
const std::string & getMovieURI() const
Definition: MovieActorWikidata.h:72
these methods convert byte arrays in to base64 codes and are used in BRIDGES to represent the color a...
Definition: alltypes.h:4