public abstract class AbstractXMLDataProvider extends AbstractHttpProvider
RETRY_AFTER
Constructor and Description |
---|
AbstractXMLDataProvider() |
Modifier and Type | Method and Description |
---|---|
protected Map<String,String> |
getNamespaceMappings()
Provide namespace mappings for the XPath expressions from namespace prefix to namespace URI.
|
protected abstract List<String> |
getTypes(org.openrdf.model.URI resource)
Return a list of URIs that should be added as types for each processed resource.
|
protected abstract Map<String,XPathValueMapper> |
getXPathMappings(String requestUrl)
Return a mapping table mapping from RDF properties to XPath Value Mappers.
|
List<String> |
parseResponse(String resource,
String requestUrl,
org.openrdf.model.Model triples,
InputStream in,
String contentType)
Parse the HTTP response entity returned by the web service call and return its contents as a Sesame RDF
repository.
|
buildRequestUrl, isValidContentType, retrieveResource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, listMimeTypes
protected abstract Map<String,XPathValueMapper> getXPathMappings(String requestUrl)
requestUrl
- protected abstract List<String> getTypes(org.openrdf.model.URI resource)
resource
- protected Map<String,String> getNamespaceMappings()
public List<String> parseResponse(String resource, String requestUrl, org.openrdf.model.Model triples, InputStream in, String contentType) throws DataRetrievalException
parseResponse
in class AbstractHttpProvider
resource
- the subject of the data retrievaltriples
- in
- input stream as returned by the remote webservicecontentType
- content type as returned in the HTTP headers of the remote webservice @return an RDF repository containing an RDF representation of the dataset located at the remote resource.IOException
- in case an error occurs while reading the input streamDataRetrievalException
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.