RDFSharp.Query.RDFVariable.RDFVariable C# (CSharp) Method

RDFVariable() public method

Default-ctor to build a named SPARQL variable
public RDFVariable ( String variableName ) : System
variableName String
return System
        public RDFVariable(String variableName)
        {
            if (variableName != null && variableName.Trim() != String.Empty) {
                this.VariableName     = "?" + variableName.Trim().ToUpperInvariant();
                this.PatternMemberID  = RDFModelUtilities.CreateHash(this.ToString());
            }
            else {
                throw new RDFQueryException("Cannot create RDFVariable because given \"variableName\" parameter is null or empty.");
            }
        }