Skip to content

Commit

Permalink
Updated XML serialisation
Browse files Browse the repository at this point in the history
  • Loading branch information
riannella committed May 24, 2017
1 parent 2fd8e85 commit d1b76a9
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 18 deletions.
10 changes: 8 additions & 2 deletions vocab/ODRL22.xsd
Expand Up @@ -68,21 +68,27 @@

<xs:element name="asset" type="o:Asset"/>
<xs:complexType name="Asset">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="o:constraint" minOccurs="0" maxOccurs="unbounded"/>
</xs:choice>
<xs:attribute name="uid" type="xs:anyURI"/>
<!--Required Attribute-->
<xs:attribute name="relation" type="xs:anyURI"/>
<!--Required Attribute-->
<xs:attribute name="scope" type="xs:anyURI"/>
<xs:attribute name="type" type="xs:anyURI"/>
<xs:attributeGroup ref="o:idAttributes"/>
</xs:complexType>

<xs:element name="party" type="o:Party"/>
<xs:complexType name="Party">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="o:constraint" minOccurs="0" maxOccurs="unbounded"/>
</xs:choice>
<xs:attribute name="uid" type="xs:anyURI"/>
<!--Required Attribute-->
<xs:attribute name="function" type="xs:anyURI"/>
<!--Required Attribute-->
<xs:attribute name="scope" type="xs:anyURI"/>
<xs:attribute name="type" type="xs:anyURI"/>
<xs:attributeGroup ref="o:idAttributes"/>
</xs:complexType>

