Class: UsageTemplate
A container for specifying string substitution templates for usage specification, see Usage
class.
Slots
Name |
Cardinality and Range |
Description |
Inheritance |
---|---|---|---|
0..1 |
The location of the resource (e.g., file, or directory) on disk to be extracted. |
direct |
|
0..1 |
The |
direct |
|
0..1 |
The location where the output of the extraction will be written to disk. |
direct |
|
0..1 |
The |
direct |
Usages
used by |
used in |
type |
used |
---|---|---|---|
range |
Identifier and Mapping Information
Schema Source
from schema: https://datatractor.github.io/schema/main/datatractor_schema/
Mappings
Mapping Type |
Mapped Value |
---|---|
self |
datatractor_schema:UsageTemplate |
native |
datatractor_schema:UsageTemplate |
LinkML Source
Direct
name: UsageTemplate
description: A container for specifying string substitution templates for usage specification,
[see `Usage` class](Usage.md).
comments:
- The attributes below can be applied as templates using `{{ attr }}` notation.
- The default values of the listed attributes can be overriden in this way using the
specification of supported filetypes, [see `SupportedFileType` class](SupportedFileType.md).
- "For instance, if an `extractor` supports the `example` file type, but expects `xmpl`\
\ as an argument:\n\n ```bash\n extractor --filetype xmpl inputfile.bla\n ```\n\
\n one could set `input_type: xmpl` here, and specify the following `command`\n\
in the `Usage` class:\n\n ```bash\n extractor --filetype {{ input_type }} {{ input_path\
\ }}\n ```"
from_schema: https://datatractor.github.io/schema/main/datatractor_schema/
rank: 1000
attributes:
input_path:
name: input_path
description: The location of the resource (e.g., file, or directory) on disk to
be extracted. Required.
from_schema: https://datatractor.github.io/schema/main/datatractor_schema/
rank: 1000
domain_of:
- UsageTemplate
input_type:
name: input_type
description: The `FileType` of the `input_path`. Defaults to the `FileType->id`
for each supported file type.
from_schema: https://datatractor.github.io/schema/main/datatractor_schema/
rank: 1000
domain_of:
- UsageTemplate
output_path:
name: output_path
description: The location where the output of the extraction will be written to
disk. Defaults to the `Extractor` default.
from_schema: https://datatractor.github.io/schema/main/datatractor_schema/
rank: 1000
domain_of:
- UsageTemplate
output_type:
name: output_type
description: The `FileType` of the `output_path`, for `Extractors` supporting
multiple output `FileTypes`. Defaults to the `FileType->id` for each supported
output file type.
from_schema: https://datatractor.github.io/schema/main/datatractor_schema/
rank: 1000
domain_of:
- UsageTemplate
Induced
name: UsageTemplate
description: A container for specifying string substitution templates for usage specification,
[see `Usage` class](Usage.md).
comments:
- The attributes below can be applied as templates using `{{ attr }}` notation.
- The default values of the listed attributes can be overriden in this way using the
specification of supported filetypes, [see `SupportedFileType` class](SupportedFileType.md).
- "For instance, if an `extractor` supports the `example` file type, but expects `xmpl`\
\ as an argument:\n\n ```bash\n extractor --filetype xmpl inputfile.bla\n ```\n\
\n one could set `input_type: xmpl` here, and specify the following `command`\n\
in the `Usage` class:\n\n ```bash\n extractor --filetype {{ input_type }} {{ input_path\
\ }}\n ```"
from_schema: https://datatractor.github.io/schema/main/datatractor_schema/
rank: 1000
attributes:
input_path:
name: input_path
description: The location of the resource (e.g., file, or directory) on disk to
be extracted. Required.
from_schema: https://datatractor.github.io/schema/main/datatractor_schema/
rank: 1000
alias: input_path
owner: UsageTemplate
domain_of:
- UsageTemplate
range: string
input_type:
name: input_type
description: The `FileType` of the `input_path`. Defaults to the `FileType->id`
for each supported file type.
from_schema: https://datatractor.github.io/schema/main/datatractor_schema/
rank: 1000
alias: input_type
owner: UsageTemplate
domain_of:
- UsageTemplate
range: string
output_path:
name: output_path
description: The location where the output of the extraction will be written to
disk. Defaults to the `Extractor` default.
from_schema: https://datatractor.github.io/schema/main/datatractor_schema/
rank: 1000
alias: output_path
owner: UsageTemplate
domain_of:
- UsageTemplate
range: string
output_type:
name: output_type
description: The `FileType` of the `output_path`, for `Extractors` supporting
multiple output `FileTypes`. Defaults to the `FileType->id` for each supported
output file type.
from_schema: https://datatractor.github.io/schema/main/datatractor_schema/
rank: 1000
alias: output_type
owner: UsageTemplate
domain_of:
- UsageTemplate
range: string
Comments
The attributes below can be applied as templates using
{{ attr }}
notation.The default values of the listed attributes can be overriden in this way using the specification of supported filetypes, see
SupportedFileType
class.For instance, if an
extractor
supports theexample
file type, but expectsxmpl
as an argument:one could set
input_type: xmpl
here, and specify the followingcommand
in theUsage
class:URI: datatractor_schema:UsageTemplate