Class StoreFactory

java.lang.Object
org.eclipse.lyo.store.StoreFactory

public class StoreFactory extends Object
Provides factory methods to instantiate concrete implementations of Store that keep the triplestore information in various ways (RAM, disk, over the network).
Since:
0.16.0
Version:
$version-stub$
Author:
Andrew Berezovskyi (andriib@kth.se)
  • Constructor Details

    • StoreFactory

      public StoreFactory()
  • Method Details

    • sparql

      public static Store sparql(String queryUrl, String updateUrl)
      Initialise a SPARQL-compatible Store implementation that does not require authentication.
      Parameters:
      queryUrl - SPARQL Query endpoint URI
      updateUrl - SPARQL Update endpoint URI
      Returns:
      Store implementation that communicates with the triplestore via SPARQL.
    • sparqlInMem

      public static Store sparqlInMem()
    • sparql

      public static Store sparql(String queryUrl, String updateUrl, String username, String password)
      Initialise a SPARQL-compatible Store implementation with authentication via username and password combinations. Authentication works with the basic and digest HTTP authentication schemes.
      Parameters:
      queryUrl - SPARQL Query endpoint URI
      updateUrl - SPARQL Update endpoint URI
      username - Username
      password - Password
      Returns:
      Store implementation that communicates with the triplestore via SPARQL.