Skip to content

Commit 9244f6e

Browse files
committed
Improved example following Ivan's suggestion.
1 parent 2e186b3 commit 9244f6e

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

index.html

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3314,14 +3314,21 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
33143314
****"@version": 1.1****,
33153315
****"@sealed": true****,
33163316
"name": "http://schema.org/name",
3317+
"employee": "http://schema.org/employee",
33173318
"Organization": "http://schema.org/Organization"
33183319
},
33193320
{
33203321
"member": "http://xmlns.com/foaf/0.1/member"
33213322
}
33223323
],
33233324
"@type": "Organization",
3324-
"name": "Digital Bazzar",
3325+
"name": "Digital Bazaar",
3326+
"employee" : {
3327+
"@context": {
3328+
"name": "this_attempt_to_override_name_will_fail"
3329+
},
3330+
"name" : "Dave Longley"
3331+
},
33253332
"member": {
33263333
"@context": {
33273334
"name": "http://xmlns.com/foaf/0.1/name"
@@ -3338,11 +3345,16 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
33383345
[{
33393346
"@type": ["http://schema.org/Organization"],
33403347
"http://schema.org/name": [{"@value": "Digital Bazaar"}],
3341-
"http://xmlns.com/foaf/0.1/member": [
3348+
"http://schema.org/employee": [
33423349
{
3343-
"http://xmlns.com/foaf/0.1/name": [{"@value": "Manu Sporny"}],
3350+
"http://schema.org/name": [{"@value": "Dave Longly"}]
33443351
}
33453352
],
3353+
"http://xmlns.com/foaf/0.1/member": [
3354+
{
3355+
"http://xmlns.com/foaf/0.1/name": [{"@value": "Manu Sporny"}]
3356+
}
3357+
]
33463358
}]
33473359
-->
33483360
</pre>
@@ -3353,7 +3365,9 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
33533365
<tbody>
33543366
<tr><td>_:b0</td><td>rdf:type</td><td>schema:Organization</td></tr>
33553367
<tr><td>_:b0</td><td>schema:name</td><td>Digital Bazaar</td></tr>
3356-
<tr><td>_:b0</td><td>foaf:member</td><td>_:b1</td></tr>
3368+
<tr><td>_:b0</td><td>schema:employee</td><td>_:b1</td></tr>
3369+
<tr><td>_:b0</td><td>foaf:member</td><td>_:b2</td></tr>
3370+
<tr><td>_:b1</td><td>schema:name</td><td>Dave Longley</td></tr>
33573371
<tr><td>_:b1</td><td>foaf:name</td><td>Manu Sporny</td></tr>
33583372
</tbody>
33593373
</table>
@@ -3363,15 +3377,18 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
33633377
data-transform="updateExample"
33643378
data-to-rdf>
33653379
<!--
3366-
@prefix schema: <http://schema.org/> .
3380+
@prefix schema: <http://schema.org/>.
33673381
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
33683382
33693383
[
33703384
a schema:Organization;
3371-
schema:name "Digital Bazaar";
3385+
shema:name "Digital Bazaar";
3386+
schema:employee [
3387+
schema:name "Dave Longley"
3388+
];
33723389
foaf:member [
33733390
foaf:name "Manu Sporny"
3374-
]
3391+
];
33753392
] .
33763393
-->
33773394
</pre>

0 commit comments

Comments
 (0)