Ejemplo n.º 1
0
        private List<result_class_cell> get_dc_relation(XElement target)
        {
            result_class_cell temp;

            List<result_class_cell> toReturn = new List<result_class_cell> ();

            foreach(XElement xe in target.Descendants(dcterms + "isPartOf"))
            {
                temp = new result_class_cell();

                temp.element_name = "dcterms:isPartOf";
                temp.element_content = xe.Value;
                temp.xsi_type = null;

                if(xe.HasAttributes)
                {
                    foreach(XAttribute xa in xe.Attributes())
                        temp.xsi_type = xa.Value;
                }

                toReturn.Add(temp);
            }

            foreach(XElement xe in target.Descendants(dcterms + "hasPart"))
            {
                temp = new result_class_cell();

                temp.element_name = "dcterms:hasPart";
                temp.element_content = xe.Value;
                temp.xsi_type = null;

                if(xe.HasAttributes)
                {
                    foreach(XAttribute xa in xe.Attributes())
                        temp.xsi_type = xa.Value;
                }

                toReturn.Add(temp);
            }

            foreach(XElement xe in target.Descendants(dcterms + "isReplacedBy"))
            {
                temp = new result_class_cell();

                temp.element_name = "dcterms:isReplacedBy";
                temp.element_content = xe.Value;
                temp.xsi_type = null;

                if(xe.HasAttributes)
                {
                    foreach(XAttribute xa in xe.Attributes())
                        temp.xsi_type = xa.Value;
                }

                toReturn.Add(temp);
            }

            foreach(XElement xe in target.Descendants(dcterms +  "replaces"))
            {
                temp = new result_class_cell();

                temp.element_name = "dcterms:replaces";
                temp.element_content = xe.Value;
                temp.xsi_type = null;

                if(xe.HasAttributes)
                {
                    foreach(XAttribute xa in xe.Attributes())
                        temp.xsi_type = xa.Value;
                }

                toReturn.Add(temp);
            }

            foreach(XElement xe in target.Descendants(dcterms + "references"))
            {
                temp = new result_class_cell();

                temp.element_name = "dcterms:references";
                temp.element_content = xe.Value;
                temp.xsi_type = null;

                if(xe.HasAttributes)
                {
                    foreach(XAttribute xa in xe.Attributes())
                        temp.xsi_type = xa.Value;
                }

                toReturn.Add(temp);
            }

            return toReturn;
        }
Ejemplo n.º 2
0
        private List<result_class_cell> get_dc_type(XElement target)
        {
            result_class_cell temp;

            List<result_class_cell> toReturn = new List<result_class_cell> ();

            foreach(XElement xe in target.Descendants(dc + "type"))
            {
                temp = new result_class_cell();

                temp.element_name = "dc:type";
                temp.element_content = xe.Value;
                temp.xsi_type = null;

                if(xe.HasAttributes)
                {
                    foreach(XAttribute xa in xe.Attributes())
                        temp.xsi_type = xa.Value;
                }

                toReturn.Add(temp);
            }
            return toReturn;
        }
Ejemplo n.º 3
0
        private List<result_class_cell> get_dc_description(XElement target)
        {
            result_class_cell temp;

            List<result_class_cell> toReturn = new List<result_class_cell> ();

            foreach(XElement xe in target.Descendants(dc + "description"))
            {
                temp = new result_class_cell();

                temp.element_name = "dc:description";
                temp.element_content = xe.Value;
                temp.xsi_type = null;

                if(xe.HasAttributes)
                {
                    foreach(XAttribute xa in xe.Attributes())
                        temp.xsi_type = xa.Value;
                }

                toReturn.Add(temp);
            }

            foreach(XElement xe in target.Descendants(dcterms + "abstract" ))
            {
                temp = new result_class_cell();

                temp.element_name = "dcterms:abstract";
                temp.element_content = xe.Value;
                temp.xsi_type = null;

                if(xe.HasAttributes)
                {
                    foreach(XAttribute xa in xe.Attributes())
                        temp.xsi_type = xa.Value;
                }

                toReturn.Add(temp);
            }

            foreach(XElement xe in target.Descendants(dkdcplus + "version"))
            {
                temp = new result_class_cell();

                temp.element_name = "dkdcplus:version";
                temp.element_content = xe.Value;
                temp.xsi_type = null;

                if(xe.HasAttributes)
                {
                    foreach(XAttribute xa in xe.Attributes())
                        temp.xsi_type = xa.Value;
                }

                toReturn.Add(temp);
            }

            return toReturn;
        }