public abstract class AbstractPowsyblTripleStore extends Object implements TripleStore
Constructor and Description |
---|
AbstractPowsyblTripleStore() |
Modifier and Type | Method and Description |
---|---|
protected String |
adjustedQuery(String q) |
void |
defineQueryPrefix(String prefix,
String cimNamespace)
Define namespace prefix bindings that will be used in the text of queries.
|
protected static String |
namespaceForContexts() |
protected OutputStream |
outputStream(DataSource ds,
String cname) |
void |
print(Consumer<String> liner)
Print a summary of the contents of the Triplestore.
|
protected static String |
rdfDescriptionClass() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, add, add, addNamespace, clear, contextNames, getImplementationName, getNamespaces, print, query, read, update, write
public void defineQueryPrefix(String prefix, String cimNamespace)
TripleStore
tripleStore.defineQueryPrefix("foaf", "http://xmlns.com/foaf/0.1/");
defineQueryPrefix
in interface TripleStore
prefix
- the prefix to be used in the text of queries as a replacement for the namespacecimNamespace
- the URL of the namespacepublic void print(Consumer<String> liner)
TripleStore
print
in interface TripleStore
liner
- a function that accepts strings (the lines of the summary report)protected static String namespaceForContexts()
protected static String rdfDescriptionClass()
protected OutputStream outputStream(DataSource ds, String cname)
Copyright © 2020. All rights reserved.