Package org.topbraid.jenax.util
Class FromDataset
java.lang.Object
org.topbraid.jenax.util.DelegatingDataset
org.topbraid.jenax.util.FromDataset
- All Implemented Interfaces:
org.apache.jena.query.Dataset,org.apache.jena.sparql.core.Transactional
A Dataset that wraps another Dataset but changes its default and
named graphs based on the FROM and FROM NAMED clauses of a given
Query.
- Author:
- Holger Knublauch
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jena.sparql.core.Transactional
org.apache.jena.sparql.core.Transactional.Promote -
Constructor Summary
ConstructorsConstructorDescriptionFromDataset(org.apache.jena.query.Dataset delegate, org.apache.jena.query.Query query) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsNamedModel(String uri) org.apache.jena.rdf.model.ModelbooleanisEmpty()Methods inherited from class org.topbraid.jenax.util.DelegatingDataset
abort, addNamedModel, addNamedModel, asDatasetGraph, begin, begin, close, commit, containsNamedModel, end, getContext, getDelegate, getLock, getNamedModel, getNamedModel, getUnionModel, isInTransaction, listModelNames, promote, removeNamedModel, removeNamedModel, replaceNamedModel, replaceNamedModel, setDefaultModel, supportsTransactionAbort, supportsTransactions, transactionMode, transactionTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jena.query.Dataset
getPrefixMappingMethods inherited from interface org.apache.jena.sparql.core.Transactional
begin, calc, calculate, calculateRead, calculateWrite, exec, execute, executeRead, executeWrite, promote
-
Constructor Details
-
FromDataset
public FromDataset(org.apache.jena.query.Dataset delegate, org.apache.jena.query.Query query) throws GraphNotFoundException - Throws:
GraphNotFoundException
-
-
Method Details
-
containsNamedModel
- Specified by:
containsNamedModelin interfaceorg.apache.jena.query.Dataset- Overrides:
containsNamedModelin classDelegatingDataset
-
getDefaultModel
public org.apache.jena.rdf.model.Model getDefaultModel()- Specified by:
getDefaultModelin interfaceorg.apache.jena.query.Dataset- Overrides:
getDefaultModelin classDelegatingDataset
-
listNames
- Specified by:
listNamesin interfaceorg.apache.jena.query.Dataset- Overrides:
listNamesin classDelegatingDataset
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceorg.apache.jena.query.Dataset- Overrides:
isEmptyin classDelegatingDataset
-