/// <summary> /// Initializes a new instance of the OwlNode class. /// </summary> public OwlNode() { _parentEdges = new OwlEdgeCollection(); _childEdges = new OwlEdgeCollection(); _nodeID = null; LangID = ""; }
/// <summary> /// Initializes a new instance of the OwlGraph class. /// </summary> public OwlGraph() { _nodes = new OwlNodeCollection(); _literals = new OwlNodeCollection(); _nameSpaces = new OwlNamespaceCollection(); _edges = new OwlEdgeCollection(); }
/// <summary> /// Initializes a new instance of the OwlNode class. /// </summary> public OwlNode() { _parentEdges = new OwlEdgeCollection(); _childEdges = new OwlEdgeCollection(); _nodeID = null; _visited = false; LangID = ""; }
/// <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); } }
/// <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 = ""; }
/// <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 = ""; }