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

Commit

Permalink
Merge pull request #701 from kolah/patch-1
Browse files Browse the repository at this point in the history
Updated metadata section in introduction.rst
  • Loading branch information
dbu committed Aug 24, 2015
2 parents 70b206a + 0d0edf2 commit 9431826
Showing 1 changed file with 26 additions and 0 deletions.
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

0 comments on commit 9431826

Please sign in to comment.