Download the PHP package openeuropa/rdf_skos without Composer
On this page you can find all versions of the php package openeuropa/rdf_skos. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download openeuropa/rdf_skos
More information about openeuropa/rdf_skos
Files in openeuropa/rdf_skos
Package rdf_skos
Short Description Drupal module that contains the RDF SKOS entity types.
License EUPL-1.2
Informations about the package rdf_skos
RDF SKOS
This module provides a dedicated entity type for SKOS modeling. The module requires access to a triplestore database, such as Virtuoso 7.
Upgrade from 0.11.0 to 1.0.0-alpha1
On 1.0.0-alpha1
, the rdf_entity
module dependency has been removed and instead the sparql_entity_storage
module has been
introduced (see the rdf_entity module's Readme for more information).
As suggested by the rdf_entity
module itself, the following steps can be taken in order to update rdf_skos
in production:
The update process needs to be split in three deployments, which will likely result into separate site releases.
First deployment
-
Before you update
rdf_skos
to1.0.0-alpha1
, require an empty version of thedrupal/sparql_entity_storage
module: - Deploy to production.
- Enable the module (this can be part of the deployment procedure above, depending on your setup).
At this point your site's composer.json
should look like this:
Second deployment
- Remove the empty
drupal/sparql_entity_storage
module requirement from yourcomposer.json
. - Require
drupal/rdf_entity
with the new1.0-alpha21
version andopeneuropa/rdf_skos
with the new1.0.0-alpha1
version. - Deploy to production.
- Uninstall the
drupal/rdf_entity
module (this can be part of the deployment procedure above, depending on your setup).
At this point your site's composer.json
should look like this:
Third deployment
- Remove the
drupal/rdf_entity
dependency. - Deploy to production.
At this point your site's composer.json
should look like this:
After these steps your site should have the latest version drupal/rdf_skos
module using drupal/sparql_entity_storage
and the drupal/rdf_entity
module should no longer be in your codebase.
Technical details and constraints
The module allows loading SKOS concept schemes and concepts as entities in Drupal. The entities will be loaded from the graph IRIs specified in the related configuration.
Since all the graphs are passed to the methods for loading entities, this enforces the limitation of having unique IRIs (IDs in Drupalese) for the SKOS entities present in all the graphs.
Development setup
Initial setup
You can build the test site by running the following steps.
- Install Virtuoso. The easiest way to do this is by using the OpenEuropa Triple store development Docker container which also pre-imports the main Europa vocabularies.
-
Install all the composer dependencies:
-
Customize build settings by copying
runner.yml.dist
torunner.yml
and changing relevant values, like your database credentials. - Setup test site by running:
This will symlink the module in the proper directory within the test site and
perform token substitution in test configuration files such as behat.yml.dist
.
Please note: project files and directories are symlinked within the test site by using the OpenEuropa Task Runner's Drupal project symlink command.
If you add a new file or directory in the root of the project, you need to re-run drupal:site-setup
in order to make
sure they are be correctly symlinked.
If you don't want to re-run a full site setup for that, you can simply run:
- Install test site by running:
Your test site will be available at ./build
.
Using Docker Compose
Alternatively you can build a test site using Docker and Docker-compose with the provided configuration.
Requirements:
You can make any alterations you need for your local Docker setup. However, the defaults should be enough to set the project up.
Run:
Then:
Your test site will be available at http://localhost:8080/build.
To run the grumphp test:
To run the phpunit test:
To run the behat test:
Working with content
The project ships with the following Task Runner commands to work with content in the RDF store, they require Docker Compose services to be up and running.
Purge all data:
Or, if you can run commands on your host machine:
Import default data:
Or, if you can run commands on your host machine:
Reset all data, i.e. run purge and import:
Or, if you can run commands on your host machine:
All versions of rdf_skos with dependencies
drupal/core Version ^10
drupal/sparql_entity_storage Version ^2.0.0-alpha12