Skip to content

Commit

Permalink
Add Stardog as new backend adapter
Browse files Browse the repository at this point in the history
- testet with Stardog >=4.0.1 (available via Docker)
- use Guzzle 5.0.3 as http request client (downgraded for PHP 5.4 support)
- add sample config.ini
- add integration tests
- currently no unit tests
- currently no native rdf import/export
- code formatted with php code sniffer
  • Loading branch information
simeonackermann committed Aug 15, 2016
1 parent 8340230 commit 3105977
Show file tree
Hide file tree
Showing 7 changed files with 1,592 additions and 3 deletions.
14 changes: 13 additions & 1 deletion Makefile
Expand Up @@ -22,9 +22,11 @@ default:
@echo " test-unit .................... Run Erfurt unit tests"
@echo " test-unit-cc ................. Same as above plus code coverage report"
@echo " test-integration-virtuoso .... Run Erfurt integration tests with virtuoso"
@echo " test-integration-virtuoso-cc . Same as above plus code coverage report"
@echo " test-integration-virtuoso-cc . Same as above plus code coverage report"
@echo " test-integration-mysql ....... Run Erfurt integration tests with mysql"
@echo " test-integration-mysql-cc .... Same as above plus code coverage report"
@echo " test-integration-stardog ..... Run Erfurt integration tests with stardog"
@echo " test-integration-stardog-cc .. Same as above plus code coverage report"
@echo " test-clean ................... Clean test cache files, etc."
@echo " ----------------------------------------------------------------------"
@echo " codesniffer .................. Run CodeSniffer checks"
Expand Down Expand Up @@ -88,6 +90,12 @@ test-integration-mysql: directories
test-integration-mysql-cc: directories
EF_STORE_ADAPTER=zenddb $(PHPUNIT) --testsuite "Erfurt Integration Tests" --coverage-html ./build/coverage-mysql

test-integration-stardog: directories
EF_STORE_ADAPTER=stardog $(PHPUNIT) --testsuite "Erfurt Integration Tests"

test-integration-stardog-cc: directories
EF_STORE_ADAPTER=stardog $(PHPUNIT) --testsuite "Erfurt Integration Tests" --coverage-html ./build/coverage-stardog

test:
make test-unit
@echo ""
Expand All @@ -98,6 +106,10 @@ test:
@echo "-----------------------------------"
@echo ""
make test-integration-mysql
@echo ""
@echo "-----------------------------------"
@echo ""
make test-integration-stardog

codesniffer:
$(PHPCS) -p
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -14,7 +14,8 @@
"php": ">=5.4.0",
"semsol/arc2": "*",
"zendframework/zendframework1": "1.*",
"easyrdf/easyrdf": "0.9.*"
"easyrdf/easyrdf": "0.9.*",
"guzzlehttp/guzzle": "5.3.1"
},
"require-dev": {
"phpunit/phpunit": "4.5.*",
Expand Down

0 comments on commit 3105977

Please sign in to comment.