Package com.powsybl.triplestore.api
Class TripleStoreFactory
- java.lang.Object
-
- com.powsybl.triplestore.api.TripleStoreFactory
-
public final class TripleStoreFactory extends Object
Factory for the creation of Triplestore databases. It relies on named factory services to create instances.- Author:
- Luma ZamarreƱo
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_IMPLEMENTATION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>
allImplementations()
List all Triplestore implementations available.static TripleStore
copy(TripleStore source)
Crate a Triplestore that is a copy of the given Triplestore.static TripleStore
create()
Create a Triplestore database using the default implementation.static TripleStore
create(TripleStoreOptions options)
Create a Triplestore database using the default implementation and given options.static TripleStore
create(String impl)
Create a Triplestore database using the given implementation.static TripleStore
create(String impl, TripleStoreOptions options)
Create a Triplestore database using the given implementation and options.static String
defaultImplementation()
Get the name of the default Triplestore implementation.static List<String>
implementationsBadNestedGraphClauses()
List all available Triplestore implementations that have problems with nested graph clauses in SPARQL queries.static List<String>
implementationsWorkingWithNestedGraphClauses()
List all available Triplestore implementations that support nested graph clauses in SPARQL queries.static List<String>
onlyDefaultImplementation()
Get a list containing only the name of the default Triplestore implementation.
-
-
-
Field Detail
-
DEFAULT_IMPLEMENTATION
public static final String DEFAULT_IMPLEMENTATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static TripleStore create()
Create a Triplestore database using the default implementation.- Returns:
- a Triplestore based on the default implementation
-
create
public static TripleStore create(TripleStoreOptions options)
Create a Triplestore database using the default implementation and given options.- Parameters:
options
- Triplestore configuration options- Returns:
- a Triplestore based on the default implementation
-
copy
public static TripleStore copy(TripleStore source)
Crate a Triplestore that is a copy of the given Triplestore. Copied Triplestore will be based on the same implementation of the source Triplestore.- Parameters:
source
- the source Triplestore- Returns:
- a new Triplestore that is a copy of the source Triplestore
-
create
public static TripleStore create(String impl)
Create a Triplestore database using the given implementation.- Parameters:
impl
- the name of the Triplestore implementation that must be used- Returns:
- a Triplestore based on the given implementation
-
create
public static TripleStore create(String impl, TripleStoreOptions options)
Create a Triplestore database using the given implementation and options.- Parameters:
impl
- the name of the Triplestore implementation that must be usedoptions
- for Triplestore configuration- Returns:
- a Triplestore based on the given implementation
-
allImplementations
public static List<String> allImplementations()
List all Triplestore implementations available.- Returns:
- a list with the names of all available Triplestore implementations
-
implementationsWorkingWithNestedGraphClauses
public static List<String> implementationsWorkingWithNestedGraphClauses()
List all available Triplestore implementations that support nested graph clauses in SPARQL queries.- Returns:
- a list with the names of all available Triplestore implementations supporting nested graph clauses in SPARQL queries
-
implementationsBadNestedGraphClauses
public static List<String> implementationsBadNestedGraphClauses()
List all available Triplestore implementations that have problems with nested graph clauses in SPARQL queries.- Returns:
- a list with the names of all available Triplestore implementations that have problems with nested graph clauses in SPARQL queries
-
onlyDefaultImplementation
public static List<String> onlyDefaultImplementation()
Get a list containing only the name of the default Triplestore implementation.- Returns:
- a list with the name of the default Triplestore implementation
-
defaultImplementation
public static String defaultImplementation()
Get the name of the default Triplestore implementation.- Returns:
- the name of the default Triplestore implementation
-
-