-
Notifications
You must be signed in to change notification settings - Fork 2
Home
The aim of this project is to provide a LDP based plugin for Wordpress. This wiki will help you installing and using this plugin, by providing as much information as possible.
If you want to understand the context or contribute (why this plugin, business model, governance, how to contributute, etc.) you can open this link (in french) : http://91.134.140.110:8080/index.php/WordPress_LDP
See here: https://github.com/assemblee-virtuelle/wpldp/wiki/Installation
The architecture of the plugin is still in progress, as some important issues are raised. To make a quick overview of the plugin, it contains:
- A wpldp.php file which contains
- The definitions of the custom content type we use (ldp_resource)
- The simple ldp_model we use (defining two properties, ldp_name and ldp_description)
- All the initialization functions needed for the plugin to work
- Two templates files:
- single-ldp_resource.php which defines the json-ld format of the detail of a single LDP resource
- archive-ldp_resource.php which defines the json-ld format of a collection of LDP resources
When creating a resource using the dedicated menu, the definition of the associated metadata fields are retrieved from the ldp_models and displayed to the user as form inputs. Once the resource is saved, those data are saved into the wp_postmeta table, when the Resource itself is saved in the wp_posts table.
Once saved, you can access its json-ld formatted definition using a permalink with the following structure: http://localhost/my-site/ldp_resource/resource_name
You can also access the list of json-ld formatted resources definitions at the url: http://localhost/my-site/ldp_resource/
Here is a schema of the current architecture of the plugin:
See here: https://github.com/assemblee-virtuelle/wpldp/wiki/The-first-usage