Package spark.api

Examples of spark.api.Connection


  public void testMetadata() throws Exception {
    URL serviceUrl = new URL("http://example.org/sparql");
    // dummy data source to pass the URL down to the parser.
    ProtocolDataSource ds = new ProtocolDataSource(serviceUrl);
    try {
      Connection c = ds.getConnection(NoCredentials.INSTANCE);
      Command cmd = c.createCommand("SELECT foo"); // query isn't actually executed.
     
      metadataTest(cmd, "results-with-metadata",
          "http://sample.org/metadata.rdf", "http://example.org/service-description.rdf");
      metadataTest(cmd, "results-with-base-uri",
          "http://sample.org/metadata.rdf", "http://revelytix.com/ns/service-description.rdf", "http://example.com/sparql.ttl");
View Full Code Here

TOP

Related Classes of spark.api.Connection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.