src/PredFinder/elf/ElfRelationFactory.cpp
/**
 * Converts the specified ElfIndividual to its equivalent relations,
 * following the convention that <name> becomes ic:hasName, <desc>
 * becomes rdfs:label, and <type> becomes rdf:type.
 *
 * Intended for use during R-ELF macro conversion.
 *
 * @param individual The individual being converted.
 * @return The set of relations representing the individual's
 * various string contents.
 *
 * @author nward@bbn.com
 * @date 2010.10.26
 **/
Converts the specified ElfIndividual to its equivalent relations,
following the convention that  becomes ic:hasName, 
becomes rdfs:label, and  becomes rdf:type.

Intended for use during R-ELF macro conversion.

@param individual The individual being converted.
@return The set of relations representing the individual's
various string contents.


Converts the specified ElfIndividual to its equivalent relations following the convention that becomes ic : hasName becomes rdfs : label and becomes rdf : type . Intended for use during R - ELF macro conversion . @param individual The individual being converted . @return The set of relations representing the individual ' s various string contents .
std::set<ElfRelation_ptr> ElfRelationFactory::from_elf_individual(const std::wstring& domain_prefix, const ElfIndividual_ptr individual) {
	std::set<ElfRelation_ptr> relations;
	if (individual->get_name_or_desc().get() != NULL && individual->get_name_or_desc()->get_value() != L"") {
		relations.insert(from_elf_string(domain_prefix, individual, individual->get_name_or_desc()));
	}
	relations.insert(from_elf_string(domain_prefix, individual, individual->get_type()));
	return relations;
}
std :: set < ElfRelation_ptr > ElfRelationFactory :: from_elf_individual ( const std :: wstring & domain_prefix , const ElfIndividual_ptr individual ) { std :: set < ElfRelation_ptr > relations ; if ( individual -> get_name_or_desc ( ) . get ( ) != NULL && individual -> get_name_or_desc ( ) -> get_value ( ) != L" " ) { relations . insert ( from_elf_string ( domain_prefix , individual , individual -> get_name_or_desc ( ) ) ) ; } relations . insert ( from_elf_string ( domain_prefix , individual , individual -> get_type ( ) ) ) ; return relations ; }
Converts the specified ElfIndividual to its equivalent relations,
 following the convention that <name> becomes ic:hasName, <desc>
 becomes rdfs:label, and <type> becomes rdf:type.
Converts the specified ElfIndividual to its equivalent relations following the convention that <name > becomes ic : hasName <desc > becomes rdfs : label and <type > becomes rdf : type .
// The relations generated from this individual
 // The name/desc as a hasName/label, if any
 // Each type
 // Done