Expand Down
26 changes: 14 additions & 12 deletions vocab/index.html
Expand Up @@ -188,14 +188,6 @@ <h2>Vocabulary</h2>
<tr><th>Sub-classes:</th> <td><a href="#term-PartyCollection">PartyCollection</a>, <a href="#term-PartyIndividual">PartyIndividual</a></td></tr>
<tr><th>In range of:</th> <td><a href="#term-assignee">assignee</a>, <a href="#term-assigner">assigner</a>, <a href="#term-function">function</a></td></tr>
</table>
</section><section id="term-function"><h3>Function</h3><table class='def propdef' >
<tr><th>Definition:</th> <td>Function is an abstract property whose sub-properties define the functional roles which may be fulfilled by a party in relation to a Rule.</td></tr>
<tr><th>Label:</th> <td>Function</td></tr>
<tr><th>Identifier:</th> <td><a href="http://www.w3.org/ns/odrl/2/function">http://www.w3.org/ns/odrl/2/function</a></td></tr>
<tr><th>Sub-properties:</th> <td><a href="#term-assignee">assignee</a>, <a href="#term-assigner">assigner</a>, <a href="#term-attributedParty">attributedParty</a>, <a href="#term-attributingParty">attributingParty</a>, <a href="#term-compensatedParty">compensatedParty</a>, <a href="#term-compensatingParty">compensatingParty</a>, <a href="#term-consentedParty">consentedParty</a>, <a href="#term-consentingParty">consentingParty</a>, <a href="#term-contractedParty">contractedParty</a>, <a href="#term-contractingParty">contractingParty</a>, <a href="#term-informedParty">informedParty</a>, <a href="#term-informingParty">informingParty</a>, <a href="#term-trackedParty">trackedParty</a>, <a href="#term-trackingParty">trackingParty</a></td></tr>
<tr><th>Range:</th> <td><a href="#term-Party">Party</a></td></tr>
<tr><th>Domain:</th> <td><a href="#term-Policy">Policy</a>, <a href="#term-Rule">Rule</a></td></tr>
</table>
</section><section id="term-PartyIndividual"><h3>Party Individual</h3><table class='def propdef' >
<tr><th>Definition:</th> <td>A Party that is a single entity</td></tr>
<tr><th>Label:</th> <td>Party Individual</td></tr>
Expand All @@ -208,6 +200,14 @@ <h2>Vocabulary</h2>
<tr><th>Identifier:</th> <td><a href="http://www.w3.org/ns/odrl/2/PartyCollection">http://www.w3.org/ns/odrl/2/PartyCollection</a></td></tr>
<tr><th>Parent class:</th> <td><a href="#term-Party">Party</a></td></tr>
</table>
</section><section id="term-function"><h3>Function</h3><table class='def propdef' >
<tr><th>Definition:</th> <td>Function is an abstract property whose sub-properties define the functional roles which may be fulfilled by a party in relation to a Rule.</td></tr>
<tr><th>Label:</th> <td>Function</td></tr>
<tr><th>Identifier:</th> <td><a href="http://www.w3.org/ns/odrl/2/function">http://www.w3.org/ns/odrl/2/function</a></td></tr>
<tr><th>Sub-properties:</th> <td><a href="#term-assignee">assignee</a>, <a href="#term-assigner">assigner</a>, <a href="#term-attributedParty">attributedParty</a>, <a href="#term-attributingParty">attributingParty</a>, <a href="#term-compensatedParty">compensatedParty</a>, <a href="#term-compensatingParty">compensatingParty</a>, <a href="#term-consentedParty">consentedParty</a>, <a href="#term-consentingParty">consentingParty</a>, <a href="#term-contractedParty">contractedParty</a>, <a href="#term-contractingParty">contractingParty</a>, <a href="#term-informedParty">informedParty</a>, <a href="#term-informingParty">informingParty</a>, <a href="#term-trackedParty">trackedParty</a>, <a href="#term-trackingParty">trackingParty</a></td></tr>
<tr><th>Range:</th> <td><a href="#term-Party">Party</a></td></tr>
<tr><th>Domain:</th> <td><a href="#term-Policy">Policy</a>, <a href="#term-Rule">Rule</a></td></tr>
</table>
</section></section><section id="partyRoles"><h2>Party Functions</h2><section id="term-assignee"><h3>Assignee</h3><table class='def propdef' >
<tr><th>Definition:</th> <td>The Party is the recipient of the policy statement.</td></tr>
<tr><th>Label:</th> <td>Assignee</td></tr>
Expand Down Expand Up @@ -1340,28 +1340,30 @@ <h2>XML Encoding</h2>
<ul>
<li>uid - an IRI</li>
<li>relation - an IRI</li>
<li>scope - an IRI</li>
<li>type - an IRI</li>
<li>id - an local identifier for this element</li>
<li>idref - a reference to an Asset element</li>
</ul>
<p>Asset element attributes MUST be used as defined by one of the sets of attributes and their cardinalities below:</p>
<ol>
<li>uid (REQUIRED), relation (REQUIRED), id (OPTIONAL), or</li>
<li>uid (REQUIRED), relation (REQUIRED), type (OPTIONAL), id (OPTIONAL), or</li>
<li>idref (REQUIRED)</li>
</ol>
<p>The asset element may also contain the constraint element.</p>
<p>The Party class is a single party element to represent both the Party uid and the functional role to the Rule. The Party element contains the following attributes:</p>
<ul>
<li>uid - an IRI</li>
<li>function - an IRI</li>
<li>scope - an IRI</li>
<li>type - an IRI</li>
<li>id - a local identifier for this element</li>
<li>idref - a reference to a Party element</li>
</ul>
<p>Party element attributes MUST be used as defined by one of the sets of attributes and their cardinalities below:</p>
<ol>
<li>uid (REQUIRED), function (REQUIRED), scope (OPTIONAL), id (OPTIONAL), or</li>
<li>uid (REQUIRED), function (REQUIRED), type (OPTIONAL), id (OPTIONAL), or</li>
<li>idref (REQUIRED)</li>
</ol>
<p>The party element may also contain the constraint element.</p>
<p>The Permission element contains the following elements:</p>
<ul>
<li>asset (REQUIRED)</li>
Expand Down
10 changes: 6 additions & 4 deletions vocab/parts/xml.html
Expand Up @@ -37,28 +37,30 @@
<ul>
<li>uid - an IRI</li>
<li>relation - an IRI</li>
<li>scope - an IRI</li>
<li>type - an IRI</li>
<li>id - an local identifier for this element</li>
<li>idref - a reference to an Asset element</li>
</ul>
<p>Asset element attributes MUST be used as defined by one of the sets of attributes and their cardinalities below:</p>
<ol>
<li>uid (REQUIRED), relation (REQUIRED), id (OPTIONAL), or</li>
<li>uid (REQUIRED), relation (REQUIRED), type (OPTIONAL), id (OPTIONAL), or</li>
<li>idref (REQUIRED)</li>
</ol>
<p>The asset element may also contain the constraint element.</p>
<p>The Party class is a single party element to represent both the Party uid and the functional role to the Rule. The Party element contains the following attributes:</p>
<ul>
<li>uid - an IRI</li>
<li>function - an IRI</li>
<li>scope - an IRI</li>
<li>type - an IRI</li>
<li>id - a local identifier for this element</li>
<li>idref - a reference to a Party element</li>
</ul>
<p>Party element attributes MUST be used as defined by one of the sets of attributes and their cardinalities below:</p>
<ol>
<li>uid (REQUIRED), function (REQUIRED), scope (OPTIONAL), id (OPTIONAL), or</li>
<li>uid (REQUIRED), function (REQUIRED), type (OPTIONAL), id (OPTIONAL), or</li>
<li>idref (REQUIRED)</li>
</ol>
<p>The party element may also contain the constraint element.</p>
<p>The Permission element contains the following elements:</p>
<ul>
<li>asset (REQUIRED)</li>
Expand Down

0 comments on commit d1b76a9

Please sign in to comment.