@@ -6165,8 +6165,8 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
6165
6165
6166
6166
< p > Databases are typically used to make access to
6167
6167
data more efficient. Developers often extend this sort of functionality into
6168
- their application data to deliver similar performance gains. Often this
6169
- data does not have any meaning from a Linked Data standpoint, but is
6168
+ their application data to deliver similar performance gains.
6169
+ This data may have no meaning from a Linked Data standpoint, but is
6170
6170
still useful for an application.</ p >
6171
6171
6172
6172
< p > JSON-LD introduces the notion of < a > index maps</ a >
@@ -6551,6 +6551,195 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
6551
6551
-->
6552
6552
</ pre >
6553
6553
</ aside >
6554
+
6555
+ < section class ="informative changed "> < h3 > Property-based data indexing</ h3 >
6556
+ < p > In its simplest form (as in the examples above),
6557
+ data indexing assigns no semantics to the keys of an < a > index map</ a > .
6558
+ However, in some situations,
6559
+ the keys used to index objects are semantically linked to these objects,
6560
+ and should be preserved not only syntactically, but also semantically.
6561
+ </ p >
6562
+ < p > If the < a > processing mode</ a > is set to < code > json-ld-1.1</ code > ,
6563
+ < code > "@container": "@index"</ code > in a term description can be accompanied with
6564
+ an < code > "@index"</ code > key. The value of that key must map to an < a > IRI</ a > ,
6565
+ which identifies the semantic property linking each object to its key.
6566
+ </ p >
6567
+ < aside class ="example ds-selector-tabs "
6568
+ title ="Property-based data indexing ">
6569
+ < div class ="selectors ">
6570
+ < button class ="selected " data-selects ="original "> Original</ button >
6571
+ < button data-selects ="expanded "> Expanded</ button >
6572
+ < button data-selects ="statements "> Statements</ button >
6573
+ < button data-selects ="turtle "> Turtle</ button >
6574
+ < a class ="playground " target ="_blank "> </ a >
6575
+ </ div >
6576
+ < pre class ="original selected nohighlight " data-transform ="updateExample ">
6577
+ <!--
6578
+ {
6579
+ "@context": {
6580
+ "schema": "http://schema.org/",
6581
+ "dc": "http://purl.org/dc/elements/1.1/",
6582
+ "name": "schema:name",
6583
+ "body": "schema:articleBody",
6584
+ "words": "schema:wordCount",
6585
+ "post": {
6586
+ "@id": "schema:blogPost",
6587
+ ****"@container": "@index",
6588
+ "@index": "dc:language"****
6589
+ }
6590
+ },
6591
+ "@id": "http://example.com/",
6592
+ "@type": "schema:Blog",
6593
+ "name": "World Financial News",
6594
+ "post": {
6595
+ "en": {
6596
+ "@id": "http://example.com/posts/1/en",
6597
+ "body": "World commodities were up today with heavy trading of crude oil...",
6598
+ "words": 1539
6599
+ },
6600
+ "de": {
6601
+ "@id": "http://example.com/posts/1/de",
6602
+ "body": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...",
6603
+ "words": 1204
6604
+ }
6605
+ }
6606
+ }
6607
+ -->
6608
+ </ pre >
6609
+ < pre class ="expanded nohighlight "
6610
+ data-transform ="updateExample "
6611
+ data-ignore
6612
+ data-result-for ="Property-based data indexing-original ">
6613
+ <!--
6614
+ [{
6615
+ "@id": "http://example.com/",
6616
+ "@type": ["http://schema.org/Blog"],
6617
+ "http://schema.org/name": [{"@value": "World Financial News"}],
6618
+ "http://schema.org/blogPost": [{
6619
+ "@id": "http://example.com/posts/1/en",
6620
+ "http://schema.org/articleBody": [
6621
+ {"@value": "World commodities were up today with heavy trading of crude oil..."}
6622
+ ],
6623
+ "http://schema.org/wordCount": [
6624
+ {"@value": 1539}
6625
+ ],
6626
+ ****"http://purl.org/dc/elements/1.1/language": "en"****
6627
+ }, {
6628
+ "@id": "http://example.com/posts/1/de",
6629
+ "http://schema.org/articleBody": [
6630
+ {"@value": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..."}
6631
+ ],
6632
+ "http://schema.org/wordCount": [{"@value": 1204}],
6633
+ ****"http://purl.org/dc/elements/1.1/language": "de"****
6634
+ }]
6635
+ }]
6636
+ -->
6637
+ </ pre >
6638
+ < table class ="statements "
6639
+ data-ignore
6640
+ data-result-for ="Property-based data indexing-expanded "
6641
+ data-to-rdf >
6642
+ < thead > < tr >
6643
+ < th > Subject</ th >
6644
+ < th > Property</ th >
6645
+ < th > Value</ th >
6646
+ < th > Value Type</ th >
6647
+ </ tr > </ thead >
6648
+ < tbody >
6649
+ < tr >
6650
+ < td > http://example.com/</ td >
6651
+ < td > rdf:type</ td >
6652
+ < td > schema:Blog</ td >
6653
+ < td > </ td >
6654
+ </ tr >
6655
+ < tr >
6656
+ < td > http://example.com/</ td >
6657
+ < td > schema:name</ td >
6658
+ < td > World Financial News</ td >
6659
+ < td > </ td >
6660
+ </ tr >
6661
+ < tr >
6662
+ < td > http://example.com/</ td >
6663
+ < td > schema:blogPost</ td >
6664
+ < td > http://example.com/posts/1/de</ td >
6665
+ < td > </ td >
6666
+ </ tr >
6667
+ < tr >
6668
+ < td > http://example.com/</ td >
6669
+ < td > schema:blogPost</ td >
6670
+ < td > http://example.com/posts/1/en</ td >
6671
+ < td > </ td >
6672
+ </ tr >
6673
+ < tr >
6674
+ < td > http://example.com/posts/1/de</ td >
6675
+ < td > schema:articleBody</ td >
6676
+ < td > Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...</ td >
6677
+ < td > </ td >
6678
+ </ tr >
6679
+ < tr >
6680
+ < td > http://example.com/posts/1/de</ td >
6681
+ < td > schema:wordCount</ td >
6682
+ < td > 1204</ td >
6683
+ < td > xsd:integer</ td >
6684
+ </ tr >
6685
+ < tr >
6686
+ < td > http://example.com/posts/1/de</ td >
6687
+ < td > dc:language</ td >
6688
+ < td > de</ td >
6689
+ < td > </ td >
6690
+ </ tr >
6691
+ < tr >
6692
+ < td > http://example.com/posts/1/en</ td >
6693
+ < td > schema:articleBody</ td >
6694
+ < td > World commodities were up today with heavy trading of crude oil...</ td >
6695
+ < td > </ td >
6696
+ </ tr >
6697
+ < tr >
6698
+ < td > http://example.com/posts/1/en</ td >
6699
+ < td > schema:wordCount</ td >
6700
+ < td > 1539</ td >
6701
+ < td > xsd:integer</ td >
6702
+ </ tr >
6703
+ < tr >
6704
+ < td > http://example.com/posts/1/en</ td >
6705
+ < td > dc:language</ td >
6706
+ < td > en</ td >
6707
+ < td > </ td >
6708
+ </ tr >
6709
+ </ tbody >
6710
+ </ table >
6711
+ < pre class ="turtle nohighlight "
6712
+ data-content-type ="text/turtle "
6713
+ data-ignore
6714
+ data-result-for ="Property-based data indexing-expanded "
6715
+ data-transform ="updateExample "
6716
+ data-to-rdf >
6717
+ <!--
6718
+ @prefix schema: <http://schema.org/> .
6719
+ @prefix dc: <http://purl.org/dc/elements/1.1/language> .
6720
+ @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
6721
+
6722
+ <http://example.com/> a schema:Blog;
6723
+ schema:blogPost <http://example.com/posts/1/de>,
6724
+ <http://example.com/posts/1/en>;
6725
+ schema:name "World Financial News" .
6726
+
6727
+ <http://example.com/posts/1/de>
6728
+ schema:articleBody
6729
+ "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...";
6730
+ schema:wordCount 1204;
6731
+ ****dc:language "de"****.
6732
+
6733
+ <http://example.com/posts/1/en>
6734
+ schema:articleBody
6735
+ "World commodities were up today with heavy trading of crude oil...";
6736
+ schema:wordCount 1539;
6737
+ ****dc:language "en"****.
6738
+ -->
6739
+ </ pre >
6740
+ </ aside >
6741
+ </ section >
6742
+
6554
6743
</ section >
6555
6744
< section class ="informative "> < h2 > Language Indexing</ h2 >
6556
6745
0 commit comments