Example #1
0
void SkosSerializer::serializeConceptRelationsList(
  const QList<SkosConcept>::const_iterator &p_baseConceptIter,
  const ERelationType &p_relationType,
  const QUrl &p_relationUrl)
{
  QList<QUrl> l_relatedConcepts = 
    p_baseConceptIter->getRelatedConceptsList(p_relationType);
  for(QList<QUrl>::const_iterator l_relatedIter = 
        l_relatedConcepts.begin();
      l_relatedIter != l_relatedConcepts.end();
      ++l_relatedIter)
  {
    m_statements.append(Soprano::Statement(
                          Soprano::Node(p_baseConceptIter->getUrl()),
                          Soprano::Node(p_relationUrl),
                          Soprano::Node(*l_relatedIter)));
  }
}