Package | Description |
---|---|
com.epimorphics.lda.bindings |
The bindings package contains classes representing the
bindings of linked-data-API variables.
|
com.epimorphics.lda.core |
The core package contains the core of Elda's functionality: the handling
of endpoint requests and select and view query construction.
|
com.epimorphics.lda.query |
The query package contains the classes which
construct SPARQL queries for the item-selection part
of the LDA process.
|
com.epimorphics.lda.renderers |
The renderers package contains the Renderer interface and the standard
implementations -- HTML, JSON, XML, Turtle -- and the infrastructure for
accessing them.
|
com.epimorphics.lda.renderers.velocity |
A renderer, based on Apache Velocity, for generating HTML views
of Elda resultsets.
|
com.epimorphics.lda.specs |
The specs package contains the classes that interpret linked
data API configurations and their endpoints.
|
com.epimorphics.util |
The util package contains convenience classes.
|
Modifier and Type | Method and Description |
---|---|
Bindings |
Bindings.copy()
Answer a copy of this ValValues.
|
Bindings |
Bindings.copyWithDefaults(Bindings defaults)
Answer a copy of this Bindings with the given defaults.
|
static Bindings |
Bindings.createContext(Bindings bindings,
MultiMap<String,String> queryParams)
Answer a new Bindings based on
bindings with additional
bindings from the query parameters. |
static Bindings |
VariableExtractor.findAndBindVariables(Bindings bound,
com.hp.hpl.jena.rdf.model.Resource root) |
static Bindings |
VariableExtractor.findAndBindVariables(com.hp.hpl.jena.rdf.model.Resource root) |
Bindings |
Bindings.put(String name,
String valueString)
Bind
name to a LiteralNode which is a plain string with the
given valueString as its lexical form. |
Bindings |
Bindings.put(String name,
Value v)
Bind
name to the value v . |
Bindings |
Bindings.putAll(Bindings other)
Add all the entries from
other to this ValValues,
overwriting any existing bindings with the same names. |
Bindings |
Bindings.putAny(String key,
Object value)
Associate the arbitrarry
value with the specified
key . |
Bindings |
Bindings.updateAll(Map<String,String> update)
Update all the entries in this Bindings to have the values that are
mentioned in update.
|
static Bindings |
Bindings.uplift(Map<String,String> bindings)
Answer a new Bindings constructed from the given map by converting the
values into a string-valued Value.
|
Modifier and Type | Method and Description |
---|---|
Bindings |
Bindings.copyWithDefaults(Bindings defaults)
Answer a copy of this Bindings with the given defaults.
|
static Bindings |
Bindings.createContext(Bindings bindings,
MultiMap<String,String> queryParams)
Answer a new Bindings based on
bindings with additional
bindings from the query parameters. |
static Bindings |
VariableExtractor.findAndBindVariables(Bindings bound,
com.hp.hpl.jena.rdf.model.Resource root) |
static void |
VariableExtractor.findVariables(com.hp.hpl.jena.rdf.model.Resource root,
Bindings bound)
Find variable declarations hanging off
root . |
Bindings |
Bindings.putAll(Bindings other)
Add all the entries from
other to this ValValues,
overwriting any existing bindings with the same names. |
boolean |
Bindings.sameValuesAs(Bindings other)
Compare this binding with the other one, forcing evaluations along the
way.
|
Constructor and Description |
---|
Bindings(Bindings initial) |
Bindings(Bindings bindings,
Set<String> parameterNames) |
Bindings(Bindings initial,
Set<String> parameterNames,
URLforResource ufr) |
Bindings(Bindings initial,
URLforResource ufr) |
Bindings(Set<String> parameterNames,
Bindings initial) |
Modifier and Type | Field and Description |
---|---|
protected Bindings |
EndpointMetadata.bindings |
Bindings |
ResponseResult.bindings |
Bindings |
APIEndpoint.Request.context |
Modifier and Type | Method and Description |
---|---|
Bindings |
APIEndpointImpl.defaults() |
Bindings |
APIEndpoint.defaults()
Return any default bindings that this endpoint has set up (which need
not be ones specified by a config).
|
Modifier and Type | Method and Description |
---|---|
static void |
EndpointMetadata.addAllMetadata(APIResultSet.MergedModels mergedModels,
URI ru,
com.hp.hpl.jena.rdf.model.Resource uriForDefinition,
Bindings bindings,
CompleteContext cc,
boolean suppress_IPTO,
com.hp.hpl.jena.rdf.model.Resource thisMetaPage,
int page,
int perPage,
Integer totalResults,
boolean hasMorePages,
List<com.hp.hpl.jena.rdf.model.Resource> resultList,
SetsMetadata setsMeta,
WantsMetadata wantsMeta,
String selectQuery,
String viewQuery,
Source source,
Map<String,View> views,
Set<Factories.FormatNameAndType> formats,
EndpointDetails details) |
abstract Param |
Param.expand(Bindings cc) |
com.hp.hpl.jena.rdf.model.Resource |
APIEndpointImpl.getMetadata(Bindings context,
URI ru,
String formatName,
com.hp.hpl.jena.rdf.model.Model metadata)
Return a metadata description for the query that would be run by this endpoint
|
com.hp.hpl.jena.rdf.model.Resource |
APIEndpoint.getMetadata(Bindings context,
URI requestURI,
String formatName,
com.hp.hpl.jena.rdf.model.Model metadata)
Return a metadata description for the query that would be run by this endpoint
|
APIEndpoint.Request |
APIEndpoint.Request.withBindings(Bindings newBindings) |
Constructor and Description |
---|
APIEndpoint.Request(Controls c,
URI requestURI,
Bindings context) |
EndpointMetadata(EndpointDetails ep,
com.hp.hpl.jena.rdf.model.Resource thisPage,
String pageNumber,
Bindings bindings,
URI pageURI) |
ResponseResult(APIResultSet rs,
Map<String,String> uriToShortnameMap,
Bindings bindings) |
Modifier and Type | Method and Description |
---|---|
String |
APIQuery.assembleRawCountQuery(PrefixLogger pl,
Bindings b) |
String |
APIQuery.assembleRawSelectQuery(PrefixLogger pl,
Bindings b) |
String |
APIQuery.assembleSelectQuery(Bindings b,
com.hp.hpl.jena.shared.PrefixMapping prefixes) |
protected String |
APIQuery.bindDefinedvariables(PrefixLogger pl,
String query,
Bindings cc)
Take the SPARQL query string
query and replace any ?SPOO
where SPOO is a variable bound in cc with the SPARQL
representation of that variable's value. |
String |
APIQuery.getQueryString(APISpec spec,
Bindings call)
Return the select query that would be run or a plain string for the
resource
|
APIResultSet |
APIQuery.runQuery(NoteBoard nb,
Controls c,
APISpec spec,
Cache cache,
Bindings b,
View view)
Run the defined query against the datasource
|
protected APIResultSet |
APIQuery.runQueryWithSource(NoteBoard nb,
Controls c,
APISpec spec,
Bindings call,
String graphName,
View view,
Source source) |
protected Couple<String,List<com.hp.hpl.jena.rdf.model.Resource>> |
APIQuery.selectResources(Controls c,
APISpec spec,
Bindings b,
Source source)
Answer the select query (if any; otherwise, "") and list of resources
obtained by running that query.
|
Constructor and Description |
---|
ContextQueryUpdater(int endpointKind,
Bindings context,
NamedViews nv,
ShortnameService sns,
APIQuery args)
Initialise this ContextQueryUpdater.
|
Modifier and Type | Method and Description |
---|---|
MediaType |
TextPlainRenderer.getMediaType(Bindings irrelevant) |
MediaType |
XMLRenderer.getMediaType(Bindings irrelevant) |
MediaType |
RDFXMLRenderer.getMediaType(Bindings irrelevant) |
MediaType |
JSONRenderer.getMediaType(Bindings b) |
MediaType |
FeedRenderer.getMediaType(Bindings rc) |
MediaType |
TurtleRenderer.getMediaType(Bindings irrelevant) |
MediaType |
Renderer.getMediaType(Bindings rc) |
Renderer.BytesOut |
TextPlainRenderer.render(Times t,
Bindings ignored,
Map<String,String> termBindings,
APIResultSet results) |
Renderer.BytesOut |
XMLRenderer.render(Times t,
Bindings rc,
Map<String,String> termBindings,
APIResultSet results) |
Renderer.BytesOut |
RDFXMLRenderer.render(Times t,
Bindings ignored,
Map<String,String> termBindings,
APIResultSet results) |
Renderer.BytesOut |
JSONRenderer.render(Times t,
Bindings b,
Map<String,String> termBindings,
APIResultSet results) |
Renderer.BytesOut |
FeedRenderer.render(Times t,
Bindings b,
Map<String,String> termBindings,
APIResultSet results) |
Renderer.BytesOut |
TurtleRenderer.render(Times t,
Bindings ignored,
Map<String,String> termBindings,
APIResultSet results) |
Renderer.BytesOut |
Renderer.render(Times t,
Bindings rc,
Map<String,String> termBindings,
APIResultSet results)
Render a result set.
|
void |
JSONRenderer.renderAndDiscard(Bindings b,
com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.Resource root,
Context given) |
Modifier and Type | Method and Description |
---|---|
protected void |
VelocityRendering.addBindingsToContext(org.apache.velocity.VelocityContext vc,
Bindings binds)
Add the Elda bindings as context variables
|
protected org.apache.velocity.VelocityContext |
VelocityRendering.createVelocityContext(Bindings binds) |
protected List<String> |
VelocityRendering.expandVelocityPath(Bindings b) |
MediaType |
VelocityRenderer.getMediaType(Bindings irrelevant) |
Renderer.BytesOut |
VelocityRenderer.render(Times t,
Bindings b,
Map<String,String> termBindings,
APIResultSet results)
Render the given result set
|
Constructor and Description |
---|
VelocityRendering(Bindings b,
APIResultSet rs,
VelocityRenderer vr)
Construct a Velocity rendering closure
|
Modifier and Type | Field and Description |
---|---|
protected Bindings |
APIEndpointSpec.bindings |
Bindings |
APISpec.bindings |
Modifier and Type | Method and Description |
---|---|
Bindings |
APIEndpointSpec.getBindings()
Return the variable bindings of this endpoint.
|
Bindings |
APISpec.getBindings()
Answer the bindings of variables for this API configuration.
|
Modifier and Type | Method and Description |
---|---|
static Renderer.BytesOut |
DOMUtils.renderNodeToBytesOut(Times t,
Document d,
Bindings rc,
com.hp.hpl.jena.shared.PrefixMapping pm,
String transformFilePath) |
static Transformer |
DOMUtils.setPropertiesAndParams(Times times,
Bindings rc,
com.hp.hpl.jena.shared.PrefixMapping pm,
String transformFilePath) |
Copyright © 2014. All Rights Reserved.