Package org.eclipse.lyo.store
Class StoreFactory
- java.lang.Object
-
- org.eclipse.lyo.store.StoreFactory
-
-
Constructor Summary
Constructors Constructor Description StoreFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Storesparql(String queryUrl, String updateUrl)Initialise a SPARQL-compatible Store implementation that does not require authentication.static Storesparql(String queryUrl, String updateUrl, String username, String password)Initialise a SPARQL-compatible Store implementation with authentication via username and password combinations.static StoresparqlInMem()
-
-
-
Method Detail
-
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 URIupdateUrl- 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 URIupdateUrl- SPARQL Update endpoint URIusername- Usernamepassword- Password- Returns:
- Store implementation that communicates with the triplestore via SPARQL.
-
-