public class ChEMBLRawReader extends Object implements IRawReader<IStructureRecord>
Modifier and Type | Field and Description |
---|---|
protected com.hp.hpl.jena.query.QueryExecution |
ex |
protected IStructureRecord |
record |
protected com.hp.hpl.jena.query.ResultSet |
results |
String |
sparql |
static String |
sparqlEndpoint |
Constructor and Description |
---|
ChEMBLRawReader() |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(Class<? extends org.openscience.cdk.interfaces.IChemObject> arg0) |
void |
addChemObjectIOListener(org.openscience.cdk.io.listener.IChemObjectIOListener arg0) |
<S extends org.openscience.cdk.io.setting.IOSetting> |
addSetting(org.openscience.cdk.io.setting.IOSetting setting) |
void |
addSettings(Collection<org.openscience.cdk.io.setting.IOSetting> settings) |
void |
close() |
org.openscience.cdk.io.formats.IResourceFormat |
getFormat() |
org.openscience.cdk.io.setting.IOSetting[] |
getIOSettings() |
Collection<org.openscience.cdk.io.listener.IChemObjectIOListener> |
getListeners() |
<S extends org.openscience.cdk.io.setting.IOSetting> |
getSetting(String name) |
<S extends org.openscience.cdk.io.setting.IOSetting> |
getSetting(String name,
Class<S> c) |
Collection<org.openscience.cdk.io.setting.IOSetting> |
getSettings() |
void |
handleError(String arg0) |
void |
handleError(String arg0,
Exception arg1) |
void |
handleError(String arg0,
int arg1,
int arg2,
int arg3) |
void |
handleError(String arg0,
int arg1,
int arg2,
int arg3,
Exception arg4) |
boolean |
hasNext() |
boolean |
hasSetting(String name) |
Object |
next() |
IStructureRecord |
nextRecord() |
IStructureRecord |
processSolution(com.hp.hpl.jena.query.QuerySolution row) |
void |
remove() |
void |
removeChemObjectIOListener(org.openscience.cdk.io.listener.IChemObjectIOListener arg0) |
void |
setErrorHandler(org.openscience.cdk.io.IChemObjectReaderErrorHandler arg0) |
void |
setReader(InputStream arg0) |
void |
setReader(Reader arg0) |
void |
setReaderMode(org.openscience.cdk.io.IChemObjectReader.Mode arg0) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected com.hp.hpl.jena.query.QueryExecution ex
protected com.hp.hpl.jena.query.ResultSet results
protected IStructureRecord record
public static final String sparqlEndpoint
public final String sparql
public IStructureRecord nextRecord()
nextRecord
in interface IRawReader<IStructureRecord>
public void handleError(String arg0) throws org.openscience.cdk.exception.CDKException
handleError
in interface org.openscience.cdk.io.IChemObjectReader
org.openscience.cdk.exception.CDKException
public void handleError(String arg0, Exception arg1) throws org.openscience.cdk.exception.CDKException
handleError
in interface org.openscience.cdk.io.IChemObjectReader
org.openscience.cdk.exception.CDKException
public void handleError(String arg0, int arg1, int arg2, int arg3) throws org.openscience.cdk.exception.CDKException
handleError
in interface org.openscience.cdk.io.IChemObjectReader
org.openscience.cdk.exception.CDKException
public void handleError(String arg0, int arg1, int arg2, int arg3, Exception arg4) throws org.openscience.cdk.exception.CDKException
handleError
in interface org.openscience.cdk.io.IChemObjectReader
org.openscience.cdk.exception.CDKException
public void setErrorHandler(org.openscience.cdk.io.IChemObjectReaderErrorHandler arg0)
setErrorHandler
in interface org.openscience.cdk.io.IChemObjectReader
public void setReader(Reader arg0) throws org.openscience.cdk.exception.CDKException
setReader
in interface org.openscience.cdk.io.IChemObjectReader
org.openscience.cdk.exception.CDKException
public void setReader(InputStream arg0) throws org.openscience.cdk.exception.CDKException
setReader
in interface org.openscience.cdk.io.IChemObjectReader
org.openscience.cdk.exception.CDKException
public void setReaderMode(org.openscience.cdk.io.IChemObjectReader.Mode arg0)
setReaderMode
in interface org.openscience.cdk.io.IChemObjectReader
public boolean accepts(Class<? extends org.openscience.cdk.interfaces.IChemObject> arg0)
accepts
in interface org.openscience.cdk.io.IChemObjectIO
public void addChemObjectIOListener(org.openscience.cdk.io.listener.IChemObjectIOListener arg0)
addChemObjectIOListener
in interface org.openscience.cdk.io.IChemObjectIO
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface org.openscience.cdk.io.IChemObjectIO
IOException
public org.openscience.cdk.io.formats.IResourceFormat getFormat()
getFormat
in interface org.openscience.cdk.io.IChemObjectIO
public org.openscience.cdk.io.setting.IOSetting[] getIOSettings()
getIOSettings
in interface org.openscience.cdk.io.IChemObjectIO
public void removeChemObjectIOListener(org.openscience.cdk.io.listener.IChemObjectIOListener arg0)
removeChemObjectIOListener
in interface org.openscience.cdk.io.IChemObjectIO
public IStructureRecord processSolution(com.hp.hpl.jena.query.QuerySolution row) throws Exception
Exception
public Collection<org.openscience.cdk.io.listener.IChemObjectIOListener> getListeners()
getListeners
in interface org.openscience.cdk.io.IChemObjectIO
public <S extends org.openscience.cdk.io.setting.IOSetting> S addSetting(org.openscience.cdk.io.setting.IOSetting setting)
addSetting
in interface org.openscience.cdk.io.IChemObjectIO
public void addSettings(Collection<org.openscience.cdk.io.setting.IOSetting> settings)
addSettings
in interface org.openscience.cdk.io.IChemObjectIO
public boolean hasSetting(String name)
hasSetting
in interface org.openscience.cdk.io.IChemObjectIO
public <S extends org.openscience.cdk.io.setting.IOSetting> S getSetting(String name)
getSetting
in interface org.openscience.cdk.io.IChemObjectIO
public <S extends org.openscience.cdk.io.setting.IOSetting> S getSetting(String name, Class<S> c)
getSetting
in interface org.openscience.cdk.io.IChemObjectIO
public Collection<org.openscience.cdk.io.setting.IOSetting> getSettings()
getSettings
in interface org.openscience.cdk.io.IChemObjectIO
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.