mkdocs-macros-sparqld
mkdocs-macros pluglet that runs
sparqld during mkdocs build /
mkdocs serve and expands SPARQL macros into rendered pages.
Full documentation: MkDocs integration
Install
pip install mkdocs-macros-sparqld
Also install the sparqld binary and keep it
on PATH, unless you override extra.sparqld.binary.
Configuration
Register the pluglet with mkdocs-macros:
plugins:
- macros:
modules: [mkdocs_macros_sparqld]
Nothing else is required when sparqld is on PATH and the served tree is the
project's docs/ directory.
Optional overrides under extra.sparqld:
extra:
sparqld:
directory: data # default: docs
binary: target/debug/sparqld # default: sparqld on PATH
Macros and filters
sparql('SELECT …')— run a verbatim SPARQL query;SELECTreturns a list of binding dictsstored_sparql('path/from/mkdocs/root.rq')— run a query file relative to the MkDocs project rootsparql_table— Jinja filter that rendersSELECTbindings as a Markdown tablesparqld_port— Jinja variable containing the local endpoint port assigned during MkDocs setup
{{ stored_sparql('docs/queries/names.rq') | sparql_table }}
License
Apache-2.0 OR MIT
Metadata
Release files for mkdocs-macros-sparqld 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mkdocs_macros_sparqld-0.2.0.tar.gz | 8.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mkdocs_macros_sparqld-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.2 kB
Release files / mkdocs_macros_sparqld-0.2.0.tar.gz
| Download URL | mkdocs_macros_sparqld-0.2.0.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e292cf86b3b23bdf3a2cd31bff6b73d65b32ca561abfaf7e0e9fa0999d042a30
|
|
BLAKE2b-256 checksum How to use checksums |
b3056a78b7178737fb24d149ddae68fdd05d4e6d593b62aba096efd218c86c9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.13.9 Linux/6.8.0-136-generic
|
Release files / mkdocs_macros_sparqld-0.2.0-py3-none-any.whl
| Download URL | mkdocs_macros_sparqld-0.2.0-py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0d092536dab8b1d61037b922b92774d1b0eb93ed3afb9841d7119a77b3c926bd
|
|
BLAKE2b-256 checksum How to use checksums |
54c89860e7ebf0fd96a4fa2e4b9abce4a7c6939c49b37fc04dd1dc1c5d762613
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.13.9 Linux/6.8.0-136-generic
|