public class RDFInstancesIterator extends RDFDataEntryIterator<weka.core.Instance,weka.core.Attribute>
Modifier and Type | Field and Description |
---|---|
protected weka.core.FastVector |
attributes |
static String |
CompoundURI |
protected weka.core.Instances |
instances |
protected int |
maxNominalValues |
protected Hashtable<String,weka.core.Attribute> |
urilookup |
conformerTemplate, featureTemplate
baseReference, forceReadRDFLocalObjects, iterateSubjects, jenaModel, mediaType, record, recordIterator, reference, referer, template, topObject
Constructor and Description |
---|
RDFInstancesIterator(InputStream in,
org.restlet.data.MediaType mediaType) |
RDFInstancesIterator(com.hp.hpl.jena.rdf.model.Model model) |
RDFInstancesIterator(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.StmtIterator recordIterator) |
RDFInstancesIterator(org.restlet.data.Reference reference,
org.restlet.data.MediaType mediaType,
String referer) |
RDFInstancesIterator(org.restlet.data.Reference reference,
String referer) |
RDFInstancesIterator(org.restlet.representation.Representation representation,
org.restlet.data.MediaType mediaType) |
Modifier and Type | Method and Description |
---|---|
protected weka.core.Attribute |
createFeature(com.hp.hpl.jena.rdf.model.RDFNode feature) |
protected weka.core.Instance |
createRecord() |
weka.core.Instances |
getInstances() |
protected weka.core.FastVector |
parseFeatures() |
protected void |
parseFeatureURI(String uri,
weka.core.Attribute property) |
protected void |
parseFeatureValues(com.hp.hpl.jena.rdf.model.Resource dataEntry,
weka.core.Instance record) |
protected weka.core.Instance |
parseRecord(com.hp.hpl.jena.rdf.model.RDFNode newEntry,
weka.core.Instance record) |
boolean |
readStructure(com.hp.hpl.jena.rdf.model.RDFNode target,
weka.core.Instance record) |
protected void |
setFeatureValue(weka.core.Instance record,
weka.core.Attribute key,
com.hp.hpl.jena.rdf.model.RDFNode value) |
protected void |
setIDChemical(int idchemical) |
protected void |
setIDConformer(int idchemical) |
createTemplate, parseObjectURI
close, createResource, getBaseReference, getCreator, getJenaModel, getMediaType, getPropertyNode, getPropertyValue, getTemplate, getTitle, getURI, hasNext, isCloseModel, isForceReadRDFLocalObjects, isIterateSubjects, next, remove, removeDatasetFragment, setBaseReference, setCloseModel, setForceReadRDFLocalObjects, setIterateSubjects, setMediaType, skip
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public static final String CompoundURI
protected weka.core.FastVector attributes
protected weka.core.Instances instances
protected int maxNominalValues
public RDFInstancesIterator(org.restlet.representation.Representation representation, org.restlet.data.MediaType mediaType) throws org.restlet.resource.ResourceException
org.restlet.resource.ResourceException
public RDFInstancesIterator(org.restlet.data.Reference reference, String referer) throws org.restlet.resource.ResourceException, MalformedURLException, IOException
org.restlet.resource.ResourceException
MalformedURLException
IOException
public RDFInstancesIterator(org.restlet.data.Reference reference, org.restlet.data.MediaType mediaType, String referer) throws org.restlet.resource.ResourceException, MalformedURLException, IOException
org.restlet.resource.ResourceException
MalformedURLException
IOException
public RDFInstancesIterator(InputStream in, org.restlet.data.MediaType mediaType) throws org.restlet.resource.ResourceException, MalformedURLException, IOException
org.restlet.resource.ResourceException
MalformedURLException
IOException
public RDFInstancesIterator(com.hp.hpl.jena.rdf.model.Model model, com.hp.hpl.jena.rdf.model.StmtIterator recordIterator)
public RDFInstancesIterator(com.hp.hpl.jena.rdf.model.Model model)
protected weka.core.Attribute createFeature(com.hp.hpl.jena.rdf.model.RDFNode feature)
createFeature
in class RDFDataEntryIterator<weka.core.Instance,weka.core.Attribute>
protected void parseFeatureURI(String uri, weka.core.Attribute property)
parseFeatureURI
in class RDFDataEntryIterator<weka.core.Instance,weka.core.Attribute>
public boolean readStructure(com.hp.hpl.jena.rdf.model.RDFNode target, weka.core.Instance record)
readStructure
in class RDFDataEntryIterator<weka.core.Instance,weka.core.Attribute>
protected void setFeatureValue(weka.core.Instance record, weka.core.Attribute key, com.hp.hpl.jena.rdf.model.RDFNode value)
setFeatureValue
in class RDFDataEntryIterator<weka.core.Instance,weka.core.Attribute>
protected void setIDChemical(int idchemical)
setIDChemical
in class RDFDataEntryIterator<weka.core.Instance,weka.core.Attribute>
protected void setIDConformer(int idchemical)
setIDConformer
in class RDFDataEntryIterator<weka.core.Instance,weka.core.Attribute>
protected weka.core.Instance createRecord()
createRecord
in class RDFObjectIterator<weka.core.Instance>
protected weka.core.Instance parseRecord(com.hp.hpl.jena.rdf.model.RDFNode newEntry, weka.core.Instance record)
parseRecord
in class RDFDataEntryIterator<weka.core.Instance,weka.core.Attribute>
protected void parseFeatureValues(com.hp.hpl.jena.rdf.model.Resource dataEntry, weka.core.Instance record)
parseFeatureValues
in class RDFDataEntryIterator<weka.core.Instance,weka.core.Attribute>
protected weka.core.FastVector parseFeatures()
public weka.core.Instances getInstances()
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.