VIVO Documentation
Old Release
This documentation relates to an old version of VIVO, version 1.13.x.
Looking for another version? See all documentation.
The Data Distribution API supports the following distributors. These can be used in combination in a configuration file to define an action, parameters, and response.
Name | Description |
---|---|
HelloDistributor | The Hello World Demonstration |
FileDistributor | Sends the contents of a file as an HTTP response |
SelectingFileDistributor | Serves the contents of a file. Selects the file by extracting a value from the HTTP request, and using it to construct the file path. |
SelectFromContentDistributor | Executes a SPARQL SELECT query against Vitro’s content triple-store, and returns the results in JSON format: application/sparql-results+json. |
RdfGraphDistributor | Executes one or more GraphBuilder instances. Merges the results into an internal RDF graph, and returns that graph in Turtle format: text/turtle. |
SelectFromGraphDistributor | Executes a SPARQL SELECT query against an internal RDF graph. The graph is created by merging the outputs of one or more GraphBuilder instances. The results are returned in JSON format: application/sparql-results+json. |
EmptyGraphBuilder | Creates an RDF graph containing no triples. Used for tests, examples, or placeholders. |
ConstructQueryGraphBuilder | Executes SPARQL CONSTRUCT query(s) against Vitro’s content triple-store, and returns a model that contains the (merged) results. |
IteratingGraphBuilder | A GraphBuilder decorator that runs one or more “child” builders multiple times, each time providing a different value for a specified request parameter. The results of all queries are merged into a local RDF graph. |
DrillDownGraphBuilder | A GraphBuilder decorator that runs one or more “child” builders multiple times, each time providing a different value for a specified request parameter. The results of all queries are merged into a local RDF graph. |
JavaScriptTransformDistributor | A wrapper that uses a JavaScript function to transform the output of the wrapped distributor. |
Adding Distributors
Additional distributors can be added. See https://vivo-community.github.io/vivo-data-distribution-api
Overview
Content Tools