Resolve
RDF Terms

    Data based on @zazuko/vocabularies
    Click to Copy
    dash:ScriptFunction
    Click to Copy
    http://datashapes.org/dash#ScriptFunction

    Recommended prefix

    Copy 'PREFIX dash: <http://datashapes.org/dash#>'

    dash:

    lang:""
    Script function
    lang:""
    Script functions can be used from SPARQL queries and will be injected into the generated prefix object (in JavaScript, for ADS scripts). The dash:js will be inserted into a generated JavaScript function and therefore needs to use the return keyword to produce results. These JS snippets can access the parameter values based on the local name of the sh:Parameter's path. For example ex:value can be accessed using value. SPARQL use note: Since these functions may be used from any data graph and any shapes graph, they must not rely on any API apart from what's available in the shapes graph that holds the rdf:type triple of the function itself. In other words, at execution time from SPARQL, the ADS shapes graph will be the home graph of the function's declaration.