-
Notifications
You must be signed in to change notification settings - Fork 2
Home
The aim of this project is to provide a LPD based plugin for Wordpress. This wiki will help you installing and using this plugin, by providing as much information as possible
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