34namespace LinguisticProcessing
36namespace EventAnalysis
56 const uint64_t position,
57 const uint64_t length,
114 for (uint64_t i=0; i < size; i++)
129 LDEBUG <<
"Entity::write()..";
134 LDEBUG <<
"Entity::write: write features...";
135 for (Automaton::EntityFeatures::const_iterator
147 std::map<std::string,std::string> resmap;
148 for (Automaton::EntityFeatures::const_iterator
152 resmap[featureItr->getName()]=featureItr->getValueString();
173 std::ostringstream oss;
180 std::ostringstream oss;
188 std::ostringstream oss;
189 oss <<
"<rdf:rdf xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\""
190 <<
" xmlns:dc=\"http://purl.org/dc/elements/1.1/\"" << std::endl;
#define EVENTANALYSISLOGINIT
a generic feature that is defined by a name and a value, which can be of any type (use boost::any typ...
void setName(const std::string &name)
void setValue(const boost::any &val)
a list of generic features: each feature is unique (only one feature for a name)
virtual std::string getIdUTF8String() const
function used to identify an annotation in a text (used in Dumper)
virtual std::string getOutputUTF8String(void) const
get a string of the OntoAnnotation for output function
std::map< std::string, std::string > getMapFeatures(void) const
virtual void read(std::istream &file)
virtual std::string toString(std::string parentURI) const
function used to print the annotation in a string
uint64_t getLength(void) const
uint64_t getPosition(void) const
bool operator!=(const Entity &) const
redefine inequality as negation of equality.
bool operator==(const Entity &) const
redefine equality
Lima::LinguisticProcessing::Automaton::EntityFeatures m_features
virtual void write(std::ostream &file) const
uint64_t readCodedInt(std::istream &file)
read a integer coded in variable-byte format in a file
void readStringField(istream &file, string &s)
void writeStringField(ostream &file, const string &s)
void writeCodedInt(std::ostream &file, const uint64_t number)
write a integer coded in variable-byte format in a file
std::ostream & operator<<(std::ostream &os, const Entity &annot)