This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -512,6 +512,32 @@ reads like this:
512
512
513
513
All of these issues will hopefully be fixed in later versions if people
514
514
step up and contribute pull requests.
515
+
516
+ In some cases you may need to use a property type multiple times (e.g. your
517
+ text property for some reason consists of 3 columns) and you want your
518
+ RDF data to be semantically correct.
519
+
520
+ While sending changed data via REST api, CreateJS uses RDF property names
521
+ (and not the identifiers) to distinguish values, so you should use
522
+ subsets for generic property names:
523
+
524
+ .. code-block :: xml
525
+
526
+ <type
527
+ xmlns : schema =" http://schema.org/"
528
+ typeof =" schema:WebPage"
529
+ >
530
+ <children >
531
+ <property property =" schema:headline" identifier =" title" />
532
+ <property property =" schema:text/column1" identifier =" column1" />
533
+ <property property =" schema:text/column2" identifier =" column2" />
534
+ <property property =" schema:text/column3" identifier =" column3" />
535
+ </children >
536
+ </type >
537
+
538
+ Otherwise, CreatePHP will not be able to determine which property has
539
+ been changed and it can lead to unexpected behaviors such as
540
+ overwriting contents of all elements using the same property name.
515
541
516
542
Mapping Requests to Domain Objects
517
543
----------------------------------
You can’t perform that action at this time.
0 commit comments