Skip to main content

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

The pluglet requires a POSIX environment because it uses sh to start the server. Install sparqld 0.1.9 or later on PATH, or point extra.sparqld.binary at the executable. Until 0.1.9 is released, build the binary from the sparqld source checkout.

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; SELECT returns a list of binding dicts
  • stored_sparql('path/from/mkdocs/root.rq') — run a query file relative to the MkDocs project root
  • sparql_table — Jinja filter that renders SELECT bindings as a Markdown table
  • sparqld_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.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mkdocs-macros-sparqld 0.3.0
File Size Uploaded Provenance Actions
mkdocs_macros_sparqld-0.3.0.tar.gz 12.1 kB Without provenance Details for mkdocs_macros_sparqld-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mkdocs-macros-sparqld 0.3.0
File Interpreter ABI Platform Actions
mkdocs_macros_sparqld-0.3.0-py3-none-any.whl Python 3 none any Details for mkdocs_macros_sparqld-0.3.0-py3-none-any.whl

Total release size: 32.9 kB

Release files / mkdocs_macros_sparqld-0.3.0.tar.gz

Download URL mkdocs_macros_sparqld-0.3.0.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1d3ffdf1047ac4d11530b5aeb168cf4a2a8abff79a7bc9ed73ddb5793a1fbea9
BLAKE2b-256 checksum
How to use checksums
6efb22cef9539b0366ad0267e91c386f1c39aac603066872299cb05e52e7a95c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.13.8 Linux/6.8.0-149-generic

Release files / mkdocs_macros_sparqld-0.3.0-py3-none-any.whl

Download URL mkdocs_macros_sparqld-0.3.0-py3-none-any.whl
Size 20.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6bfd30c1f90a49762f4141673a7f136351bdacdcf0d08b0fa22227ed401dca61
BLAKE2b-256 checksum
How to use checksums
72071a5010c456018c419cc57017f3d59f01e202f0ba48453a1c668c071669f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.13.8 Linux/6.8.0-149-generic

Security for mkdocs-macros-sparqld 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page