Skip to content

Array valued 'bind' #27

@skwlilac

Description

@skwlilac

DCLIB doesn't currently support array valued 'bind' template variable bindings, however in valu templates it accepts array valued expressions, transforming them as multi-valied properties.

It would be useful, and more uniform, to be able to create array valued variable bindings within a template eg to provide common set of vocabulary URI for VoID metadata (in this case preprocessed to remove trailing '#' characters from namespace URI.

"bind" : [ { "$ns" : "{= asResource($$).replaceAll('#$','') }"
              },{
           "    $vocabularies"    : [ "<{$ns.apply('dgu:')}>",
                                            "<{$ns.apply('def-bwq:')}>",
                                            "<{$ns.apply('skos:')}>",
                                            "<{$ns.apply('def-bw:')}>",
                                            "<{$ns.apply('def-sp:')}>",
                                            "<{$ns.apply('def-stp:')}>",
                                             "<{$ns.apply('qb:')}>" ]
              } ]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions