Old Release

This documentation relates to an old version of VIVO, version 1.10.x. Looking for another version? See all documentation.

The Data Distribution API uses RDF statements of the form subject predicate object to specify the configuration for an action.  Each distributor has a type (specified by "a" see below), an action name, and may use additional predicates to indicate relations to other entities.  Multiple distributors may be used in the a single configuration to drill down, iterate, and/or assemble graphs.

The table includes all predicates, but only certain predicates can be used with specific data distributor.  Check the documentation for the distributor you are using to determine which predicates apply to that distributor.

PredicateTypeUsage
aOSpecify the type of data distributor
actionNameDAssociates the instance with an HTTP request.
childOThe “wrapped” Data Distributor
childGraphBuilderOThe “decorated” GraphBuilder instance(s), which will produce the RDF graph.
constructQueryDThe SPARQL CONSTRUCT query
contentTypeDThe MIME type to be sent in the HTTP response header.
drillDownQueryDDiscovers the values that will be passed to the child GraphBuilder instance(s).
emptyResponseDA string to be served as an “empty data set”, if the file is not found.
filepathTemplateDA template for constructing the file path from the selection value. If the constructed path is relative, it is relative to the Vitro home directory.
graphBuilderOCreates an internal RDF graph
literalBindingDThe name of a request parameter whose value should be bound in the query as a plain literal.
parameterNameDThe request parameter name. Used in various contexts by the distributors. See the examples.
parameterPatternDA regular expression to extract the file selector from the parameter value.
parameterValueD A that will be added to the named parameter, each value will be used in a run of childGraphBuilder
pathDThe location of a file to be served by the FileDistributor. If a relative path, it is relative to the Vitro home directory.
queryDThe SPARQL SELECT query.
scriptDA string of JavaScript to be interpreted and executed. It must contain a function named transform which accepts a String as argument and returns a String as result.
supportingScriptDThe path to a JavaScript file in the webapp. The path must be as specified for ServletContext.getResource(). That is, it must begin with a ‘/’ and is interpreted as relative to the context root of the webapp.
topLevelGraphBuilderOThe source of the top-level graph, against which the drillDownQuery is run.
uriBindingDThe name of a request parameter whose value should be bound in the query as a URI.




  • No labels