— Draft —
Link for sharing: https://w3id.org/knowledge-space/
You might sometimes ask yourself questions like this:
— Draft —
Link for sharing: https://w3id.org/knowledge-space/
You might sometimes ask yourself questions like this:
| <?php declare(strict_types=1); | |
| require __DIR__ . '/../vendor/autoload.php'; | |
| function run_command(string $command): void { | |
| $loop = React\EventLoop\Factory::create(); | |
| $process = new React\ChildProcess\Process($command); | |
| $process->start($loop); | |
| $process->on('exit', function ($exitCode) use ($command) { | |
| // Trigger alerts that the command finished. |
| drush php-eval "\Drupal::service('config.installer')->installDefaultConfig('module', 'module_name');" |
| <template> | |
| <v-dialog v-model="dialog" :max-width="options.width" :style="{ zIndex: options.zIndex }" @keydown.esc="cancel"> | |
| <v-card> | |
| <v-toolbar dark :color="options.color" dense flat> | |
| <v-toolbar-title class="white--text">{{ title }}</v-toolbar-title> | |
| </v-toolbar> | |
| <v-card-text v-show="!!message" class="pa-4">{{ message }}</v-card-text> | |
| <v-card-actions class="pt-0"> | |
| <v-spacer></v-spacer> | |
| <v-btn color="primary darken-1" text @click.native="agree">Yes</v-btn> |
| <?php | |
| $filesystem = \Drupal::service('file_system'); | |
| // Create file entity. | |
| $image = File::create(); | |
| $image->setFileUri($destination); | |
| $image->setOwnerId(\Drupal::currentUser()->id()); | |
| $image->setMimeType('image/' . pathinfo($destination, PATHINFO_EXTENSION)); | |
| $image->setFileName($filesystem->basename($destination)); | |
| $image->setPermanent(); | |
| $image->save(); |
This documentation is destined for drupal.org. Created first as a gist to make initial comments easier. Rewrites and clarifications welcome. Code samples are simplified for clarity. Perhaps a bit too much?
When talking about extensibility, there are several distinct use cases:
The reaction can be anything; outputting a message, sending an email, modifying a related object, etc. Examples:
This document is a summary of the basic differences between the different kind of containers that Linked Data Platform (LDP) supports.
LDP specifies three types of containers:
This documents describes the differences between the three types of containers by showing what triples are added by an LDP Server when adding a new element to each kind of container.
In particular we assume we have a fictitious blog entry (/blog/entry1/) and we want to add a comment to it. We start by showing what happens if the blog entry is a Basic Container, then we show what happens if the blog entry was instead a Direct Container, and lastly if it was an Indirect Container.