示例#1
0
        /// <summary>
        /// Default constructor
        /// </summary>
        public Tire()
        {
            base.SameAs = new List <string>();
            SameAs.Add("http://en.wikipedia.org/wiki/Tire");
            SameAs.Add("http://www.1010tires.com/About/Tire-Tech");

            //Properties = new List<Property>();
            //Properties.Add(new Property() { Name = "Speed Rating" });
        }
示例#2
0
        /// <summary>
        /// Default constructor
        /// </summary>
        public Tire()
        {
            base.SameAs = new List <string>();
            SameAs.Add("http://en.wikipedia.org/wiki/Tire");
            SameAs.Add("http://www.1010tires.com/About/Tire-Tech");

            ExternalExtensions = new List <Property>()
            {
                new Property()
                {
                    Name = "auto", Description = "www.1010Tires.com",
                }
            };
        }
示例#3
0
        } // ScAddCSCnote

        // ******************************************************************************
        // ***** CONCEPT RELATIONSHIPS

        // ******************************************************************************
        public void ScAddCSCsameAs(string conceptElementId, SameAs sameAs)
        // Code History:
        // 2010-12-13 mws
        {
            string  parentXPath = "/nar:" + RootElemName + "/nar:conceptSet/nar:concept[@id='" + conceptElementId + "']";
            XmlNode parentXN    = XmlDoc.SelectSingleNode(parentXPath, NsMngr);

            if (parentXN == null)
            {
                AddCSconcept(conceptElementId);
            }

            XmlElement newXElement = XmlDoc.CreateElement("sameAs", G2NsCs);

            NarProperty2XmlElement(sameAs, newXElement);
            AddPropertyToParent(parentXPath, NameSeqConcept, newXElement);
        } // ScAddCSCsameAs
示例#4
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public Wheel()
 {
     base.SameAs = new List <string>();
     SameAs.Add("http://en.wikipedia.org/wiki/Wheel");
     SameAs.Add("http://www.1010tires.com/About/Wheel-Tech");
 }