|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.config.SailConfig
org.openrdf.sesame.sailimpl.memory.RdfSourceConfig
Extension of SailConfig offering specific utility methods for configuring an org.openrdf.sesame.sailimpl.memory.RdfSource Sail. This class can be used to configure a memory Sail that wraps an RDF data file.
| Constructor Summary | |
RdfSourceConfig(String file)
Creates a new RdfSourceConfig object for an org.openrdf.sesame.sailimpl.memory.RdfSource Sail that will contain the XML-encoded RDF data from specified file. |
|
RdfSourceConfig(String file,
RDFFormat dataFormat)
Creates a new RdfSourceConfig object for an org.openrdf.sesame.sailimpl.memory.RdfSource Sail that will contain the data from specified file. |
|
| Method Summary | |
RDFFormat |
getDataFormat()
Gets the data format of the data in the data file that has been configured for the Sail. |
String |
getFile()
Gets the data file that has been configured for the Sail. |
void |
setDataFormat(RDFFormat dataFormat)
Sets the format of the data in the data file. |
void |
setFile(String file)
Sets the data file for the Sail. |
| Methods inherited from class org.openrdf.sesame.config.SailConfig |
clone, equals, getConfigParameters, getParameter, getSailClass, hashCode, hasParameter, removeParameter, setConfigParameters, setParameter, setParameterKey, setParameterValue, setSailClass |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RdfSourceConfig(String file)
file - The data file.
public RdfSourceConfig(String file,
RDFFormat dataFormat)
file - The data file.dataFormat - The format of the data in the data file. Legal values
are RDFFormat.RDFXML, RDFFormat.NTRIPLES and
RDFFormat.TURTLE.| Method Detail |
public void setFile(String file)
public String getFile()
public void setDataFormat(RDFFormat dataFormat)
dataFormat - One of RDFFormat.RDFXML,
RDFFormat.NTRIPLES and RDFFormat.TURTLE.public RDFFormat getDataFormat()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||