@@ -6055,8 +6055,8 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
6055
6055
6056
6056
< p > Databases are typically used to make access to
6057
6057
data more efficient. Developers often extend this sort of functionality into
6058
- their application data to deliver similar performance gains. Often this
6059
- data does not have any meaning from a Linked Data standpoint, but is
6058
+ their application data to deliver similar performance gains.
6059
+ This data may have no meaning from a Linked Data standpoint, but is
6060
6060
still useful for an application.</ p >
6061
6061
6062
6062
< p > JSON-LD introduces the notion of < a > index maps</ a >
@@ -6441,6 +6441,195 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
6441
6441
-->
6442
6442
</ pre >
6443
6443
</ aside >
6444
+
6445
+ < section class ="informative changed "> < h3 > Property-based data indexing</ h3 >
6446
+ < p > In its simplest form (as in the examples above),
6447
+ data indexing assigns no semantics to the keys of an < a > index map</ a > .
6448
+ However, in some situations,
6449
+ the keys used to index objects are semantically linked to these objects,
6450
+ and should be preserved not only syntactically, but also semantically.
6451
+ </ p >
6452
+ < p > If the < a > processing mode</ a > is set to < code > json-ld-1.1</ code > ,
6453
+ < code > "@container": "@index"</ code > in a term description can be accompanied with
6454
+ an < code > "@index"</ code > key. The value of that key must map to an < a > IRI</ a > ,
6455
+ which identifies the semantic property linking each object to its key.
6456
+ </ p >
6457
+ < aside class ="example ds-selector-tabs "
6458
+ title ="Property-based data indexing ">
6459
+ < div class ="selectors ">
6460
+ < button class ="selected " data-selects ="original "> Original</ button >
6461
+ < button data-selects ="expanded "> Expanded</ button >
6462
+ < button data-selects ="statements "> Statements</ button >
6463
+ < button data-selects ="turtle "> Turtle</ button >
6464
+ < a class ="playground " target ="_blank "> </ a >
6465
+ </ div >
6466
+ < pre class ="original selected nohighlight " data-transform ="updateExample ">
6467
+ <!--
6468
+ {
6469
+ "@context": {
6470
+ "schema": "http://schema.org/",
6471
+ "dc": "http://purl.org/dc/elements/1.1/",
6472
+ "name": "schema:name",
6473
+ "body": "schema:articleBody",
6474
+ "words": "schema:wordCount",
6475
+ "post": {
6476
+ "@id": "schema:blogPost",
6477
+ ****"@container": "@index",
6478
+ "@index": "dc:language"****
6479
+ }
6480
+ },
6481
+ "@id": "http://example.com/",
6482
+ "@type": "schema:Blog",
6483
+ "name": "World Financial News",
6484
+ "post": {
6485
+ "en": {
6486
+ "@id": "http://example.com/posts/1/en",
6487
+ "body": "World commodities were up today with heavy trading of crude oil...",
6488
+ "words": 1539
6489
+ },
6490
+ "de": {
6491
+ "@id": "http://example.com/posts/1/de",
6492
+ "body": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...",
6493
+ "words": 1204
6494
+ }
6495
+ }
6496
+ }
6497
+ -->
6498
+ </ pre >
6499
+ < pre class ="expanded nohighlight "
6500
+ data-transform ="updateExample "
6501
+ data-ignore
6502
+ data-result-for ="Property-based data indexing-original ">
6503
+ <!--
6504
+ [{
6505
+ "@id": "http://example.com/",
6506
+ "@type": ["http://schema.org/Blog"],
6507
+ "http://schema.org/name": [{"@value": "World Financial News"}],
6508
+ "http://schema.org/blogPost": [{
6509
+ "@id": "http://example.com/posts/1/en",
6510
+ "http://schema.org/articleBody": [
6511
+ {"@value": "World commodities were up today with heavy trading of crude oil..."}
6512
+ ],
6513
+ "http://schema.org/wordCount": [
6514
+ {"@value": 1539}
6515
+ ],
6516
+ ****"http://purl.org/dc/elements/1.1/language": "en"****
6517
+ }, {
6518
+ "@id": "http://example.com/posts/1/de",
6519
+ "http://schema.org/articleBody": [
6520
+ {"@value": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..."}
6521
+ ],
6522
+ "http://schema.org/wordCount": [{"@value": 1204}],
6523
+ ****"http://purl.org/dc/elements/1.1/language": "de"****
6524
+ }]
6525
+ }]
6526
+ -->
6527
+ </ pre >
6528
+ < table class ="statements "
6529
+ data-ignore
6530
+ data-result-for ="Property-based data indexing-expanded "
6531
+ data-to-rdf >
6532
+ < thead > < tr >
6533
+ < th > Subject</ th >
6534
+ < th > Property</ th >
6535
+ < th > Value</ th >
6536
+ < th > Value Type</ th >
6537
+ </ tr > </ thead >
6538
+ < tbody >
6539
+ < tr >
6540
+ < td > http://example.com/</ td >
6541
+ < td > rdf:type</ td >
6542
+ < td > schema:Blog</ td >
6543
+ < td > </ td >
6544
+ </ tr >
6545
+ < tr >
6546
+ < td > http://example.com/</ td >
6547
+ < td > schema:name</ td >
6548
+ < td > World Financial News</ td >
6549
+ < td > </ td >
6550
+ </ tr >
6551
+ < tr >
6552
+ < td > http://example.com/</ td >
6553
+ < td > schema:blogPost</ td >
6554
+ < td > http://example.com/posts/1/de</ td >
6555
+ < td > </ td >
6556
+ </ tr >
6557
+ < tr >
6558
+ < td > http://example.com/</ td >
6559
+ < td > schema:blogPost</ td >
6560
+ < td > http://example.com/posts/1/en</ td >
6561
+ < td > </ td >
6562
+ </ tr >
6563
+ < tr >
6564
+ < td > http://example.com/posts/1/de</ td >
6565
+ < td > schema:articleBody</ td >
6566
+ < td > Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...</ td >
6567
+ < td > </ td >
6568
+ </ tr >
6569
+ < tr >
6570
+ < td > http://example.com/posts/1/de</ td >
6571
+ < td > schema:wordCount</ td >
6572
+ < td > 1204</ td >
6573
+ < td > xsd:integer</ td >
6574
+ </ tr >
6575
+ < tr >
6576
+ < td > http://example.com/posts/1/de</ td >
6577
+ < td > dc:language</ td >
6578
+ < td > de</ td >
6579
+ < td > </ td >
6580
+ </ tr >
6581
+ < tr >
6582
+ < td > http://example.com/posts/1/en</ td >
6583
+ < td > schema:articleBody</ td >
6584
+ < td > World commodities were up today with heavy trading of crude oil...</ td >
6585
+ < td > </ td >
6586
+ </ tr >
6587
+ < tr >
6588
+ < td > http://example.com/posts/1/en</ td >
6589
+ < td > schema:wordCount</ td >
6590
+ < td > 1539</ td >
6591
+ < td > xsd:integer</ td >
6592
+ </ tr >
6593
+ < tr >
6594
+ < td > http://example.com/posts/1/en</ td >
6595
+ < td > dc:language</ td >
6596
+ < td > en</ td >
6597
+ < td > </ td >
6598
+ </ tr >
6599
+ </ tbody >
6600
+ </ table >
6601
+ < pre class ="turtle nohighlight "
6602
+ data-content-type ="text/turtle "
6603
+ data-ignore
6604
+ data-result-for ="Property-based data indexing-expanded "
6605
+ data-transform ="updateExample "
6606
+ data-to-rdf >
6607
+ <!--
6608
+ @prefix schema: <http://schema.org/> .
6609
+ @prefix dc: <http://purl.org/dc/elements/1.1/language> .
6610
+ @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
6611
+
6612
+ <http://example.com/> a schema:Blog;
6613
+ schema:blogPost <http://example.com/posts/1/de>,
6614
+ <http://example.com/posts/1/en>;
6615
+ schema:name "World Financial News" .
6616
+
6617
+ <http://example.com/posts/1/de>
6618
+ schema:articleBody
6619
+ "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...";
6620
+ schema:wordCount 1204;
6621
+ ****dc:language "de"****.
6622
+
6623
+ <http://example.com/posts/1/en>
6624
+ schema:articleBody
6625
+ "World commodities were up today with heavy trading of crude oil...";
6626
+ schema:wordCount 1539;
6627
+ ****dc:language "en"****.
6628
+ -->
6629
+ </ pre >
6630
+ </ aside >
6631
+ </ section >
6632
+
6444
6633
</ section >
6445
6634
< section class ="informative "> < h2 > Language Indexing</ h2 >
6446
6635
0 commit comments