/// <summary> /// Initializes a new instance of the TypedLiteral class. This constructor initializes itself using input parameter. /// </summary> /// <param name="lexicalForm">Lexical form.</param> /// <param name="dataTypeUri">Datatype Uri.</param> public TypedLiteral(string lexicalForm, RDFUriReference dataTypeUri) : base(lexicalForm) { if (dataTypeUri == null) { throw new ArgumentNullException(string.Format(CultureInfo.InvariantCulture, Resources.MsgNullArgument, "dataTypeUri")); } datatypeUri = dataTypeUri; }
/// <summary> /// Creates a new RDFUriReference object that is a copy of the current instance. /// </summary> /// <returns>A new RDFUriReference object that is a copy of the current instance.</returns> public override object Clone() { RDFUriReference clonedReference = new RDFUriReference(this.innerUri.AbsoluteUri); return(clonedReference); }