HerculesCRUE_Commons-ED-MA/src/Hercules.CommonsEDMA.Harvester/ClasesGeneradas/CurriculumvitaeOntology/RelatedWorkSubmittedConferencesCV.cs
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using Gnoss.ApiWrapper;
using Gnoss.ApiWrapper.Model;
using Gnoss.ApiWrapper.Helpers;
using GnossBase;
using Es.Riam.Gnoss.Web.MVC.Models;
using System.Text.RegularExpressions;
using System.Globalization;
using System.Collections;
using Gnoss.ApiWrapper.Exceptions;
using System.Diagnostics.CodeAnalysis;
using ParticipationTypeDocument = ParticipationtypedocumentOntology.ParticipationTypeDocument;
using EventInscriptionType = EventinscriptiontypeOntology.EventInscriptionType;

namespace CurriculumvitaeOntology
{
	[ExcludeFromCodeCoverage]
	public class RelatedWorkSubmittedConferencesCV : GnossOCBase
	{

		public RelatedWorkSubmittedConferencesCV() : base() { } 

		public RelatedWorkSubmittedConferencesCV(SemanticEntityModel pSemCmsModel, LanguageEnum idiomaUsuario) : base()
		{
			this.mGNOSSID = pSemCmsModel.Entity.Uri;
			this.mURL = pSemCmsModel.Properties.FirstOrDefault(p => p.PropertyValues.Any(prop => prop.DownloadUrl != null))?.FirstPropertyValue.DownloadUrl;
			SemanticPropertyModel propRoh_participationType = pSemCmsModel.GetPropertyByPath("http://w3id.org/roh/participationType");
			if(propRoh_participationType != null && propRoh_participationType.PropertyValues.Count > 0)
			{
				this.Roh_participationType = new ParticipationTypeDocument(propRoh_participationType.PropertyValues[0].RelatedEntity,idiomaUsuario);
			}
			SemanticPropertyModel propRoh_inscriptionType = pSemCmsModel.GetPropertyByPath("http://w3id.org/roh/inscriptionType");
			if(propRoh_inscriptionType != null && propRoh_inscriptionType.PropertyValues.Count > 0)
			{
				this.Roh_inscriptionType = new EventInscriptionType(propRoh_inscriptionType.PropertyValues[0].RelatedEntity,idiomaUsuario);
			}
			this.Roh_googleScholarCitationCount = GetNumberIntPropertyValueSemCms(pSemCmsModel.GetPropertyByPath("http://w3id.org/roh/googleScholarCitationCount"));
			this.Roh_correspondingAuthor= GetBooleanPropertyValueSemCms(pSemCmsModel.GetPropertyByPath("http://w3id.org/roh/correspondingAuthor"));
			this.Roh_inrecsCitationCount = GetNumberIntPropertyValueSemCms(pSemCmsModel.GetPropertyByPath("http://w3id.org/roh/inrecsCitationCount"));
			this.Roh_inscriptionTypeOther = GetPropertyValueSemCms(pSemCmsModel.GetPropertyByPath("http://w3id.org/roh/inscriptionTypeOther"));
		}

		public virtual string RdfType { get { return "http://w3id.org/roh/RelatedWorkSubmittedConferencesCV"; } }
		public virtual string RdfsLabel { get { return "http://w3id.org/roh/RelatedWorkSubmittedConferencesCV"; } }
		public OntologyEntity Entity { get; set; }

		[RDFProperty("http://w3id.org/roh/participationType")]
		public  ParticipationTypeDocument Roh_participationType  { get; set;} 
		public string IdRoh_participationType  { get; set;} 

		[RDFProperty("http://w3id.org/roh/inscriptionType")]
		public  EventInscriptionType Roh_inscriptionType  { get; set;} 
		public string IdRoh_inscriptionType  { get; set;} 

		[RDFProperty("http://w3id.org/roh/googleScholarCitationCount")]
		public  int? Roh_googleScholarCitationCount { get; set;}

		[RDFProperty("http://w3id.org/roh/correspondingAuthor")]
		public  bool Roh_correspondingAuthor { get; set;}

		[RDFProperty("http://w3id.org/roh/inrecsCitationCount")]
		public  int? Roh_inrecsCitationCount { get; set;}

		[RDFProperty("http://w3id.org/roh/inscriptionTypeOther")]
		public  string Roh_inscriptionTypeOther { get; set;}


		internal override void GetProperties()
		{
			base.GetProperties();
			propList.Add(new StringOntologyProperty("roh:participationType", this.IdRoh_participationType));
			propList.Add(new StringOntologyProperty("roh:inscriptionType", this.IdRoh_inscriptionType));
			propList.Add(new StringOntologyProperty("roh:googleScholarCitationCount", this.Roh_googleScholarCitationCount.ToString()));
			propList.Add(new BoolOntologyProperty("roh:correspondingAuthor", this.Roh_correspondingAuthor));
			propList.Add(new StringOntologyProperty("roh:inrecsCitationCount", this.Roh_inrecsCitationCount.ToString()));
			propList.Add(new StringOntologyProperty("roh:inscriptionTypeOther", this.Roh_inscriptionTypeOther));
		}

		internal override void GetEntities()
		{
			base.GetEntities();
		} 











	}
}
