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