From 2d1a6b53c186e39cad763abe8b296c9c2e97d27d Mon Sep 17 00:00:00 2001 From: Matthias Meissner Date: Tue, 17 Sep 2024 15:43:45 +0200 Subject: [PATCH 1/8] expand `@export` reference --- src/content/docs/reference/exports.md | 35 ++++++++++++++------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/src/content/docs/reference/exports.md b/src/content/docs/reference/exports.md index fb577ed..4061241 100644 --- a/src/content/docs/reference/exports.md +++ b/src/content/docs/reference/exports.md @@ -22,31 +22,32 @@ The output will be gzipped (guessed from file name). Tuples that contain anythin Currently the following formats are supported: -| Format | Description | +| Format | Description | |:-------|-------------| | `csv` | Comma-separated values. | -| `dsv` | Delimited separated values. (Like `csv`, but allows specifying different delimitors) | -| `rdf` | RDF turtle format. | +| `dsv` | Delimited separated values. (Like `csv`, but allows specifying different delimiters) | +| `rdf` | Generic RDF format. This chooses either `ntriples` or `nquads` based on the arity of the predicate. | +| `ntriples` | RDF Ntriples format. | +| `nquads` | RDF NQuads format. | +| `trig` | RDF TriG format. | +| `rdfxml` | RDF/XML format. | +| `turtle` | RDF Turtle format. | ## Parameters The following parameters are available for all formats: -| Parameter | Description | +| Parameter | Description | | :-------- | :---------- | -| `resource` | The file name to write to. If it contains an extension, this is used to automatically set the `gzip` parameter. | -| `compression` | The compression to use. Currently only `gzip` is supported. | +| `resource` | The file name to write to. If it contains an extension, this is used to automatically set the `compression` parameter. If set to the empty string `""`, the tuples are directed to the standard output. If omitted, this is set based on the predicate name, file format and compression type: `..`. | +| `compression` | The compression to use. Currently only `gzip` or `none` is supported. | +| `limit` | The maximum number of tuples to export. | -Instead of writing data to a file, one can also return it in the standard output (on the command line). For this, an empty string should be given as a resource, as in this example that prints the first 10 triples in RDF format: +Besides the above, there are format-specific parameters: -``` -@export triples :- turtle{resource="", limit=10} . -``` - -In exports, it is also possible to omit the `resource` parameter altogether. In this case, a default file name will be chosen based on the exported predicate, file format, and compression. For example, the following will export to `triples.nt.gz`: - -``` -@export triples :- ntriples{compression="gzip"} . -``` +| Parameter | Formats | Description | +| :-------- | :------ | :---------- | +| `delimiter` | `dsv` | The delimiter to use. | +| `format` | `csv`, `dsv` | The output-format of the exported data. Might be `int`, `double`, `string`, `rdf` or `skip`. | -When using the [Nemo command-line client](/nemo-doc/guides/cli), some options are available to override the export directives in the program, to set the output (base) directory, and to control if existing files should be overwritten. +When using the [Nemo command-line client](/nemo-doc/guides/cli), some cli options are available to override the export directives in the program, to set the output (base) directory, and to control if existing files should be overwritten. From 43f2a107a1c6e2a4ccf1732d5a824e04f2288d5a Mon Sep 17 00:00:00 2001 From: Matthias Meissner Date: Tue, 17 Sep 2024 16:52:42 +0200 Subject: [PATCH 2/8] add favicon --- public/favicon.svg | 54 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/public/favicon.svg b/public/favicon.svg index cba5ac1..9ca0a71 100644 --- a/public/favicon.svg +++ b/public/favicon.svg @@ -1 +1,53 @@ - \ No newline at end of file + + + + + + + + + + From e9377421f2d41bdfd0382689716cfcaafd56358a Mon Sep 17 00:00:00 2001 From: Matthias Meissner Date: Tue, 17 Sep 2024 17:04:17 +0200 Subject: [PATCH 3/8] nemo logos --- astro.config.mjs | 5 +- .../nemo-logo-rusty-bright-nomargin.svg | 79 +++++++++++++++++++ src/assets/nemo-logo-rusty-nomargin.svg | 79 +++++++++++++++++++ tailwind.config.mjs | 2 +- 4 files changed, 163 insertions(+), 2 deletions(-) create mode 100644 src/assets/nemo-logo-rusty-bright-nomargin.svg create mode 100644 src/assets/nemo-logo-rusty-nomargin.svg diff --git a/astro.config.mjs b/astro.config.mjs index fe99225..9a82f22 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -45,8 +45,11 @@ export default defineConfig({ integrations: [ starlight({ title: "Nemo Rule Engine", + logo: { + dark: "./src/assets/nemo-logo-rusty-bright-nomargin.svg", + light: "./src/assets/nemo-logo-rusty-nomargin.svg", + }, customCss: ["./src/tailwind.css"], - favicon: "/favicon.svg", social: { github: "https://github.com/knowsys/nemo", }, diff --git a/src/assets/nemo-logo-rusty-bright-nomargin.svg b/src/assets/nemo-logo-rusty-bright-nomargin.svg new file mode 100644 index 0000000..53c39b5 --- /dev/null +++ b/src/assets/nemo-logo-rusty-bright-nomargin.svg @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + diff --git a/src/assets/nemo-logo-rusty-nomargin.svg b/src/assets/nemo-logo-rusty-nomargin.svg new file mode 100644 index 0000000..1d5e587 --- /dev/null +++ b/src/assets/nemo-logo-rusty-nomargin.svg @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + diff --git a/tailwind.config.mjs b/tailwind.config.mjs index 70ef3c7..32dc973 100644 --- a/tailwind.config.mjs +++ b/tailwind.config.mjs @@ -9,7 +9,7 @@ export default { colors: { accent: { '900': '#0e4453', - '800': '#215565', + '800': '#2a768a', '700': '#326679', '600': '#44798b', '500': '#558ba0', From 025ee49d7142ff9aea5834d8de8794d3d8ba17ef Mon Sep 17 00:00:00 2001 From: Matthias Meissner Date: Tue, 17 Sep 2024 17:28:33 +0200 Subject: [PATCH 4/8] adjust colors --- tailwind.config.mjs | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/tailwind.config.mjs b/tailwind.config.mjs index 32dc973..0147f8f 100644 --- a/tailwind.config.mjs +++ b/tailwind.config.mjs @@ -2,23 +2,21 @@ import starlightPlugin from '@astrojs/starlight-tailwind'; import colors from 'tailwindcss/colors'; +const nemo_blue = { + '950': '#0c2227', + '900': '#18434e', + '600': '#2a768a', + '200': '#8cbfcc', +}; + export default { content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'], theme: { extend: { colors: { - accent: { - '900': '#0e4453', - '800': '#2a768a', - '700': '#326679', - '600': '#44798b', - '500': '#558ba0', - '400': '#6ca0ae', - '300': '#85b0bc', - '200': '#9fc2ca', - '100': '#bad0d8', - '50': '#d4e3e6', - }, + nemo_blue, + rust: '#9c6f30', + accent: nemo_blue, }, }, }, From 614905aa8257f231452989c4dd5278170bc8d784 Mon Sep 17 00:00:00 2001 From: Matthias Meissner Date: Tue, 17 Sep 2024 18:22:14 +0200 Subject: [PATCH 5/8] landing page --- src/assets/nemo-logo-dark.svg | 53 ++++++++++++++++++ src/assets/nemo-logo-light.svg | 53 ++++++++++++++++++ src/assets/nemo-logo-rusty-bright.svg | 79 +++++++++++++++++++++++++++ src/assets/nemo-logo-rusty.svg | 79 +++++++++++++++++++++++++++ src/content/docs/index.mdx | 6 +- 5 files changed, 269 insertions(+), 1 deletion(-) create mode 100644 src/assets/nemo-logo-dark.svg create mode 100644 src/assets/nemo-logo-light.svg create mode 100644 src/assets/nemo-logo-rusty-bright.svg create mode 100644 src/assets/nemo-logo-rusty.svg diff --git a/src/assets/nemo-logo-dark.svg b/src/assets/nemo-logo-dark.svg new file mode 100644 index 0000000..410f861 --- /dev/null +++ b/src/assets/nemo-logo-dark.svg @@ -0,0 +1,53 @@ + + + + + + + + + + diff --git a/src/assets/nemo-logo-light.svg b/src/assets/nemo-logo-light.svg new file mode 100644 index 0000000..de52645 --- /dev/null +++ b/src/assets/nemo-logo-light.svg @@ -0,0 +1,53 @@ + + + + + + + + + + diff --git a/src/assets/nemo-logo-rusty-bright.svg b/src/assets/nemo-logo-rusty-bright.svg new file mode 100644 index 0000000..1cd2a62 --- /dev/null +++ b/src/assets/nemo-logo-rusty-bright.svg @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + diff --git a/src/assets/nemo-logo-rusty.svg b/src/assets/nemo-logo-rusty.svg new file mode 100644 index 0000000..5112b11 --- /dev/null +++ b/src/assets/nemo-logo-rusty.svg @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + diff --git a/src/content/docs/index.mdx b/src/content/docs/index.mdx index 93a281b..c1ce913 100644 --- a/src/content/docs/index.mdx +++ b/src/content/docs/index.mdx @@ -1,8 +1,12 @@ --- -title: The Nemo Rule Engine +title: "Introducing Nemo" description: Get started building your docs site with Starlight. template: splash hero: + tagline: A graph rule engine for the semantic web + image: + light: "../../assets/nemo-logo-rusty.svg" + dark: "../../assets/nemo-logo-rusty-bright.svg" actions: - text: Get Started with nemo link: /nemo-doc/guides/installing/ From ff1b4e0e15c5ac464321ac8a5ba97fa69ed46fcc Mon Sep 17 00:00:00 2001 From: Matthias Meissner Date: Tue, 17 Sep 2024 18:27:09 +0200 Subject: [PATCH 6/8] add colourscheme.txt --- logo/src/colorscheme.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 logo/src/colorscheme.txt diff --git a/logo/src/colorscheme.txt b/logo/src/colorscheme.txt new file mode 100644 index 0000000..f7e896b --- /dev/null +++ b/logo/src/colorscheme.txt @@ -0,0 +1,11 @@ +/* List */ +0c2227, 18434e, 2a768a, 8cbfcc, e3eff3 +#0c2227, #18434e, #2a768a, #8cbfcc, #e3eff3 + +/* Comma Seperated */ +0c2227,18434e,2a768a,8cbfcc,e3eff3 +#0c2227,#18434e,#2a768a,#8cbfcc,#e3eff3 + +/* Array */ +["0c2227","18434e","2a768a","8cbfcc","e3eff3"] +["#0c2227","#18434e","#2a768a","#8cbfcc","#e3eff3"] From 9a9cf27cb10c53d2c0610be6b512c16ee9518339 Mon Sep 17 00:00:00 2001 From: Matthias Meissner Date: Tue, 1 Oct 2024 13:42:48 +0200 Subject: [PATCH 7/8] remove unneeded favicon.svg --- public/favicon.svg | 53 ---------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 public/favicon.svg diff --git a/public/favicon.svg b/public/favicon.svg deleted file mode 100644 index 9ca0a71..0000000 --- a/public/favicon.svg +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - From 2674a6f24b95c13925e8db36b18cd8e0208e1048 Mon Sep 17 00:00:00 2001 From: Matthias Meissner Date: Tue, 1 Oct 2024 13:50:08 +0200 Subject: [PATCH 8/8] specify favicon path --- astro.config.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/astro.config.mjs b/astro.config.mjs index 9a82f22..9d40ba1 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -50,6 +50,7 @@ export default defineConfig({ light: "./src/assets/nemo-logo-rusty-nomargin.svg", }, customCss: ["./src/tailwind.css"], + favicon: "/favicon.svg", social: { github: "https://github.com/knowsys/nemo", },