internal override void GenerateRDFServObject(RDFServServiceModels.Service service)
        {
            var endpoint = new RDFServServiceModels.HasKafkaRServiceEndpoint {
                priority            = Priority.ToString(),
                read_topic          = ReadTopic,
                providesInformation = new List <RDFServServiceModels.Information>()
            };

            OwnedBy.GenerateRDFServObject(endpoint);

            foreach (var item in ProvidesInformation)
            {
                endpoint.providesInformation.Add(item.GenerateRDFServObject());
            }

            service.hasKafkaRServiceEndpoint.Add(endpoint);
        }
        internal override void GenerateRDFServObject(RDFServServiceModels.Service service)
        {
            var endpoint = new RDFServServiceModels.HasKafkaWServiceEndpoint {
                priority            = Priority.ToString(),
                write_topic         = WriteTopic,
                consumesInformation = new List <RDFServServiceModels.Information>()
            };

            OwnedBy.GenerateRDFServObject(endpoint);

            foreach (var item in ConsumesInformation)
            {
                endpoint.consumesInformation.Add(item.GenerateRDFServObject());
            }

            service.hasKafkaWServiceEndpoint.Add(endpoint);
        }
        public RDFServServiceModels.Service GenerateRDFServObject()
        {
            var service = new RDFServServiceModels.Service {
                name = Name,
                hasKafkaRServiceEndpoint  = new List <RDFServServiceModels.HasKafkaRServiceEndpoint>(),
                hasKafkaRWServiceEndpoint = new List <RDFServServiceModels.HasKafkaRWServiceEndpoint>(),
                hasKafkaWServiceEndpoint  = new List <RDFServServiceModels.HasKafkaWServiceEndpoint>(),
                hasRestServiceEndpoint    = new List <RDFServServiceModels.HasRestServiceEndpoint>()
            };

            foreach (var item in HasServiceEndpoint)
            {
                item.GenerateRDFServObject(service);
            }

            return(service);
        }
        internal override void GenerateRDFServObject(RDFServServiceModels.Service service)
        {
            var endpoint = new RDFServServiceModels.HasRestServiceEndpoint {
                priority            = Priority.ToString(),
                verb                = Enum.GetName(typeof(HTTPVerb), this.Verb).ToUpper(),
                url                 = Url,
                consumesInformation = new List <RDFServServiceModels.Information>(),
                providesInformation = new List <RDFServServiceModels.Information>()
            };

            OwnedBy.GenerateRDFServObject(endpoint);

            foreach (var item in ConsumesInformation)
            {
                endpoint.consumesInformation.Add(item.GenerateRDFServObject());
            }

            foreach (var item in ProvidesInformation)
            {
                endpoint.providesInformation.Add(item.GenerateRDFServObject());
            }

            service.hasRestServiceEndpoint.Add(endpoint);
        }
 internal abstract void GenerateRDFServObject(RDFServServiceModels.Service service);