java.lang.Object
org.apache.jena.sparql.core.DatasetGraphWrapper
org.apache.jena.rdfs.DatasetGraphRDFS
- All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable,org.apache.jena.atlas.lib.Sync,DatasetGraph,DatasetGraphWrapperView,Transactional
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jena.sparql.core.Transactional
Transactional.Promote -
Constructor Summary
ConstructorsConstructorDescriptionDatasetGraphRDFS(DatasetGraph dsg, SetupRDFS setup) DatasetGraphRDFS(DatasetGraph dsg, SetupRDFS setup, Context cxt) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Test whether the dataset (including default graph) contains a quad - may include wildcards, Node.ANY or nullbooleanTest whether the dataset contains a quad (including default graph)- may include wildcards, Node.ANY or nullfind()Iterate over all quads in the dataset graphfind(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Find matching quads in the dataset (including default graph) - may include wildcards, Node.ANY or nullFind matching quads in the dataset - may include wildcards, Node.ANY or nullfindNG(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Find matching quads in the dataset in named graphs only - may include wildcards, Node.ANY or nullorg.apache.jena.graph.GraphGet the default graph as a Jena Graphorg.apache.jena.graph.GraphgetGraph(org.apache.jena.graph.Node graphNode) Get the graph named by graphNode : returns null when there is no such graph.org.apache.jena.graph.GraphReturn aGraphthat is the union of all named graphs in this dataset.Methods inherited from class org.apache.jena.sparql.core.DatasetGraphWrapper
abort, add, add, addGraph, begin, begin, begin, clear, close, commit, containsGraph, delete, delete, deleteAny, end, getBase, getBaseForQuery, getContext, getLock, getWrapped, isEmpty, isInTransaction, listGraphNodes, prefixes, promote, promote, removeGraph, size, supportsTransactionAbort, supportsTransactions, sync, toString, transactionMode, transactionType, unwrapMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.jena.sparql.core.DatasetGraph
add, add, addAll, addGraph, clear, close, containsGraph, delete, delete, deleteAny, getContext, getLock, isEmpty, listGraphNodes, prefixes, removeGraph, size, stream, stream, supportsTransactionAbort, supportsTransactionsMethods inherited from interface org.apache.jena.sparql.core.Transactional
abort, begin, begin, begin, calc, calculate, calculateRead, calculateWrite, commit, end, exec, execute, executeRead, executeWrite, isInTransaction, promote, promote, transactionMode, transactionType
-
Constructor Details
-
DatasetGraphRDFS
-
DatasetGraphRDFS
-
-
Method Details
-
getDefaultGraph
public org.apache.jena.graph.Graph getDefaultGraph()Description copied from interface:DatasetGraphGet the default graph as a Jena Graph- Specified by:
getDefaultGraphin interfaceDatasetGraph- Overrides:
getDefaultGraphin classDatasetGraphWrapper
-
getUnionGraph
public org.apache.jena.graph.Graph getUnionGraph()Description copied from interface:DatasetGraphReturn aGraphthat is the union of all named graphs in this dataset. This union graph is read-only (its prefix mapping in the current JVM may be changed but that may not persist).- Specified by:
getUnionGraphin interfaceDatasetGraph- Overrides:
getUnionGraphin classDatasetGraphWrapper
-
getGraph
public org.apache.jena.graph.Graph getGraph(org.apache.jena.graph.Node graphNode) Description copied from interface:DatasetGraphGet the graph named by graphNode : returns null when there is no such graph. NB Whether a dataset contains a graph if there are no triples is not defined - see the specific implementation. Some datasets are "open" - they have all graphs even if no triples.- Specified by:
getGraphin interfaceDatasetGraph- Overrides:
getGraphin classDatasetGraphWrapper
-
find
Description copied from interface:DatasetGraphIterate over all quads in the dataset graph- Specified by:
findin interfaceDatasetGraph- Overrides:
findin classDatasetGraphWrapper
-
find
Description copied from interface:DatasetGraphFind matching quads in the dataset - may include wildcards, Node.ANY or null- Specified by:
findin interfaceDatasetGraph- Overrides:
findin classDatasetGraphWrapper- See Also:
-
Graph.find(Triple)
-
find
public Iterator<Quad> find(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Description copied from interface:DatasetGraphFind matching quads in the dataset (including default graph) - may include wildcards, Node.ANY or null- Specified by:
findin interfaceDatasetGraph- Overrides:
findin classDatasetGraphWrapper- See Also:
-
Graph.find(Node,Node,Node)
-
findNG
public Iterator<Quad> findNG(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Description copied from interface:DatasetGraphFind matching quads in the dataset in named graphs only - may include wildcards, Node.ANY or null- Specified by:
findNGin interfaceDatasetGraph- Overrides:
findNGin classDatasetGraphWrapper- See Also:
-
Graph.find(Node,Node,Node)
-
contains
Description copied from interface:DatasetGraphTest whether the dataset contains a quad (including default graph)- may include wildcards, Node.ANY or null- Specified by:
containsin interfaceDatasetGraph- Overrides:
containsin classDatasetGraphWrapper
-
contains
public boolean contains(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Description copied from interface:DatasetGraphTest whether the dataset (including default graph) contains a quad - may include wildcards, Node.ANY or null- Specified by:
containsin interfaceDatasetGraph- Overrides:
containsin classDatasetGraphWrapper
-