Commit ee0e889
generate-bindings: allow to use local files
shacl2code needs to download the following URLs during build time:
- https://spdx.org/rdf/3.0.1/spdx-model.ttl
- https://spdx.org/rdf/3.0.1/spdx-json-serialize-annotations.ttl
- https://spdx.org/rdf/3.0.1/spdx-context.jsonld
There are a lot of package build tools that do not allow to download
a file during the build. So provide a way to use local file:
If the environment variable SHACL2CODE_SPDX_DIR is defined, load
the SPDX model and SPDX context from the directory specified by this
environment variable.
Signed-off-by: Benjamin Robin <benjamin.robin@bootlin.com>1 parent a06d838 commit ee0e889
1 file changed
Lines changed: 16 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
23 | 33 | | |
24 | 34 | | |
25 | 35 | | |
0 commit comments