Package com.powsybl.triplestore.api
Class TripleStoreFactory
java.lang.Object
com.powsybl.triplestore.api.TripleStoreFactory
Factory for the creation of Triplestore databases.
It relies on named factory services to create instances.
- Author:
- Luma ZamarreƱo <zamarrenolm at aia.es>
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionList 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 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
Get the name of the default Triplestore implementation.List all available Triplestore implementations that have problems with nested graph clauses in SPARQL queries.List all available Triplestore implementations that support nested graph clauses in SPARQL queries.Get a list containing only the name of the default Triplestore implementation.
-
Field Details
-
DEFAULT_IMPLEMENTATION
- See Also:
-
-
Method Details
-
create
Create a Triplestore database using the default implementation.- Returns:
- a Triplestore based on the default implementation
-
create
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
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
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
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
List all Triplestore implementations available.- Returns:
- a list with the names of all available Triplestore implementations
-
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
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
Get a list containing only the name of the default Triplestore implementation.- Returns:
- a list with the name of the default Triplestore implementation
-
defaultImplementation
Get the name of the default Triplestore implementation.- Returns:
- the name of the default Triplestore implementation
-