Package de.dfki.sds.aticsqlite
Class SqliteAticGraph
java.lang.Object
de.dfki.sds.aticsqlite.SqliteAticGraph
- All Implemented Interfaces:
de.dfki.sds.atic.jenatic.AticGraph,org.apache.jena.graph.Graph
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.jena.graph.Nodestatic booleanFields inherited from interface org.apache.jena.graph.Graph
emptyGraph -
Constructor Summary
ConstructorsConstructorDescriptionSqliteAticGraph(List<de.dfki.sds.atic.api.IdAndUri> idAndUris, SqliteAticDatasetGraph datasetGraph) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Iterator<org.apache.jena.graph.Triple> iter, de.dfki.sds.atic.jenatic.InvocationContext ctx, int bufferSize, int batchSize, int parallelism) voidadd(org.apache.jena.graph.Triple t, de.dfki.sds.atic.jenatic.InvocationContext ctx) List<org.apache.jena.graph.Node>asNodes()org.apache.jena.riot.system.StreamRDFasStreamRDF(de.dfki.sds.atic.jenatic.InvocationContext ctx, int bufferSize, int batchSize, int parallelism) voidclear(de.dfki.sds.atic.jenatic.InvocationContext ctx) voidclose(de.dfki.sds.atic.jenatic.InvocationContext ctx) booleancontains(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o, de.dfki.sds.atic.jenatic.InvocationContext ctx) booleancontains(org.apache.jena.graph.Triple t, de.dfki.sds.atic.jenatic.InvocationContext ctx) voiddelete(org.apache.jena.graph.Triple t, de.dfki.sds.atic.jenatic.InvocationContext ctx) booleandependsOn(org.apache.jena.graph.Graph other, de.dfki.sds.atic.jenatic.InvocationContext ctx) org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Triple>find(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o, de.dfki.sds.atic.jenatic.InvocationContext ctx) org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Triple>find(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o, Integer spoLimit, Integer spoOffset, Integer splLimit, Integer splOffset, de.dfki.sds.atic.jenatic.InvocationContext ctx) org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Triple>find(org.apache.jena.graph.Triple t, de.dfki.sds.atic.jenatic.InvocationContext ctx) org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Triple>findSPL(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o, Integer limit, Integer offset, boolean edit, Consumer<de.dfki.sds.atic.api.IdAndUriTriple> dbTripleConsumer, de.dfki.sds.atic.jenatic.InvocationContext ctx) org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Triple>findSPO(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o, Integer limit, Integer offset, boolean edit, Consumer<de.dfki.sds.atic.api.IdAndUriTriple> dbTripleConsumer, de.dfki.sds.atic.jenatic.InvocationContext ctx) static intstatic intorg.apache.jena.graph.GraphEventManagerorg.apache.jena.shared.PrefixMappinggetPrefixMapping(de.dfki.sds.atic.jenatic.InvocationContext ctx) org.apache.jena.graph.TransactionHandlerbooleanisClosed(de.dfki.sds.atic.jenatic.InvocationContext ctx) booleanisEmpty(de.dfki.sds.atic.jenatic.InvocationContext ctx) booleanisIsomorphicWith(org.apache.jena.graph.Graph g, de.dfki.sds.atic.jenatic.InvocationContext ctx) voidremove(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o, de.dfki.sds.atic.jenatic.InvocationContext ctx) static voidsetDefaultBatchSize(int defaultBatchSize) static voidsetDefaultBufferAndBatchSize(int defaultSize) static voidsetDefaultBufferSize(int defaultBufferSize) intsize(de.dfki.sds.atic.jenatic.InvocationContext ctx) static voidvalid(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) static voidvalid(org.apache.jena.graph.Triple t) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.dfki.sds.atic.jenatic.AticGraph
add, clear, close, contains, contains, delete, dependsOn, find, find, getPrefixMapping, isClosed, isEmpty, isIsomorphicWith, remove, sizeMethods inherited from interface org.apache.jena.graph.Graph
add, delete, find, getCapabilities, sizeLong, stream, stream
-
Field Details
-
ATIC_CONFIDENCE
public static final org.apache.jena.graph.Node ATIC_CONFIDENCE -
PRINT_FIND
public static boolean PRINT_FIND
-
-
Constructor Details
-
SqliteAticGraph
public SqliteAticGraph(List<de.dfki.sds.atic.api.IdAndUri> idAndUris, SqliteAticDatasetGraph datasetGraph)
-
-
Method Details
-
add
public void add(org.apache.jena.graph.Triple t, de.dfki.sds.atic.jenatic.InvocationContext ctx) - Specified by:
addin interfacede.dfki.sds.atic.jenatic.AticGraph
-
add
public void add(Iterator<org.apache.jena.graph.Triple> iter, de.dfki.sds.atic.jenatic.InvocationContext ctx, int bufferSize, int batchSize, int parallelism) -
asStreamRDF
public org.apache.jena.riot.system.StreamRDF asStreamRDF(de.dfki.sds.atic.jenatic.InvocationContext ctx, int bufferSize, int batchSize, int parallelism) -
delete
public void delete(org.apache.jena.graph.Triple t, de.dfki.sds.atic.jenatic.InvocationContext ctx) - Specified by:
deletein interfacede.dfki.sds.atic.jenatic.AticGraph
-
remove
public void remove(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o, de.dfki.sds.atic.jenatic.InvocationContext ctx) - Specified by:
removein interfacede.dfki.sds.atic.jenatic.AticGraph
-
clear
public void clear(de.dfki.sds.atic.jenatic.InvocationContext ctx) - Specified by:
clearin interfacede.dfki.sds.atic.jenatic.AticGraph
-
find
public org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Triple> find(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o, de.dfki.sds.atic.jenatic.InvocationContext ctx) - Specified by:
findin interfacede.dfki.sds.atic.jenatic.AticGraph
-
find
public org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Triple> find(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o, Integer spoLimit, Integer spoOffset, Integer splLimit, Integer splOffset, de.dfki.sds.atic.jenatic.InvocationContext ctx) -
findSPO
public org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Triple> findSPO(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o, Integer limit, Integer offset, boolean edit, Consumer<de.dfki.sds.atic.api.IdAndUriTriple> dbTripleConsumer, de.dfki.sds.atic.jenatic.InvocationContext ctx) -
findSPL
public org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Triple> findSPL(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o, Integer limit, Integer offset, boolean edit, Consumer<de.dfki.sds.atic.api.IdAndUriTriple> dbTripleConsumer, de.dfki.sds.atic.jenatic.InvocationContext ctx) -
contains
public boolean contains(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o, de.dfki.sds.atic.jenatic.InvocationContext ctx) - Specified by:
containsin interfacede.dfki.sds.atic.jenatic.AticGraph
-
size
public int size(de.dfki.sds.atic.jenatic.InvocationContext ctx) - Specified by:
sizein interfacede.dfki.sds.atic.jenatic.AticGraph
-
valid
public static void valid(org.apache.jena.graph.Triple t) -
valid
public static void valid(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) -
contains
public boolean contains(org.apache.jena.graph.Triple t, de.dfki.sds.atic.jenatic.InvocationContext ctx) - Specified by:
containsin interfacede.dfki.sds.atic.jenatic.AticGraph
-
find
public org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Triple> find(org.apache.jena.graph.Triple t, de.dfki.sds.atic.jenatic.InvocationContext ctx) - Specified by:
findin interfacede.dfki.sds.atic.jenatic.AticGraph
-
isEmpty
public boolean isEmpty(de.dfki.sds.atic.jenatic.InvocationContext ctx) - Specified by:
isEmptyin interfacede.dfki.sds.atic.jenatic.AticGraph
-
close
public void close(de.dfki.sds.atic.jenatic.InvocationContext ctx) - Specified by:
closein interfacede.dfki.sds.atic.jenatic.AticGraph
-
isClosed
public boolean isClosed(de.dfki.sds.atic.jenatic.InvocationContext ctx) - Specified by:
isClosedin interfacede.dfki.sds.atic.jenatic.AticGraph
-
getPrefixMapping
public org.apache.jena.shared.PrefixMapping getPrefixMapping(de.dfki.sds.atic.jenatic.InvocationContext ctx) - Specified by:
getPrefixMappingin interfacede.dfki.sds.atic.jenatic.AticGraph
-
getTransactionHandler
public org.apache.jena.graph.TransactionHandler getTransactionHandler()- Specified by:
getTransactionHandlerin interfaceorg.apache.jena.graph.Graph
-
getEventManager
public org.apache.jena.graph.GraphEventManager getEventManager()- Specified by:
getEventManagerin interfaceorg.apache.jena.graph.Graph
-
isIsomorphicWith
public boolean isIsomorphicWith(org.apache.jena.graph.Graph g, de.dfki.sds.atic.jenatic.InvocationContext ctx) - Specified by:
isIsomorphicWithin interfacede.dfki.sds.atic.jenatic.AticGraph
-
dependsOn
public boolean dependsOn(org.apache.jena.graph.Graph other, de.dfki.sds.atic.jenatic.InvocationContext ctx) - Specified by:
dependsOnin interfacede.dfki.sds.atic.jenatic.AticGraph
-
getDefaultBufferSize
public static int getDefaultBufferSize() -
setDefaultBufferSize
public static void setDefaultBufferSize(int defaultBufferSize) -
getDefaultBatchSize
public static int getDefaultBatchSize() -
setDefaultBatchSize
public static void setDefaultBatchSize(int defaultBatchSize) -
setDefaultBufferAndBatchSize
public static void setDefaultBufferAndBatchSize(int defaultSize) -
asNodes
-