private void WriteConceptEntityFirstDescription(ConceptEntity conceptEntity)
 {
     if (!conceptEntity.HasRdfTypeDefined())
     {
         throw new GnossAPIArgumentException("Required. It can't be null or empty", "RdfType");
     }
     else if (!conceptEntity.HasRdfsLabelDefined())
     {
         throw new GnossAPIArgumentException("Required. It can't be null or empty", "RdfsLabel");
     }
     else
     {
         if (conceptEntity.HasAnyPropertyWithData())
         {
             if (conceptEntity.ParentIdentifier == null)
             {
                 Write(SKOS_MEMBER_LABEL, conceptEntity.ConceptEntityGnossId);
             }
             else
             {
                 Write(SKOS_NARROWER_LABEL, conceptEntity.ConceptEntityGnossId);
             }
         }
     }
 }
        private void WriteConceptEntityAdditionalDescription(ConceptEntity conceptEntity)
        {
            if (!conceptEntity.HasRdfTypeDefined())
            {
                throw new GnossAPIArgumentException("Required. It can't be null or empty", "RdfType");
            }
            else if (!conceptEntity.HasRdfsLabelDefined())
            {
                throw new GnossAPIArgumentException("Required. It can't be null or empty", "RdfsLabel");
            }
            else
            {
                if (conceptEntity.HasAnyPropertyWithData())
                {
                    File.WriteLine($"<rdf:Description rdf:about=\"{conceptEntity.ConceptEntityGnossId}\">");

                    Write("rdf:type", conceptEntity.RdfType);
                    Write("rdfs:label", conceptEntity.RdfsLabel);

                    if (conceptEntity.Properties != null)
                    {
                        foreach (OntologyProperty prop in conceptEntity.Properties)
                        {
                            if (conceptEntity.HasAnyPropertyWithData())
                            {
                                Write(prop.Name, prop.Value, prop.Language);
                            }
                        }
                    }
                    if (conceptEntity.Subentities != null && conceptEntity.Subentities.Count > 0)
                    {
                        WriteConceptEntitiesFirstDescription(conceptEntity.Subentities);
                    }
                    File.WriteLine("</rdf:Description>");
                    if (conceptEntity.Subentities != null && conceptEntity.Subentities.Count > 0)
                    {
                        foreach (ConceptEntity newEc in conceptEntity.Subentities)
                        {
                            WriteConceptEntityAdditionalDescription(newEc);
                        }
                    }
                }
            }
        }