Version 1
[yaffs-website] / web / core / modules / forum / config / optional / rdf.mapping.node.forum.yml
diff --git a/web/core/modules/forum/config/optional/rdf.mapping.node.forum.yml b/web/core/modules/forum/config/optional/rdf.mapping.node.forum.yml
new file mode 100644 (file)
index 0000000..2fbd521
--- /dev/null
@@ -0,0 +1,40 @@
+langcode: en
+status: true
+dependencies:
+  config:
+    - node.type.forum
+  module:
+    - node
+id: node.forum
+targetEntityType: node
+bundle: forum
+types:
+  - 'schema:Discussion'
+fieldMappings:
+  title:
+    properties:
+      - 'schema:name'
+  created:
+    properties:
+      - 'schema:dateCreated'
+    datatype_callback:
+      callable: 'Drupal\rdf\CommonDataConverter::dateIso8601Value'
+  changed:
+    properties:
+      - 'schema:dateModified'
+    datatype_callback:
+      callable: 'Drupal\rdf\CommonDataConverter::dateIso8601Value'
+  body:
+    properties:
+      - 'schema:text'
+  uid:
+    properties:
+      - 'schema:author'
+    mapping_type: rel
+  comment_count:
+    properties:
+      - 'schema:interactionCount'
+    datatype_callback:
+      callable: 'Drupal\rdf\SchemaOrgDataConverter::interactionCount'
+      arguments:
+        interaction_type: UserComments