
Security News
Open VSX Begins Implementing Pre-Publish Security Checks After Repeated Supply Chain Incidents
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.
pyldapi
Advanced tools
A very small module to add Linked Data API functionality to a Python FastAPI or Flask (v3.x) installation
|pyLDAPI Logo|
.. |pyLDAPI Logo| image:: https://github.com/RDFLib/pyLDAPI/raw/master/pyLDAPI-250.png :target: https://github.com/RDFLib/pyLDAPI/raw/master/pyLDAPI-250.png
The Python Linked Data API (pyLDAPI) is:
A very small module to add Linked Data API functionality to a Python FastAPI installation.
|PyPI version|
.. |PyPI version| image:: https://badge.fury.io/py/pyldapi.svg :target: https://badge.fury.io/py/pyldapi
This module contains a small Python module which is intended to be added (imported) into a FastAPI <https://fastapi.tiangolo.com/>_ (v4.x +) or Python Flask <http://flask.pocoo.org/>_ (v3.x) installation to add a small library of Renderer classes which can be used to handle requests and return responses in a manner consistent with Linked Data <https://en.wikipedia.org/wiki/Linked_data>__ principles of operation.
The intention is to make it easy to "Linked Data-enable" web APIs.
An API using this module will get:
Renderer class to return responses that the API delivers
Content Negotiation by Profile <https://www.w3.org/TR/dx-prof-conneg/>_ specification
The main parts of pyLDAPI are as follows:
|blocks|
.. |blocks| image:: images/blocks.png :width: 250 :alt: Block diagram of pyLDAPI's main parts
Web requests arrive at a Web Server, such as Apache or nginx, which then forwards (some of) them on to FastAPI, a Python web framework. FastAPI calls Python functions for web requests defined in a request/function mapping and may call pyLDAPI elements. FastAPI need not call pyLDAPI for all requests, just as Apache/nginx need not forward all web request to FastAPI. pyLDAPI may then draw on any Python data source, such as database APIs, and uses the rdflib Python module to formulate RDF responses.
Alt Profile
The *model view* that lists all other views. This API uses the definition of *Alternate Profiles Data Model as an OWL ontology* presented at `https://www.w3.org/TR/dx-prof-conneg/#altr-owl <https://www.w3.org/TR/dx-prof-conneg/#altr-owl>`_.
Linked Data Principles
The principles of making things available over the internet in both human and machine-readable forms. Codified by the World Wide Web Consortium. See https://www.w3.org/standards/semanticweb/data <https://www.w3.org/standards/semanticweb/data>_.
Model View
A set of properties of a Linked Data object codified according to a standard or profile of a standard.
Object
~~~~~~
Any individual thing delivered according to *Linked Data* principles.
Register
~~~~~~~~
A simple listing of URIs of objects, delivered according to *Linked Data principles*.
Register of Registers
A register that lists all other registers which this API provides.
Register of Media Types
https://w3id.org/mediatype/ <https://w3id.org/mediatype/>_Linked Data version of the Geocoded National Address File
http://linked.data.gov.au/dataset/gnaf <http://linked.data.gov.au/dataset/gnaf>_|gnaf|
Parts of the GNAF implementation
.. |gnaf| image:: images/instance-GNAF.png :width: 250 :alt: Block diagram of the GNAF implementation
Geoscience Australia's Sites, Samples Surveys Linked Data API
http://pid.geoscience.gov.au/sample/ <http://pid.geoscience.gov.au/sample/>_Linked Data version of the Australian Statistical Geography Standard product
http://linked.data.gov.au/dataset/asgs <http://linked.data.gov.au/dataset/asgs>_|asgs|
Parts of the ASGS implementation
.. |asgs| image:: images/instance-ASGS.png :width: 250 :alt: Block diagram of the ASGS implementation
Detailed documentation can be found at https://pyldapi.readthedocs.io/ <https://pyldapi.readthedocs.io/>_
This is licensed under GNU General Public License (GPL) v3.0. See the LICENSE deed <https://raw.githubusercontent.com/RDFLib/pyLDAPI/master/LICENSE>_ for more details.
Dr Nicholas Car (lead)
| *Data Systems Architect*
| `SURROUND Australia Pty Ltd <https://surroundaustralia.com>`_
| `nicholas.car@surroundaustralia.com <nicholas.car@surroundaustralia.com>`_
| `https://orcid.org/0000-0002-8742-7730 <https://orcid.org/0000-0002-8742-7730>`_
Ashley Sommer (senior developer)
| Informatics Software Engineer
| CSIRO Land and Water <https://www.csiro.au/en/Research/LWF>_
| ashley.sommer@csiro.au <ashley.sommer@csiro.au>_
pyLDAPI Client <http://pyldapi-client.readthedocs.io/>_
4.x
3.11
3.0
FAQs
A very small module to add Linked Data API functionality to a Python FastAPI or Flask (v3.x) installation
We found that pyldapi demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.

Research
/Security News
Threat actors compromised four oorzc Open VSX extensions with more than 22,000 downloads, pushing malicious versions that install a staged loader, evade Russian-locale systems, pull C2 from Solana memos, and steal macOS credentials and wallets.

Security News
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.