Item
- public abstract class RDFSparqlIterator<Item> extends Object implements Iterator<Item>
Modifier and Type | Field and Description |
---|---|
protected org.restlet.data.Reference |
baseReference |
protected com.hp.hpl.jena.rdf.model.Model |
jenaModel |
protected Item |
nextRecord |
protected com.hp.hpl.jena.rdf.model.RDFNode |
nextRecordNode |
protected com.hp.hpl.jena.query.QueryExecution |
qe |
protected Item |
record |
protected String |
recordIDVar |
protected com.hp.hpl.jena.rdf.model.RDFNode |
recordNode |
protected org.restlet.data.Reference |
reference |
protected String |
referer |
protected com.hp.hpl.jena.query.ResultSet |
resultSet |
Constructor and Description |
---|
RDFSparqlIterator(InputStream in,
org.restlet.data.MediaType mediaType,
String sparql)
OpenTox object iterator over input stream
|
RDFSparqlIterator(com.hp.hpl.jena.rdf.model.Model model,
String sparql)
Allows to initialize the iterator over existing model
|
RDFSparqlIterator(org.restlet.data.Reference reference,
org.restlet.data.MediaType mediaType,
String sparql,
String referer)
OpenTox object iterator - reads RDF representation , given a reference ad mime type
|
RDFSparqlIterator(org.restlet.data.Reference reference,
String sparql,
String referer)
OpenTox object iterator - reads RDF, assumes application/rdf+xml
|
RDFSparqlIterator(org.restlet.representation.Representation representation,
org.restlet.data.MediaType mediaType,
String sparql,
String referer)
OpenTox object iterator - reads restlet representation
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
org.restlet.data.Reference |
getBaseReference() |
com.hp.hpl.jena.rdf.model.Model |
getJenaModel() |
protected com.hp.hpl.jena.rdf.model.RDFNode |
getRecordURI(com.hp.hpl.jena.query.QuerySolution querySolution)
This is considered record ID
|
boolean |
hasNext() |
protected boolean |
isSameRecord(com.hp.hpl.jena.query.QuerySolution querySolution) |
Item |
next() |
protected abstract Item |
parse(com.hp.hpl.jena.query.QuerySolution querySolution,
Item record) |
void |
remove()
Not supported
|
void |
setBaseReference(org.restlet.data.Reference baseReference) |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected com.hp.hpl.jena.rdf.model.Model jenaModel
protected org.restlet.data.Reference reference
protected org.restlet.data.Reference baseReference
protected com.hp.hpl.jena.query.ResultSet resultSet
protected com.hp.hpl.jena.query.QueryExecution qe
protected String recordIDVar
protected com.hp.hpl.jena.rdf.model.RDFNode recordNode
protected Item record
protected Item nextRecord
protected com.hp.hpl.jena.rdf.model.RDFNode nextRecordNode
protected String referer
public RDFSparqlIterator(org.restlet.representation.Representation representation, org.restlet.data.MediaType mediaType, String sparql, String referer) throws org.restlet.resource.ResourceException
representation
- mediaType
- sparql
- org.restlet.resource.ResourceException
public RDFSparqlIterator(org.restlet.data.Reference reference, String sparql, String referer) throws org.restlet.resource.ResourceException, MalformedURLException, IOException
reference
- sparql
- org.restlet.resource.ResourceException
MalformedURLException
IOException
public RDFSparqlIterator(org.restlet.data.Reference reference, org.restlet.data.MediaType mediaType, String sparql, String referer) throws org.restlet.resource.ResourceException, MalformedURLException, IOException
reference
- mediaType
- sparql
- org.restlet.resource.ResourceException
MalformedURLException
IOException
public RDFSparqlIterator(InputStream in, org.restlet.data.MediaType mediaType, String sparql) throws org.restlet.resource.ResourceException
in
- mediaType
- sparql
- org.restlet.resource.ResourceException
public RDFSparqlIterator(com.hp.hpl.jena.rdf.model.Model model, String sparql) throws org.restlet.resource.ResourceException
model
- sparql
- org.restlet.resource.ResourceException
public org.restlet.data.Reference getBaseReference()
public void setBaseReference(org.restlet.data.Reference baseReference)
public void close()
protected void finalize() throws Throwable
public com.hp.hpl.jena.rdf.model.Model getJenaModel()
protected com.hp.hpl.jena.rdf.model.RDFNode getRecordURI(com.hp.hpl.jena.query.QuerySolution querySolution)
querySolution
- protected boolean isSameRecord(com.hp.hpl.jena.query.QuerySolution querySolution)
querySolution
- Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.