Skip to content

Commit

Permalink
Describe ignore_headers and fstrings in @import directives
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarx committed Jan 9, 2025
1 parent 9349ed7 commit 033d33e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/content/docs/reference/imports.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,10 @@ Import directives support various other optional parameters:
- `limit`: if specified, only at most this many tuples are imported (great for testing when working with large files)
- `compression`: used to define a compression format (`gzip` or `none`); this will normally be guessed correctly from the file extension, but can be useful for non-standard file names or URLs
- `delimiter`: only for import format `dsv`, specify a delimiter string (should be a single character)
- `ignore_headers`: only for import formats `csv`, `dsv`, and `tsv`, if true, the first record (containing the column headers) is ignored
- `base`: specify the base IRI to be used when importing RDF data; if given, relative IRIs will be made absolute based on this base; otherwise, relative IRIs remain relative in Nemo

The parameters in import directives can also make use of format strings, e.g.,
```
@import table :- csv{resource = f"file-{?x}-{?y}.csv"}, ?x = "name", ?y = 42 .
```

0 comments on commit 033d33e

Please sign in to comment.