src/PredFinder/elf/ElfIndividual.cpp
// Collect all of the possible IDs for the individuals we're merging

Collect all of the possible IDs for the individuals we're merging
Collect all of the possible IDs for the individuals we ' re merging
BOOST_FOREACH(ElfIndividual_ptr individual, others) {
		if (individual->has_value())
			throw std::runtime_error("ElfIndividual::ElfIndividual(ElfIndividualSet): merge attempted containing literal value");
		if (individual->has_partner_uri())
			partner_uris.insert(individual->_partner_uri);
		if (individual->has_generated_uri())
			generated_uris.insert(individual->_generated_uri);
		if (individual->has_value_mention_id())
			value_mention_ids.insert(individual->_value_mention_id);
		if (individual->has_mention_uid())
			mention_uids.insert(individual->_mention_uid);
		if (individual->has_entity_id())
			entity_ids.insert(individual->_entity_id);
		if (individual->has_event_id())
			event_ids.insert(individual->_event_id);
		if (individual->has_coref_uri())
			coref_uris.insert(individual->_coref_uri);
		if (individual->has_xdoc_cluster_id())
			xdoc_cluster_ids.insert(individual->_xdoc_cluster_id);
		if (individual->has_bound_uri())
			bound_uris.insert(individual->_bound_uri);
	}
BOOST_FOREACH ( ElfIndividual_ptr individual , others ) { if ( individual -> has_value ( ) ) throw std :: runtime_error ( " " ) ; if ( individual -> has_partner_uri ( ) ) partner_uris . insert ( individual -> _partner_uri ) ; if ( individual -> has_generated_uri ( ) ) generated_uris . insert ( individual -> _generated_uri ) ; if ( individual -> has_value_mention_id ( ) ) value_mention_ids . insert ( individual -> _value_mention_id ) ; if ( individual -> has_mention_uid ( ) ) mention_uids . insert ( individual -> _mention_uid ) ; if ( individual -> has_entity_id ( ) ) entity_ids . insert ( individual -> _entity_id ) ; if ( individual -> has_event_id ( ) ) event_ids . insert ( individual -> _event_id ) ; if ( individual -> has_coref_uri ( ) ) coref_uris . insert ( individual -> _coref_uri ) ; if ( individual -> has_xdoc_cluster_id ( ) ) xdoc_cluster_ids . insert ( individual -> _xdoc_cluster_id ) ; if ( individual -> has_bound_uri ( ) ) bound_uris . insert ( individual -> _bound_uri ) ; }
Collect all of the possible IDs for the individuals we're merging
Collect all of the possible IDs for the individuals we ' re merging
// Error if we try to merge in a value
 // Ignore unset IDs/URIs
