You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ docker run -it -v <path-to-logseq-graph-directory>:/data mathiasvda/logseq-rdf-export logseq-rdf-export docs.ttl
Gitlab
GitLab also allows to automate actions, similar to GitHub. Below is an example .gitlab-ci.yml file that uses the Docker image of logseq-export-rdf. The example also includes a step on how to publish the logseq documentation to GitLab pages using the logseq-publish-spa library.
stages:
- rdf
- pagesrdf:
image:
name: mathiasvda/logseq-rdf-exportrules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCHstage: rdfscript:
- echo "The following line is to avoid a check in logseq-rdf-export targetting github actions"
- unset CI
- logseq-rdf-export notes.ttl --directory $CI_PROJECT_DIRartifacts:
paths:
- notes.ttlpages:
image:
name: ghcr.io/l-trump/logseq-publish-spa:alpineentrypoint: ["/bin/sh", "-c"]rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCHstage: pagesenvironment: livescript:
- mkdir -p public
- node /opt/logseq-publish-spa/publish_spa.mjs $CI_PROJECT_DIR/public --static-directory /opt/logseq-static --directory $CI_PROJECT_DIR --theme-mode $THEME --accent-color $ACCENT_COLORartifacts:
paths:
- public
Configuration
To configure how and what is exported to RDF, create a .rdf-export/config.edn
file in your graph's directory. It's recommended to configure the :base-url
key so that urls point to your Logseq graph. To configure what is exported,
knowledge of advanced
queries is required. See
the config
file
for the full list of configuration keys.