Item
- public abstract class RDFObjectIterator<Item> extends Object implements Iterator<Item>
Modifier and Type | Field and Description |
---|---|
protected org.restlet.data.Reference |
baseReference |
protected boolean |
forceReadRDFLocalObjects |
protected boolean |
iterateSubjects |
protected com.hp.hpl.jena.ontology.OntModel |
jenaModel |
protected org.restlet.data.MediaType |
mediaType |
protected Item |
record |
protected com.hp.hpl.jena.rdf.model.StmtIterator |
recordIterator |
protected org.restlet.data.Reference |
reference |
protected String |
referer |
protected org.restlet.routing.Template |
template |
protected String |
topObject |
Constructor and Description |
---|
RDFObjectIterator(InputStream in,
org.restlet.data.MediaType mediaType,
String topObject) |
RDFObjectIterator(com.hp.hpl.jena.rdf.model.Model model,
String topObject) |
RDFObjectIterator(com.hp.hpl.jena.rdf.model.Model model,
String topObject,
com.hp.hpl.jena.rdf.model.StmtIterator recordIterator) |
RDFObjectIterator(org.restlet.data.Reference reference,
org.restlet.data.MediaType mediaType,
String topObject,
String referer) |
RDFObjectIterator(org.restlet.data.Reference reference,
String topObject,
String referer) |
RDFObjectIterator(org.restlet.representation.Representation representation,
org.restlet.data.MediaType mediaType,
String topObject) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected abstract Item |
createRecord() |
protected com.hp.hpl.jena.rdf.model.Resource |
createResource(String otclass) |
protected abstract org.restlet.routing.Template |
createTemplate() |
org.restlet.data.Reference |
getBaseReference() |
static String |
getCreator(com.hp.hpl.jena.rdf.model.RDFNode rdfNode) |
com.hp.hpl.jena.ontology.OntModel |
getJenaModel() |
org.restlet.data.MediaType |
getMediaType() |
static com.hp.hpl.jena.rdf.model.RDFNode |
getPropertyNode(com.hp.hpl.jena.rdf.model.Property property,
com.hp.hpl.jena.rdf.model.RDFNode rdfNode) |
static String |
getPropertyValue(com.hp.hpl.jena.rdf.model.Property property,
com.hp.hpl.jena.rdf.model.RDFNode rdfNode) |
org.restlet.routing.Template |
getTemplate() |
static String |
getTitle(com.hp.hpl.jena.rdf.model.RDFNode rdfNode) |
static String |
getURI(com.hp.hpl.jena.rdf.model.RDFNode rdfNode) |
boolean |
hasNext()
Verifies if there are more objects of the type
|
boolean |
isCloseModel() |
boolean |
isForceReadRDFLocalObjects() |
boolean |
isIterateSubjects() |
Item |
next()
Returns next object
|
protected abstract void |
parseObjectURI(com.hp.hpl.jena.rdf.model.RDFNode uri,
Item record) |
protected abstract Item |
parseRecord(com.hp.hpl.jena.rdf.model.RDFNode newEntry,
Item record) |
void |
remove()
Not available
|
static String |
removeDatasetFragment(String uri) |
void |
setBaseReference(org.restlet.data.Reference baseReference)
This is mainly used to create
Template to match record uris and determine if they originate from this service |
void |
setCloseModel(boolean closeModel) |
void |
setForceReadRDFLocalObjects(boolean forceReadRDFLocalObjects) |
void |
setIterateSubjects(boolean iterateSubjects) |
void |
setMediaType(org.restlet.data.MediaType mediaType) |
protected boolean |
skip(com.hp.hpl.jena.rdf.model.Resource newEntry) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected String referer
protected boolean forceReadRDFLocalObjects
protected com.hp.hpl.jena.ontology.OntModel jenaModel
protected Item record
protected com.hp.hpl.jena.rdf.model.StmtIterator recordIterator
protected String topObject
protected org.restlet.data.MediaType mediaType
protected org.restlet.data.Reference baseReference
protected org.restlet.routing.Template template
protected boolean iterateSubjects
protected org.restlet.data.Reference reference
public RDFObjectIterator(org.restlet.representation.Representation representation, org.restlet.data.MediaType mediaType, String topObject) throws org.restlet.resource.ResourceException
org.restlet.resource.ResourceException
public RDFObjectIterator(org.restlet.data.Reference reference, String topObject, String referer) throws org.restlet.resource.ResourceException, MalformedURLException, IOException
org.restlet.resource.ResourceException
MalformedURLException
IOException
public RDFObjectIterator(org.restlet.data.Reference reference, org.restlet.data.MediaType mediaType, String topObject, String referer) throws org.restlet.resource.ResourceException, MalformedURLException, IOException
org.restlet.resource.ResourceException
MalformedURLException
IOException
public RDFObjectIterator(InputStream in, org.restlet.data.MediaType mediaType, String topObject) throws org.restlet.resource.ResourceException
org.restlet.resource.ResourceException
public RDFObjectIterator(com.hp.hpl.jena.rdf.model.Model model, String topObject, com.hp.hpl.jena.rdf.model.StmtIterator recordIterator)
public RDFObjectIterator(com.hp.hpl.jena.rdf.model.Model model, String topObject)
public boolean isForceReadRDFLocalObjects()
public void setForceReadRDFLocalObjects(boolean forceReadRDFLocalObjects)
public com.hp.hpl.jena.ontology.OntModel getJenaModel()
public boolean isCloseModel()
public void setCloseModel(boolean closeModel)
public boolean isIterateSubjects()
public void setIterateSubjects(boolean iterateSubjects)
protected boolean skip(com.hp.hpl.jena.rdf.model.Resource newEntry)
public boolean hasNext()
public void close()
protected com.hp.hpl.jena.rdf.model.Resource createResource(String otclass)
public org.restlet.data.MediaType getMediaType()
public void setMediaType(org.restlet.data.MediaType mediaType)
public org.restlet.routing.Template getTemplate()
public org.restlet.data.Reference getBaseReference()
public void setBaseReference(org.restlet.data.Reference baseReference)
Template
to match record uris and determine if they originate from this servicebaseReference
- protected abstract Item parseRecord(com.hp.hpl.jena.rdf.model.RDFNode newEntry, Item record)
protected abstract Item createRecord()
protected abstract void parseObjectURI(com.hp.hpl.jena.rdf.model.RDFNode uri, Item record)
protected abstract org.restlet.routing.Template createTemplate()
public static String getTitle(com.hp.hpl.jena.rdf.model.RDFNode rdfNode) throws Exception
Exception
public static String getURI(com.hp.hpl.jena.rdf.model.RDFNode rdfNode) throws Exception
Exception
public static String getCreator(com.hp.hpl.jena.rdf.model.RDFNode rdfNode) throws Exception
Exception
public static String getPropertyValue(com.hp.hpl.jena.rdf.model.Property property, com.hp.hpl.jena.rdf.model.RDFNode rdfNode) throws Exception
Exception
public static com.hp.hpl.jena.rdf.model.RDFNode getPropertyNode(com.hp.hpl.jena.rdf.model.Property property, com.hp.hpl.jena.rdf.model.RDFNode rdfNode)
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.