Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.5 #4

Merged
merged 12 commits into from
Oct 22, 2019
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
steps:
- checkout
- run: mkdir -p ~/phpunit
- run: composer install
- run: phpunit test --log-junit ~/phpunit/test-results.xml
- store_test_results:
path: ~/phpunit
Expand All @@ -17,4 +18,4 @@ workflows:
version: 2
test:
jobs:
- test
- test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vendor/
22 changes: 18 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
start:
docker-compose --project-name wp-linked-data-dev --file=./docker/development.yml up -d
install:
docker run --rm --tty --interactive \
--user $(shell id -u):$(shell id -g) \
--volume $(shell pwd):/app \
--volume $${HOME}/.composer:/tmp \
composer install

test:
update:
docker run --rm --tty --interactive \
--user $(shell id -u):$(shell id -g) \
--volume $(shell pwd):/app \
--volume $${HOME}/.composer:/tmp \
composer update

test: install
docker run -it --rm -v $(shell pwd):/workdir -u "$(shell id -u):$(shell id -g)" -w /workdir --network=host phpunit/phpunit test

.PHONY: test
start: install
docker-compose --project-name wp-linked-data-dev --file=./docker/development.yml up --build -d

.PHONY: install start test
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

WordPress-Plugin to publish blog contents as Linked Data.

Version 0.4
Version 0.5

## Installation

Expand All @@ -12,8 +12,6 @@ Alternatively you may copy the contents of the /src directory to wp-content/plug

At least PHP 5.3.0 is required to use this plugin.

It is recommended that you install the pecl_http PHP extension (http://pecl.php.net/package/pecl_http). The plugin will work without it, but only with a simplified, inaccurate content negotiation.

## Usage

### Linked Data
Expand Down Expand Up @@ -66,6 +64,17 @@ Please contact me for any questions & feedback: [[email protected]](mailt

## Release Notes

Version 0.5

- better support for content-negotiation. No need to intstall pecl_http anymore
- add foaf:homepage to the Weblog resource
- now able to serve the following content types:
- application/ld+json
- text/turtle
- text/n3
- application/n-triples
- application/rdf+xml

Version 0.4

- add Access-Control-Allow-Origin header to allow linked data clients to fetch the data
Expand Down
10 changes: 10 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"config": {
"vendor-dir": "src/vendor"
},
"require": {
"willdurand/negotiation": "^2.3",
"easyrdf/easyrdf": "^0.9.1",
"ml/json-ld": "^1.1.0"
}
}
228 changes: 228 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading