summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries2013-11-17 20:31:13 (GMT)
committerDries2013-11-17 20:31:13 (GMT)
commit65f606ef459c0b8bf8475ba3b0cfec4449756c77 (patch)
treecdf03dd0e190d40a1f34655219b0f423dc6866b0
parent821d3bb00bc1716d8de9b100b697fbd7bf1db9f6 (diff)
Issue #2107681 by vijaycs85, rych: Create configuration schema for RDF module.
-rw-r--r--core/modules/rdf/config/schema/rdf.data_types.yml29
-rw-r--r--core/modules/rdf/config/schema/rdf.schema.yml28
2 files changed, 57 insertions, 0 deletions
diff --git a/core/modules/rdf/config/schema/rdf.data_types.yml b/core/modules/rdf/config/schema/rdf.data_types.yml
new file mode 100644
index 0000000..ef35469
--- /dev/null
+++ b/core/modules/rdf/config/schema/rdf.data_types.yml
@@ -0,0 +1,29 @@
+rdf_field_mapping:
+ type: mapping
+ label: 'RDF mapping'
+ mapping:
+ properties:
+ type: sequence
+ label: 'Properties'
+ sequence:
+ - type: string
+ datatype:
+ type: string
+ label: 'Data type'
+ datatype_callback:
+ type: mapping
+ label: 'Data type callback'
+ mapping:
+ callable:
+ type: string
+ label: 'Callable'
+ arguments:
+ type: mapping
+ label: 'Arguments'
+ mapping:
+ interaction_type:
+ type: string
+ label: 'Interaction type'
+ mapping_type:
+ type: string
+ label: 'Mapping type'
diff --git a/core/modules/rdf/config/schema/rdf.schema.yml b/core/modules/rdf/config/schema/rdf.schema.yml
new file mode 100644
index 0000000..570d602
--- /dev/null
+++ b/core/modules/rdf/config/schema/rdf.schema.yml
@@ -0,0 +1,28 @@
+# Schema for the configuration files of the RDF module.
+
+rdf.mapping.*.*:
+ type: mapping
+ label: 'RDF mapping'
+ mapping:
+ id:
+ type: string
+ label: 'ID'
+ uuid:
+ type: string
+ label: 'UUID'
+ targetEntityType:
+ type: string
+ label: 'Target entity type'
+ bundle:
+ type: string
+ label: 'Bundle'
+ types:
+ type: sequence
+ label: 'Types'
+ sequence:
+ - type: string
+ fieldMappings:
+ type: sequence
+ label: 'Field mappings'
+ sequence:
+ - type: rdf_field_mapping