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

Updated metadata section in introduction.rst #701

Merged
merged 1 commit into from
Aug 24, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions bundles/create/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,32 @@ reads like this:

All of these issues will hopefully be fixed in later versions if people
step up and contribute pull requests.

In some cases you may need to use a property type multiple times (e.g. your
text property for some reason consists of 3 columns) and you want your
RDF data to be semantically correct.

While sending changed data via REST api, CreateJS uses RDF property names
(and not the identifiers) to distinguish values, so you should use
subsets for generic property names:

.. code-block:: xml

<type
xmlns:schema="http://schema.org/"
typeof="schema:WebPage"
>
<children>
<property property="schema:headline" identifier="title" />
<property property="schema:text/column1" identifier="column1" />
<property property="schema:text/column2" identifier="column2" />
<property property="schema:text/column3" identifier="column3" />
</children>
</type>

Otherwise, CreatePHP will not be able to determine which property has
been changed and it can lead to unexpected behaviors such as
overwriting contents of all elements using the same property name.

Mapping Requests to Domain Objects
----------------------------------
Expand Down