Class SPARQLExtStreamManager
java.lang.Object
org.apache.jena.riot.system.stream.StreamManager
fr.mines_stetienne.ci.sparql_generate.stream.SPARQLExtStreamManager
public class SPARQLExtStreamManager
extends org.apache.jena.riot.system.stream.StreamManager
Extends the StreamManager class with content negociation capabilities.
- Author:
- Maxime Lefrançois
-
Field Summary
Fields inherited from class org.apache.jena.riot.system.stream.StreamManager
logAllLookups -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLocator(LocatorAccept loc) Add a locator to the end of the locators listbooleanstatic SPARQLExtStreamManagerstatic SPARQLExtStreamManagerstatic SPARQLExtStreamManagermakeStreamManager(LocatorAccept locator) static SPARQLExtStreamManagermakeStreamManager(LocatorAccept locator, LocationMapperAccept mapper) mapRequest(LookUpRequest _request) mapURI(LookUpRequest request) Deprecated.org.apache.jena.atlas.web.TypedInputStreamopen(LookUpRequest _request) Open a file using the locators of this StreamManager.org.apache.jena.atlas.web.TypedInputStreamDeprecated.org.apache.jena.atlas.web.TypedInputStreamopenNoMap(LookUpRequest request) org.apache.jena.atlas.web.TypedInputStreamDeprecated.org.apache.jena.atlas.web.TypedInputStreamopenNoMapOrNull(LookUpRequest request) org.apache.jena.atlas.web.TypedInputStreamopenNoMapOrNull(String filenameOrURI) Deprecated.org.apache.jena.atlas.web.TypedInputStreamopenOrNull(LookUpRequest _request) Open a file using the locators of this StreamManager.voidsetFailOnMissingDocument(boolean failOnMissingDocument) By default,open(LookUpRequest)returns null when no locator finds the document: the iterator gives no solution, the variable of the SOURCE clause is unbound, the graph of the FROM clause is empty.voidsetLocationMapper(LocationMapperAccept _mapper) voidsetLocationMapper(org.apache.jena.rdf.model.Model configurationModel) voidsetLocationMapper(org.apache.jena.riot.system.stream.LocationMapper _mapper) Deprecated.Methods inherited from class org.apache.jena.riot.system.stream.StreamManager
addLocator, clearLocators, clone, createStd, get, get, getLocationMapper, hasMapping, locationMapper, locationMapper, locators, mapURI, remove, setGlobal
-
Method Details
-
setFailOnMissingDocument
public void setFailOnMissingDocument(boolean failOnMissingDocument) By default,open(LookUpRequest)returns null when no locator finds the document: the iterator gives no solution, the variable of the SOURCE clause is unbound, the graph of the FROM clause is empty. If set, it throws aDocumentNotFoundExceptioninstead, which stops the execution.- Parameters:
failOnMissingDocument- true to fail on a missing document.
-
isFailOnMissingDocument
public boolean isFailOnMissingDocument()- Returns:
- true if a missing document stops the execution.
-
makeStreamManager
-
makeStreamManager
-
makeStreamManager
-
makeStreamManager
public static SPARQLExtStreamManager makeStreamManager(LocatorAccept locator, LocationMapperAccept mapper) -
open
Deprecated.Open a file using the locators of this StreamManager. Returns null if not found.- Overrides:
openin classorg.apache.jena.riot.system.stream.StreamManager
-
open
Open a file using the locators of this StreamManager. Returns null if not found, or throws aDocumentNotFoundExceptionifsetFailOnMissingDocument(boolean)is set. -
openOrNull
Open a file using the locators of this StreamManager. Returns null if not found, whateversetFailOnMissingDocument(boolean): for the look-ups that may fail, such as that of a function IRI. -
mapURI
Deprecated. -
mapRequest
-
openNoMap
Deprecated.Open a file using the locators of this FileManager but without location mapping. Throws RiotNotFoundException if not found.- Overrides:
openNoMapin classorg.apache.jena.riot.system.stream.StreamManager
-
openNoMap
-
openNoMapOrNull
Deprecated.Open a file using the locators of this FileManager without location mapping. Return null if not found- Overrides:
openNoMapOrNullin classorg.apache.jena.riot.system.stream.StreamManager
-
openNoMapOrNull
-
setLocationMapper
@Deprecated public void setLocationMapper(org.apache.jena.riot.system.stream.LocationMapper _mapper) Deprecated.Set the location mapping- Overrides:
setLocationMapperin classorg.apache.jena.riot.system.stream.StreamManager
-
setLocationMapper
-
setLocationMapper
public void setLocationMapper(org.apache.jena.rdf.model.Model configurationModel) -
addLocator
Add a locator to the end of the locators list
-