SOS resource demand annotations for CWL
Release 1.0.0, fixed: this file never changes. Latest version: 1.1.0.
Extension fields for CWL documents that state how the resource demand of a tool grows with its inputs (parametric dependencies), as a static annotation next to the input schema: complexity variables on input parameters, demand expressions in ResourceRequirement. The annotation states only the shape of the dependency (a sum of products of complexity classes); coefficients are not part of it. A complexity variable stands for a Measure of an input: its value, array length or file size, a domain measure such as the pixel count of a raster (see eo-formats), or a derived measure computed by a probe tool. Declare the namespace in a CWL document with $namespaces: {rd: "https://dfg-sos.github.io/ontologies/resource-demand#"}.
Namespace https://dfg-sos.github.io/ontologies/resource-demand# · version 1.0.0 ·
RDF/XML · Turtle
Releases: 1.1.0, 1.0.0
Classes
Array length
https://dfg-sos.github.io/ontologies/resource-demand#ArrayLength
- rdfs:comment
- The number of items of an array parameter.
- rdfs:subClassOf
- Measure
Complexity class
https://dfg-sos.github.io/ontologies/resource-demand#ComplexityClass
- rdfs:comment
- How a demand grows with one complexity variable, in the sense of Big O notation. Referenced by IRI as the complexity of a factor in a demand term.
- subclasses
- Constant, Cubic, Exponential, Linear, Linearithmic, Logarithmic, Quadratic
Constant
https://dfg-sos.github.io/ontologies/resource-demand#Constant
- rdfs:comment
- The demand does not grow with the variable. States explicitly that a variable was considered and has no effect.
- rdfs:subClassOf
- ComplexityClass
- Big O notation
- O(1)
- growth function
- 1
Cubic
https://dfg-sos.github.io/ontologies/resource-demand#Cubic
- rdfs:subClassOf
- ComplexityClass
- Big O notation
- O(n^3)
- growth function
- x ** 3
Derived measure
https://dfg-sos.github.io/ontologies/resource-demand#DerivedMeasure
- rdfs:comment
- A characteristic of the input that cannot be read from its type or format, computed by a probe: a CWL CommandLineTool, referenced with rd:probe, that takes the parameter as input and returns a single number. Domain vocabularies may name derived measures as subclasses of this class.
- rdfs:subClassOf
- Measure
Exponential
https://dfg-sos.github.io/ontologies/resource-demand#Exponential
- rdfs:subClassOf
- ComplexityClass
- Big O notation
- O(2^n)
- growth function
- 2 ** x
File size
https://dfg-sos.github.io/ontologies/resource-demand#FileSize
- rdfs:comment
- The size in bytes of a File parameter (CWL File.size), without its secondaryFiles. For an array of Files, the sum of their sizes.
- rdfs:subClassOf
- Measure
Linear
https://dfg-sos.github.io/ontologies/resource-demand#Linear
- rdfs:subClassOf
- ComplexityClass
- Big O notation
- O(n)
- growth function
- x
Linearithmic
https://dfg-sos.github.io/ontologies/resource-demand#Linearithmic
- rdfs:subClassOf
- ComplexityClass
- Big O notation
- O(n log n)
- growth function
- x * log(x)
Logarithmic
https://dfg-sos.github.io/ontologies/resource-demand#Logarithmic
- rdfs:subClassOf
- ComplexityClass
- Big O notation
- O(log n)
- growth function
- log(x)
Measure
https://dfg-sos.github.io/ontologies/resource-demand#Measure
- rdfs:comment
- A quantity taken from the value of an input parameter, used as a complexity variable. Measures are referenced by IRI in rd:complexityVariables. Format-specific measures (pixel count, feature count, ...) are defined in domain vocabularies such as eo-formats as subclasses of this class.
- subclasses
- ArrayLength, DerivedMeasure, FileSize, Value
Quadratic
https://dfg-sos.github.io/ontologies/resource-demand#Quadratic
- rdfs:subClassOf
- ComplexityClass
- Big O notation
- O(n^2)
- growth function
- x ** 2
Value
https://dfg-sos.github.io/ontologies/resource-demand#Value
- rdfs:comment
- The numeric value of an int, long, float or double parameter.
- rdfs:subClassOf
- Measure
Properties
complexity
https://dfg-sos.github.io/ontologies/resource-demand#complexity
- rdfs:comment
- Key in a factor: how the demand grows with the variable, a subclass of rd:ComplexityClass.
complexity variables
https://dfg-sos.github.io/ontologies/resource-demand#complexityVariables
- rdfs:comment
- Field of a CWL input parameter: a list of variables that the demand expressions of the tool can refer to. Each item has the keys symbol (a name, unique within the tool, matching [A-Za-z_][A-Za-z0-9_]*), measure (the IRI of a rd:Measure subclass) and, for a rd:DerivedMeasure, probe (path to the probe tool). Example: inputs: {raster: {type: File, format: eo:GeoTIFF, rd:complexityVariables: [{symbol: n, measure: eo:PixelCount}]}}. Do not use the keys id, name, type or format: CWL rewrites them.
factors
https://dfg-sos.github.io/ontologies/resource-demand#factors
- rdfs:comment
- Key in a demand term: the factors that are multiplied to form the term.
measure
https://dfg-sos.github.io/ontologies/resource-demand#measure
- rdfs:comment
- Key in a rd:complexityVariables item: which quantity of the parameter the variable stands for, a subclass of rd:Measure.
probe
https://dfg-sos.github.io/ontologies/resource-demand#probe
- rdfs:comment
- Key in a rd:complexityVariables item: the CWL CommandLineTool that computes a rd:DerivedMeasure, as a path relative to the annotated document or an absolute IRI. Required for derived measures, not allowed otherwise.
RAM demand
https://dfg-sos.github.io/ontologies/resource-demand#ramDemand
- rdfs:comment
- Field of a CWL ResourceRequirement: how the peak memory of the tool grows with its complexity variables. A list of terms that are added; each term has the key factors, a list of factors that are multiplied; each factor has the keys variable (a symbol from rd:complexityVariables) and complexity (the IRI of a rd:ComplexityClass subclass). A term without factors is a constant. Example for O(n + d^2): rd:ramDemand: [{factors: [{variable: n, complexity: rd:Linear}]}, {factors: [{variable: d, complexity: rd:Quadratic}]}].
- unit
- MiB (as CWL ramMin)
time demand
https://dfg-sos.github.io/ontologies/resource-demand#timeDemand
- rdfs:comment
- Field of a CWL ResourceRequirement: how the wall-clock time to result of the tool grows with its complexity variables. Same structure as rd:ramDemand. Example for O(n * d): rd:timeDemand: [{factors: [{variable: n, complexity: rd:Linear}, {variable: d, complexity: rd:Linear}]}].
- unit
- seconds (as CWL ToolTimeLimit)
Properties (values)
symbol
https://dfg-sos.github.io/ontologies/resource-demand#symbol
- rdfs:comment
- Key in a rd:complexityVariables item: the variable's name, used by the factors of demand terms.
- rdfs:range
- http://www.w3.org/2001/XMLSchema#string
variable
https://dfg-sos.github.io/ontologies/resource-demand#variable
- rdfs:comment
- Key in a factor: the symbol of a complexity variable declared on an input of the same tool.
- rdfs:range
- http://www.w3.org/2001/XMLSchema#string
Annotation properties
Big O notation
https://dfg-sos.github.io/ontologies/resource-demand#bigO
- rdfs:comment
- The complexity class in Big O notation, for display.
growth function
https://dfg-sos.github.io/ontologies/resource-demand#growthFunction
- rdfs:comment
- Representative function g(x) of a complexity class, as an expression in the variable x using +, -, *, /, ** and log (natural logarithm). An estimator fits a * g(x) per factor; this annotation tells it which g to use.
unit
https://dfg-sos.github.io/ontologies/resource-demand#unit
- rdfs:comment
- Unit in which the demand of a demand property is estimated.
Generated by scripts/build.py. All vocabularies.