Beispiel #1
0
        /**
         * Creates a new Variable as a blank node in a given Model.
         * @param model  the Model
         * @param varName  the name of the variable
         * @return the Variable
         */
        public static IVariable createVariable(SpinProcessor model, String varName)
        {
            IVariable variable = (IVariable)model.CreateResource(SP.ClassVariable).As(typeof(VariableImpl));

            variable.AddProperty(SP.PropertyVarName, RDFUtil.CreateLiteralNode(varName));
            return(variable);
        }