public class DSAPI extends Object implements JSONWritable
| Modifier and Type | Field and Description |
|---|---|
protected com.hp.hpl.jena.rdf.model.Resource |
dataset |
protected String |
description |
protected String |
id |
protected String |
label |
protected DSAPIManager |
man |
protected DSStructure |
structure |
| Constructor and Description |
|---|
DSAPI(DSAPIManager man,
com.hp.hpl.jena.rdf.model.Resource dataset,
com.hp.hpl.jena.rdf.model.Resource dsd) |
| Modifier and Type | Method and Description |
|---|---|
int |
getComponentIndex(String id)
Return the index of a component (identified by ID) within the structure signature,
or -1 if the component is not recognized
|
List<DSAPIComponent> |
getComponents() |
String |
getDescription() |
String |
getId() |
String |
getLabel() |
DSAPIManager |
getMan() |
DSStructure |
getStructure() |
String |
getURI() |
Object[][] |
parseResults(com.hp.hpl.jena.query.ResultSetRewindable rs,
State state)
Convert a SPARQL result set to a flat data array.
|
Projection |
project(org.apache.jena.atlas.json.JsonObject jstate)
Takes a request state as a JSON description, runs the corresponding query
and returns the correct slice of the results table as a JSON wriable object.
|
Projection |
queryData(State state,
Store store) |
void |
writeTo(JSFullWriter out) |
protected DSAPIManager man
protected String id
protected com.hp.hpl.jena.rdf.model.Resource dataset
protected String label
protected String description
protected DSStructure structure
public DSAPI(DSAPIManager man, com.hp.hpl.jena.rdf.model.Resource dataset, com.hp.hpl.jena.rdf.model.Resource dsd)
public String getURI()
public List<DSAPIComponent> getComponents()
public DSAPIManager getMan()
public int getComponentIndex(String id)
public void writeTo(JSFullWriter out)
writeTo in interface JSONWritablepublic String getId()
public String getLabel()
public String getDescription()
public DSStructure getStructure()
public Projection project(org.apache.jena.atlas.json.JsonObject jstate)
public Projection queryData(State state, Store store)
Copyright © 2014. All rights reserved.