Package com.powsybl.triplestore.api
Class AbstractPowsyblTripleStore
java.lang.Object
com.powsybl.triplestore.api.AbstractPowsyblTripleStore
- All Implemented Interfaces:
TripleStore
- Direct Known Subclasses:
TripleStoreRDF4J
- Author:
- Luma ZamarreƱo <zamarrenolm at aia.es>
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected static String
void
defineQueryPrefix
(String prefix, String cimNamespace) Define namespace prefix bindings that will be used in the text of queries.Obtain the options that have been used to configure this Triplestoreprotected static String
protected OutputStream
outputStream
(DataSource ds, String cname) void
Print a summary of the contents of the Triplestore.protected static String
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.powsybl.triplestore.api.TripleStore
add, add, add, addNamespace, clear, contextNames, getImplementationName, getNamespaces, print, query, read, update, write, write
-
Constructor Details
-
AbstractPowsyblTripleStore
protected AbstractPowsyblTripleStore() -
AbstractPowsyblTripleStore
-
-
Method Details
-
getOptions
Description copied from interface:TripleStore
Obtain the options that have been used to configure this Triplestore- Specified by:
getOptions
in interfaceTripleStore
- Returns:
- options Triplestore configuration options
-
createRdfId
-
defineQueryPrefix
Description copied from interface:TripleStore
Define namespace prefix bindings that will be used in the text of queries. Example:tripleStore.defineQueryPrefix("foaf", "http://xmlns.com/foaf/0.1/");
- Specified by:
defineQueryPrefix
in interfaceTripleStore
- Parameters:
prefix
- the prefix to be used in the text of queries as a replacement for the namespacecimNamespace
- the URL of the namespace
-
print
Description copied from interface:TripleStore
Print a summary of the contents of the Triplestore. Typically a list of contexts and its size (number of statements).- Specified by:
print
in interfaceTripleStore
- Parameters:
liner
- a function that accepts strings (the lines of the summary report)
-
namespaceForContexts
-
rdfDescriptionClass
-
outputStream
-
adjustedQuery
-