Exemple #1
0
        public void Populate(IMappableBussinessObject bo)
        {
            NamedThing boversion = bo as NamedThing;

            if (boversion == null)
            {
                throw new ArgumentException("It is only possible to create a Labeled Item from a NamedThing");
            }
            this.Label   = boversion.Label;
            this.ItemUri = boversion.ItemUri;
        }
        public void Populate(IMappableBussinessObject bo)
        {
            LinkedDataPredicate source = bo as LinkedDataPredicate;

            if (source == null)
            {
                throw new ArgumentException("It is only possible to create a LinkedDataPredicateDataContract from a LinkedDataPredicate");
            }
            this.LinkLabel = source.LinkLabel;
            this.LinkUri   = source.LinkUri;
        }
        public void Populate(IMappableBussinessObject bo)
        {
            TaskOntology source = bo as TaskOntology;

            if (source == null)
            {
                throw new ArgumentException("It is only possible to create a TaskongOntologyDataContract from a TaskOntology");
            }
            this.baseUri     = source.BaseUri.OriginalString;
            this.Description = source.Description;
            this.Name        = source.OntologyName;
        }
Exemple #4
0
        public new void Populate(IMappableBussinessObject bo)
        {
            NamedThingDetail boversion = bo as NamedThingDetail;

            if (boversion == null)
            {
                throw new ArgumentException("It is only possible to create a Labeled Item from a NamedThingDetail");
            }
            base.Label   = boversion.Label;
            base.ItemUri = boversion.ItemUri;
            ItemComment  = boversion.ItemComment;
            ItemGraph    = boversion.ItemGraph;
        }