You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/odmltordf.rst
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -214,3 +214,21 @@ Currently the following mappings of ``odml.Section.type`` values to odml-rdf:Sec
214
214
stimulus/white_noise: Whitenoise
215
215
subject: Subject
216
216
217
+
Custom RDF subclassing
218
+
----------------------
219
+
220
+
The default list of odml.Section.types can be supplemented or even replaced by custom type to RDF subclass mappings.
221
+
222
+
All required is to provide a dictionary of the format ``{"odml.Section.type value": "RDF subclass value"}``. Please note that the ``odml.Section.type`` value should be provided lower case, while the ``RDF subclass value`` should be provided upper case::
Please note that entries in a custom subclass dictionary will overwrite entries in the default subclass dictionary.
228
+
229
+
Disable RDF subclassing
230
+
-----------------------
231
+
The subclassing feature can be disabled to export all odml.Sections as plain odml-rdf:Sections instead. This might be necessary if for e.g. a graph database is used that does not provide proper SPARQL reasoning and cannot make sense of RDF subclasses::
0 commit comments