예제 #1
0
 /// <summary>
 /// Initializes a new instance of the OwlNode class.
 /// </summary>
 public OwlNode()
 {
     _parentEdges = new OwlEdgeCollection();
     _childEdges  = new OwlEdgeCollection();
     _nodeID      = null;
     LangID       = "";
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the OwlGraph class.
 /// </summary>
 public OwlGraph()
 {
     _nodes = new OwlNodeCollection();
     _literals = new OwlNodeCollection();
     _nameSpaces = new OwlNamespaceCollection();
     _edges = new OwlEdgeCollection();
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the OwlGraph class.
 /// </summary>
 public OwlGraph()
 {
     _nodes      = new OwlNodeCollection();
     _literals   = new OwlNodeCollection();
     _nameSpaces = new OwlNamespaceCollection();
     _edges      = new OwlEdgeCollection();
 }
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the OwlNode class.
 /// </summary>
 public OwlNode()
 {
     _parentEdges = new OwlEdgeCollection();
     _childEdges = new OwlEdgeCollection();
     _nodeID = null;
     _visited = false;
     LangID = "";
 }
예제 #5
0
        /// <summary>
        /// Visit all the outgoing edges of the node and add them to the parent
        /// </summary>
        /// <param name="node">The actual node of which we need to visit the edges</param>
        /// <param name="parent">The xml representative of the node</param>
        public void VisitEdges(OwlNode node, Object parent)
        {
            OwlEdgeCollection edges = (OwlEdgeCollection)node.ChildEdges;

            foreach (OwlEdge e in edges)
            {
                e.Accept(this, parent);
            }
        }
예제 #6
0
        /// <summary>
        /// Initializes a new instance of the OwlNode class with the specified URI.
        /// </summary>
        /// <param name="nodeUri">A string representing the URI of this node.</param>
        /// <exception cref="UriFormatException">The specified URI is a not a well formed URI.</exception>
        public OwlNode(string nodeUri)
        {
            _parentEdges = new OwlEdgeCollection();
            _childEdges  = new OwlEdgeCollection();
            //if the nodeUri is not a well formed Uri then throw a UriFormatException
            Uri u = new Uri(nodeUri);

            _nodeID = nodeUri;
            LangID  = "";
        }
예제 #7
0
 /// <summary>
 /// Initializes a new instance of the OwlNode class with the specified URI.
 /// </summary>
 /// <param name="nodeUri">A string representing the URI of this node.</param>
 /// <exception cref="UriFormatException">The specified URI is a not a well formed URI.</exception>
 public OwlNode(string nodeUri)
 {
     _parentEdges = new OwlEdgeCollection();
     _childEdges = new OwlEdgeCollection();
     //if the nodeUri is not a well formed Uri then throw a UriFormatException
     Uri u = new Uri(nodeUri);
     _nodeID = nodeUri;
     _visited = false;
     LangID = "";
 }