* @param conceptTypes The {@link ConceptType}s.
* @param ruleSet The {@link RuleSet}.
*/
private void readConcepts(Map<String, QueryDefinitionType> queryDefinitionTypes, Map<String, ConceptType> conceptTypes, RuleSet ruleSet) {
for (ConceptType conceptType : conceptTypes.values()) {
Concept concept = getOrCreateConcept(conceptType.getId(), ruleSet.getConcepts());
concept.setDescription(conceptType.getDescription());
if (conceptType.getUseQueryDefinition() != null) {
concept.setQuery(createQueryFromDefinition(conceptType.getUseQueryDefinition().getRefId(), conceptType.getParameter(), queryDefinitionTypes));
} else {
concept.setQuery(createQuery(conceptType.getCypher(), conceptType.getParameter()));
}
concept.setRequiredConcepts(getRequiredConcepts(conceptType.getRequiresConcept(), conceptTypes, ruleSet));
}
}