public class OTDatasetRDFReport extends OTObject
Modifier and Type | Field and Description |
---|---|
protected String |
application |
protected OTDataset |
dataset |
protected com.hp.hpl.jena.rdf.model.Model |
jenaModel |
protected int |
page |
protected int |
pageSize |
protected static String |
queryCompounds |
protected static String |
queryData |
protected static String |
queryPredictedFeatures |
protected org.restlet.data.Reference |
requestref |
protected boolean |
showEndpoints |
protected boolean |
showFeatures |
dataset_service, forbidden, form, name, pollInterval, pollTimeout, selected, service, uri
Modifier | Constructor and Description |
---|---|
protected |
OTDatasetRDFReport(OTDataset dataset,
boolean showEndpoints,
OTFeatures endpoints,
boolean showModels,
OTFeatures features,
String application,
int page,
int pageSize,
String representation) |
protected |
OTDatasetRDFReport(org.restlet.data.Reference uri) |
Modifier and Type | Method and Description |
---|---|
OTDatasetRDFReport |
download(OutputStream out,
org.restlet.data.MediaType media) |
void |
endRow(int row,
String compound,
Writer writer) |
String |
footer() |
com.hp.hpl.jena.rdf.model.Model |
getJenaModel() |
protected static String |
getModelColumn(com.hp.hpl.jena.query.QuerySolution solution,
org.restlet.data.Reference rootReference) |
protected static String |
getModelURI(com.hp.hpl.jena.query.QuerySolution solution) |
protected static String |
getNameColumn(com.hp.hpl.jena.query.QuerySolution solution,
String caption) |
String |
getPage(int page,
int pageSize,
boolean removeHeader) |
String |
getPage(int page,
int pageSize,
boolean removeHeader,
boolean endpoints,
boolean models) |
static String |
getQueryString(OTDataset dataset,
boolean showEndpoints,
OTFeatures endpoints,
boolean showModels,
OTFeatures features,
String application,
int page,
int pageSize,
String representation) |
org.restlet.data.Reference |
getRequestref() |
static String |
getString(com.hp.hpl.jena.rdf.model.RDFNode node) |
protected static String |
getValueColumn(com.hp.hpl.jena.query.QuerySolution solution) |
String |
header() |
void |
newRow(int row,
String compound,
String title,
String value,
Writer writer) |
String |
next(boolean removeHeader) |
String |
pageNavigator() |
String |
prev(boolean removeHeader) |
static int |
renderCompoundFeatures(String sparqlQuery,
com.hp.hpl.jena.rdf.model.Model model,
Writer writer,
String compoundURI,
String param,
String caption,
org.restlet.data.Reference rootReference) |
static OTDatasetRDFReport |
report(OTDataset dataset,
boolean showEndpoints,
OTFeatures endpoints,
boolean showModels,
OTFeatures features,
String application,
int page,
int pageSize) |
void |
rowValue(int row,
int col,
String compound,
String title,
String value,
Writer writer) |
void |
setJenaModel(com.hp.hpl.jena.rdf.model.Model jenaModel) |
OTDatasetRDFReport |
setRequestref(org.restlet.data.Reference requestref) |
OTDatasetRDFReport |
write(Writer writer) |
protected void |
writeData(int row,
String cmp,
Writer writer) |
protected void |
writeIdentifiers(Writer writer) |
protected void |
writeModels(int row,
String cmp,
Writer writer) |
compareTo, create, delete, equals, get, getDataset_service, getName, getPage, getPagedReference, getUri, isForbidden, isSelected, object, object, post, post, put, readTextLineAsName, send, send, setName, setSelected, toString, wait, withName, withParams, withParams
protected static String queryCompounds
protected static String queryData
protected static String queryPredictedFeatures
protected com.hp.hpl.jena.rdf.model.Model jenaModel
protected String application
protected OTDataset dataset
protected int page
protected int pageSize
protected boolean showEndpoints
protected boolean showFeatures
protected org.restlet.data.Reference requestref
protected OTDatasetRDFReport(org.restlet.data.Reference uri)
protected OTDatasetRDFReport(OTDataset dataset, boolean showEndpoints, OTFeatures endpoints, boolean showModels, OTFeatures features, String application, int page, int pageSize, String representation) throws Exception
Exception
public com.hp.hpl.jena.rdf.model.Model getJenaModel()
public void setJenaModel(com.hp.hpl.jena.rdf.model.Model jenaModel)
public org.restlet.data.Reference getRequestref()
public OTDatasetRDFReport setRequestref(org.restlet.data.Reference requestref)
public static OTDatasetRDFReport report(OTDataset dataset, boolean showEndpoints, OTFeatures endpoints, boolean showModels, OTFeatures features, String application, int page, int pageSize) throws Exception
Exception
public static String getQueryString(OTDataset dataset, boolean showEndpoints, OTFeatures endpoints, boolean showModels, OTFeatures features, String application, int page, int pageSize, String representation) throws Exception
Exception
public OTDatasetRDFReport write(Writer writer) throws Exception
Exception
public String header()
public String footer()
public void newRow(int row, String compound, String title, String value, Writer writer) throws IOException
IOException
public void endRow(int row, String compound, Writer writer) throws IOException
IOException
public void rowValue(int row, int col, String compound, String title, String value, Writer writer) throws IOException
IOException
public String getPage(int page, int pageSize, boolean removeHeader) throws Exception
Exception
public String getPage(int page, int pageSize, boolean removeHeader, boolean endpoints, boolean models) throws Exception
Exception
public static String getString(com.hp.hpl.jena.rdf.model.RDFNode node) throws Exception
Exception
protected void writeModels(int row, String cmp, Writer writer) throws Exception
Exception
protected void writeData(int row, String cmp, Writer writer) throws Exception
Exception
public static int renderCompoundFeatures(String sparqlQuery, com.hp.hpl.jena.rdf.model.Model model, Writer writer, String compoundURI, String param, String caption, org.restlet.data.Reference rootReference) throws Exception
Exception
protected static String getModelURI(com.hp.hpl.jena.query.QuerySolution solution)
protected static String getModelColumn(com.hp.hpl.jena.query.QuerySolution solution, org.restlet.data.Reference rootReference)
protected static String getNameColumn(com.hp.hpl.jena.query.QuerySolution solution, String caption)
protected static String getValueColumn(com.hp.hpl.jena.query.QuerySolution solution)
public OTDatasetRDFReport download(OutputStream out, org.restlet.data.MediaType media) throws Exception
Exception
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.