/// <summary>
        /// The general implementation of a regular OwlNode. A node is only of type OwlNode in some special cases.
        /// </summary>
        /// <param name="node">The actual node to visit</param>
        /// <param name="parent">The parent object of the node</param>
        public override void Visit(OwlNode node, Object parent)
        {
            XmlElement parentElement = parent as XmlElement;
            if(parentElement != null)
            {
                // Here we will only visit the blank node, because these are
                // the only ones we need. The others are the standard nodes
                // representing datatypes or owl, rdf, rdfs predefined nodes.
                if(node.IsAnonymous())
                {
                    XmlComment comment = _owlDocument.CreateComment("Visiting a regular node: " + node.GetType());
                    parentElement.AppendChild(comment);

                    node.Visited = true;
                }
            }
        }
Esempio n. 2
0
        /// <summary>
        /// The general implementation of a regular OwlNode. A node is only of type OwlNode in some special cases.
        /// </summary>
        /// <param name="node">The actual node to visit</param>
        /// <param name="parent">The parent object of the node</param>
        public override void Visit(OwlNode node, Object parent)
        {
            XmlElement parentElement = parent as XmlElement;

            if (parentElement != null)
            {
                // Here we will only visit the blank node, because these are
                // the only ones we need. The others are the standard nodes
                // representing datatypes or owl, rdf, rdfs predefined nodes.
                if (node.IsAnonymous())
                {
                    XmlComment comment = _owlDocument.CreateComment("Visiting a regular node: " + node.GetType());
                    parentElement.AppendChild(comment);

                    _visited.Add(node);
                }
            }
        }