LDP Plugin for wordpress
Switch branches/tags
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
bin Adding unit testing framework Jul 29, 2017
languages Adding new taxonomy ( site ) : Jun 28, 2017
library/js Fix identation Jul 29, 2017
models Fix identation Jul 29, 2017
public Fixing plugin_dir_url use Aug 28, 2017
resources/css Fix identation Jul 29, 2017
scripts Update deploy.sh Jul 26, 2017
tests
.codeclimate.yml Update .codeclimate.yml Jul 29, 2017
.gitignore Adding composer for easyrdf and phpunit dependency management Jul 29, 2017
.gitmodules
.travis.yml
LICENSE
README.md Update the readme to reflect recents improvements Nov 11, 2017
class-api.php Syntaxic fixes Jul 30, 2017
class-container-taxonomy.php
class-settings.php Functional fixes Jul 30, 2017
class-site-taxonomy.php Functional fixes Jul 30, 2017
class-utils.php Fixing methods comments Jul 30, 2017
composer.json Adding git repo info Jul 29, 2017
composer.lock Adding composer for easyrdf and phpunit dependency management Jul 29, 2017
deploy.sh Fix Jul 26, 2017
phpcs.ruleset.xml
phpunit.xml.dist Adding unit testing framework Jul 29, 2017
readme.txt Update readme.txt Jul 26, 2017
wp-ldp.php Updating version number Aug 28, 2017
wpldp.js Fix identation Jul 29, 2017

README.md

LDP Plugin for wordpress

Build Status Coverage Status

The goal of this project is to be able to manage (create, list, display) LDP resources directly from a Wordpress site backend.

Architecture

Content types

This plugin defines two custom content types:

  • ldp_resource: allows users to create resources on the fly
  • ldp_site: allows users and the site itself to manage a list of known websites in order to establish a federation

Taxonomies

This plugin defines one custom taxonomy:

  • ldp_container: corresponds to a LDP direct container accordingly to the official specs. It contains resources of a certain and unique type

Settings

It also adds a 'LDP Models' section in the Settings section, allowing users to define which models they would like to use to generate their resources (for now, a basic People model only having a name and description is used).

API

The LDP specification basically being a REST API specification to serve semantic data, this plugin defines an API having a few endpoints available.

  • /api/ldp/v1/schema : returns the schema of the LDP resources and containers available on the current site
  • /api/ldp/v1/container/ : returns the list of resources associated with the current container
  • /api/ldp/v1/container/resource/ : returns the whole definition of the current resource
  • /api/ldp/v1/sites : returns the list of sites the current site knows, as part of the federating feature

Those are for the GET endpoints, support for POST, PUT, PATCH and DELETE are on their way.

The reason

Wordpress is a widely used CMS, especially in the non-profits world because it is free, open-source and coming with a really rich ecosystem. This plugin is part of the development of the AV Proof of concept we need to deliver in a near future.

Documentation

For more information about installation, use, and features to come, please either see the Wiki or the issues list located: