/// <summary> /// Internal Only constructor for Blank Nodes. /// </summary> /// <param name="factory">Node Factory from which to obtain a Node ID.</param> protected internal BaseBlankNode(INodeFactory factory) : base(null, NodeType.Blank) { _id = factory.GetNextBlankNodeID(); _autoassigned = true; // Compute Hash Code _hashcode = (_nodetype + ToString()).GetHashCode(); }
/// <summary> /// Gets the next available Blank Node ID /// </summary> /// <returns></returns> public virtual string GetNextBlankNodeID() { return(_factory.GetNextBlankNodeID()); }