public abstract class AbstractHTMLDataProvider extends AbstractHttpProvider implements DataProvider
RETRY_AFTER
Constructor and Description |
---|
AbstractHTMLDataProvider() |
Modifier and Type | Method and Description |
---|---|
protected List<String> |
findAdditionalRequestUrls(String resource,
org.jsoup.nodes.Document document,
String requestUrl)
Try to find further URLs in the document that need to be requested to complete the resource
data.
|
protected abstract Map<String,JSoupMapper> |
getMappings(String resource,
String requestUrl) |
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.
|
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, retrieveResource
protected abstract List<String> getTypes(org.openrdf.model.URI resource)
resource
- protected List<String> findAdditionalRequestUrls(String resource, org.jsoup.nodes.Document document, String requestUrl)
resource
- document
- requestUrl
- 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
protected abstract Map<String,JSoupMapper> getMappings(String resource, String requestUrl)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.