Skip to content

Improved type specification for sc:Parameter placeholders #34

@zyzzyxdonta

Description

@zyzzyxdonta

Currently, a sc:Parameter placeholder can only describe its type via a single value which can be xsd:integer, xsd:string, ..., or rdf:List. It can also only handle literals or lists of literals.

In order to properly describe what a placeholder is for, we need to provide the possibility to describe the "inner" type, i.e. literals (xsd:string, xsd:integer, ...), as well as the "outer" type that explains the "cardinality" of the placeholder.

I suggest the following properties (and possible values) for sc:Parameter

  • sc:parameterType is removed

  • sc:parameterOuterType is added

    • sc:Scalar for single values (there doesn't seem to be a type for this in rdf: or rdfs:)
    • rdf:List, rdf:Seq, rdf:Bag, rdf:Alt for collections of values
  • sc:parameterInnerType is added

    • xsd:integer, xsd:float, xsd:string, ... for naive data types → the value from the config is parsed to a literal of the specified type
    • rdfs:Resource → the value from the config is interpreted as a reference to a more complex resource
  • sc:parameterConfigPath remains unchanged

  • sc:parameterDefaultValue remains unchanged

Metadata

Metadata

Assignees

No one assigned

    Labels

    ImplementationIssues related to the concrete implementation of the spec (e.g. in the validator tool or the plugin)SpecificationIssues related to the specification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions