コード例 #1
0
        override public void Print(ISparqlPrinter p)
        {
            String text = getString(SP.PropertyText);

            if (text != null)
            {
                if (p.hasInitialBindings())
                {
                    throw new ArgumentException("Queries that only have an sp:text cannot be converted to a query string if initial bindings are present.");
                }
                else
                {
                    p.print(text);
                }
            }
            else
            {
                printSPINRDF(p);
            }
        }