QueryExample() public méthode

public QueryExample ( string query ) : void
query string
Résultat void
Exemple #1
0
        static void Main(string[] args)
        {
            Program program = new Program();

            program.RemoveAllData();
            program.CreateExampleGraph("http://example/bookStore");
            program.LoadExampleGraph("http://example/bookStore");
            program.UpdateExampleGraph("http://example/bookStore");
            program.QueryExample("SELECT * { ?s ?p ?o } LIMIT 1");
            program.QueryWithTimeoutExample("SELECT * { ?s ?p ?o } LIMIT 1", 1);
            program.DeleteGraphExample("http://example/bookStore");

            Console.ReadKey();
        }
        static void Main(string[] args)
        {
            Program program = new Program();

            program.RemoveAllData();
            program.CreateExampleGraph("http://example/bookStore");
            program.LoadExampleGraph("http://example/bookStore");
            program.UpdateExampleGraph("http://example/bookStore");
            program.QueryExample("SELECT * { ?s ?p ?o } LIMIT 1");
            program.QueryWithTimeoutExample("SELECT * { ?s ?p ?o } LIMIT 1", 1);
            program.DeleteGraphExample("http://example/bookStore");

            Console.ReadKey();
        }