Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 9431826

Browse files
committed
Merge pull request #701 from kolah/patch-1
Updated metadata section in introduction.rst
2 parents 70b206a + 0d0edf2 commit 9431826

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

bundles/create/introduction.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,32 @@ reads like this:
512512

513513
All of these issues will hopefully be fixed in later versions if people
514514
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.
515541

516542
Mapping Requests to Domain Objects
517543
----------------------------------

0 commit comments

Comments
 (0)