Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2246 from ec-europa/ISAICP-6152
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiu-cristea authored Sep 29, 2020
2 parents 8fdb45b + 5110b77 commit d48af43
Show file tree
Hide file tree
Showing 115 changed files with 1,064 additions and 1,756 deletions.
1 change: 1 addition & 0 deletions .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ SPARQL_HOST=virtuoso
SPARQL_PORT=8890
SPARQL_USER=dba
SPARQL_PASSWORD=dba
SPARQL_PUBLIC_ENDPOINT=https://joinup.ec.europa.eu/sparql/

# Apache Solr endpoints.
SOLR_CORE_PUBLISHED_NAME=drupal_published
Expand Down
26 changes: 0 additions & 26 deletions config/sync/collection.settings.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,3 @@
# The array of allowed conditions for collection workflow transitions.
# Format of array:
# @code
# [
# <target state> => [
# <source state> => [
# <role1>
# <role2>
# .
# .
# ]
# ]
# ]
# @endcode
#
# The array is a three dimensions array. The first level is the
# target state the entity transits to. Each target
# state is an array of allowed source states which in every check, is the
# current state of the entity. Finally, the source states are arrays
# of roles that are allowed to perform this action.
#
# The reverse indexing here (source states
# keyed by the target state) is to follow the state_machines module logic
# of indexing states.
transitions:
draft:
__new__:
Expand Down Expand Up @@ -49,8 +25,6 @@ transitions:
validated:
- moderator
- rdf_entity-collection-facilitator
# In the following to-state, the facilitator will not actually have permission to execute the transition if there is
# not already a published version of the collection.
validated:
__new__:
- moderator
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
uuid: 7efa7d58-2707-4c99-9b80-dc352efa078e
langcode: en
status: true
dependencies:
config:
- field.field.rdf_entity.rdf_graph.field_rdf_file
- rdf_entity.rdfentity.rdf_graph
module:
- file
id: rdf_entity.rdf_graph.default
targetEntityType: rdf_entity
bundle: rdf_graph
mode: default
content:
field_rdf_file:
weight: 1
settings:
progress_indicator: throbber
third_party_settings: { }
type: file_generic
region: content
label:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
hidden:
created: true
current_workflow_state: true
langcode: true
uid: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
uuid: 64b24dc3-a205-4d78-a508-e8d39a386e82
langcode: en
status: true
dependencies:
config:
- field.field.rdf_entity.rdf_graph.field_rdf_file
- rdf_entity.rdfentity.rdf_graph
module:
- file
- user
id: rdf_entity.rdf_graph.default
targetEntityType: rdf_entity
bundle: rdf_graph
mode: default
content:
field_rdf_file:
weight: 1
label: inline
settings:
use_description_as_link_text: true
third_party_settings: { }
type: file_default
region: content
label:
label: hidden
type: string
weight: -5
region: content
settings:
link_to_entity: false
third_party_settings: { }
hidden:
changed: true
created: true
langcode: true
1 change: 1 addition & 0 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ module:
joinup_notification: 0
joinup_paragraphs: 0
joinup_rdf: 0
joinup_rdf_graph: 0
joinup_rss: 0
joinup_search: 0
joinup_seo: 0
Expand Down
28 changes: 28 additions & 0 deletions config/sync/field.field.rdf_entity.rdf_graph.field_rdf_file.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
uuid: 96981b56-c71f-471f-8ac7-41b51ee79a8f
langcode: en
status: true
dependencies:
config:
- field.storage.rdf_entity.field_rdf_file
- rdf_entity.rdfentity.rdf_graph
module:
- file
id: rdf_entity.rdf_graph.field_rdf_file
field_name: field_rdf_file
entity_type: rdf_entity
bundle: rdf_graph
label: 'RDF file'
description: ''
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings:
file_directory: queryable-artefacts
file_extensions: 'ttl rdf'
max_filesize: '10 MB'
description_field: false
description_field_required: false
handler: 'default:file'
handler_settings: { }
field_type: file
39 changes: 39 additions & 0 deletions config/sync/field.storage.rdf_entity.field_rdf_file.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
uuid: dd4cefab-75c7-4cd2-8cc4-916b939fc06b
langcode: en
status: true
dependencies:
module:
- field_permissions
- file
- rdf_entity
- sparql_entity_storage
third_party_settings:
sparql_entity_storage:
mapping:
target_id:
predicate: 'http://joinup.eu/bundle/rdf-graph/file/fid'
format: 'xsd:integer'
display:
predicate: 'http://joinup.eu/bundle/rdf-graph/file/display'
format: 'xsd:boolean'
description:
predicate: 'http://joinup.eu/bundle/rdf-graph/file/description'
format: t_literal
field_permissions:
permission_type: public
id: rdf_entity.field_rdf_file
field_name: field_rdf_file
entity_type: rdf_entity
type: file
settings:
display_field: false
display_default: false
uri_scheme: public
target_type: file
module: file
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
23 changes: 23 additions & 0 deletions config/sync/pathauto.pattern.rdf_entities_rdf_graphs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
uuid: a9ca268c-a6cd-48e1-afef-572fac0ff18c
langcode: en
status: true
dependencies:
module:
- ctools
- rdf_entity
id: rdf_entities_rdf_graphs
label: 'Rdf entities - RDF graphs'
type: rdf_entity
pattern: 'rdf-graph/[rdf_entity:label]'
selection_criteria:
1d496de2-bc06-4747-8fc3-258f4144a767:
id: 'entity_bundle:rdf_entity'
bundles:
rdf_graph: rdf_graph
negate: false
context_mapping:
rdf_entity: rdf_entity
uuid: 1d496de2-bc06-4747-8fc3-258f4144a767
selection_logic: and
weight: -2
relationships: { }
10 changes: 10 additions & 0 deletions config/sync/rdf_entity.rdfentity.rdf_graph.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
uuid: 1cf631ee-bc3e-4667-9add-595a1a7fcd25
langcode: en
status: true
dependencies: { }
name: 'RDF Graph'
rid: rdf_graph
description: ''
label_singular: null
label_plural: null
label_count: null
33 changes: 0 additions & 33 deletions config/sync/solution.settings.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,3 @@
# The array of allowed conditions for solution workflow transitions.
# Format of array:
# @code
# [
# <target state> => [
# <source state> => [
# <role1>
# <role2>
# .
# .
# ]
# ]
# ]
# @endcode
#
# The array is a three dimensions array. The first level is the
# target state the entity transits to. Each target
# state is an array of allowed source states which in every check, is the
# current state of the entity. Finally, the source states are arrays
# of roles that are allowed to perform this action.
#
# The reverse indexing here (source states
# keyed by the target state) is to follow the state_machines module logic
# of indexing states.
#
# For creating a solution, we also allow the role rdf_entity-collection-facilitator
# which we will filter in the Guard class to be the facilitator of the current
# collection. For all the other states, the solution facilitator is responsible.
# For example, a user who is a collection facilitator, can create a solution and
# put it either in draft, or in proposed state. But if he selects 'draft', then
# he can move it to a 'proposed' state only as a solution facilitator.
transitions:
draft:
__new__:
Expand Down Expand Up @@ -68,8 +37,6 @@ transitions:
blacklisted:
- moderator
- rdf_entity-solution-facilitator
# In the following to-state, the facilitator will not actually have permission to execute the transition if there is
# not already a published version of the solution.
validated:
__new__:
- moderator
Expand Down
71 changes: 71 additions & 0 deletions config/sync/sparql_entity_storage.mapping.rdf_entity.rdf_graph.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
uuid: f047baa5-4c89-4e31-b3a6-905218780da5
langcode: en
status: true
dependencies:
config:
- rdf_entity.rdfentity.rdf_graph
- sparql_entity_storage.graph.default
id: rdf_entity.rdf_graph
entity_type_id: rdf_entity
bundle: rdf_graph
rdf_type: 'http://joinup.eu/bundle/rdf-graph'
graph:
default: 'http://joinup.eu/bundle/rdf-graph/graph'
base_fields_mapping:
rid:
target_id:
predicate: 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type'
format: resource
uid:
target_id:
predicate: 'http://joinup.eu/bundle/rdf-graph/uid'
format: 'xsd:integer'
label:
value:
predicate: 'http://purl.org/dc/terms/title'
format: t_literal
created:
value:
predicate: 'http://purl.org/dc/terms/modified'
format: 'xsd:dateTime'
changed:
value:
predicate: 'http://purl.org/dc/terms/modified'
format: 'xsd:dateTime'
uuid:
value:
predicate: ''
format: ''
langcode:
value:
predicate: ''
format: ''
default_langcode:
value:
predicate: ''
format: ''
front_page_pinned:
value:
predicate: ''
format: ''
content_translation_source:
value:
predicate: ''
format: ''
content_translation_outdated:
value:
predicate: ''
format: ''
content_translation_uid:
target_id:
predicate: ''
format: ''
content_translation_status:
value:
predicate: ''
format: ''
graph:
target_id:
predicate: ''
format: ''
entity_id_plugin: joinup_rdf_graph
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
uuid: 5ede79e0-0d44-4f20-b1c3-3bfa8dc1ed3d
langcode: en
status: true
dependencies:
config:
- user.role.rdf_graph_manager
module:
- user
id: user_add_role_action.rdf_graph_manager
label: 'Add the RDF graph manager role to the selected user(s)'
type: user
plugin: user_add_role_action
weight: 0
configuration:
rid: rdf_graph_manager
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
uuid: a2cfe4d6-b73d-40a6-bdfb-24d2be6aaa5b
langcode: en
status: true
dependencies:
config:
- user.role.rdf_graph_manager
module:
- user
id: user_remove_role_action.rdf_graph_manager
label: 'Remove the RDF graph manager role from the selected user(s)'
type: user
plugin: user_remove_role_action
weight: 0
configuration:
rid: rdf_graph_manager
15 changes: 15 additions & 0 deletions config/sync/user.role.rdf_graph_manager.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
uuid: 765c6c80-4aad-4deb-a754-5b4af12b7f01
langcode: en
status: true
dependencies: { }
id: rdf_graph_manager
label: 'RDF graph manager'
weight: 5
is_admin: null
permissions:
- 'access toolbar'
- 'create rdf_graph rdf entity'
- 'delete own rdf_graph rdf entity'
- 'delete rdf_graph rdf entity'
- 'edit own asset_release rdf entity'
- 'edit rdf_graph rdf entity'
Loading

0 comments on commit d48af43

Please sign in to comment.