diff --git a/index.html b/index.html index f34d10b3..93c400c3 100644 --- a/index.html +++ b/index.html @@ -6795,26 +6795,27 @@

Using the Document Base for the Default Vocabulary

"schema": "http://schema.org/", "name": "schema:name", "body": "schema:articleBody", - "words": "schema:wordCount", - "post": { - "@id": "schema:blogPost", + "athletes": { + "@id": "schema:athlete", ****"@container": "@index"**** - } + }, + "position": "schema:jobTitle" }, "@id": "http://example.com/", - "@type": "schema:Blog", - "name": "World Financial News", - ****"post": { - "en": { - "@id": "http://example.com/posts/1/en", - "body": "World commodities were up today with heavy trading of crude oil...", - "words": 1539 + "@type": "schema:SportsTeam", + "name": "San Franciso Giants", + ****"athletes": { + "catcher": { + "@type": "schema:Person", + "name": "Buster Posey", + "position": "Catcher" }, - "de": { - "@id": "http://example.com/posts/1/de", - "body": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...", - "words": 1204 - }**** + "pitcher": { + "@type": "schema:Person", + "name": "Madison Bumgarner", + "position": "Starting Pitcher" + }****####, + ....#### } } --> @@ -6825,25 +6826,21 @@

Using the Document Base for the Default Vocabulary

@@ -6857,54 +6854,16 @@

Using the Document Base for the Default Vocabulary

Value Type - - http://example.com/ - rdf:type - schema:Blog - - - - http://example.com/ - schema:name - World Financial News - - - - http://example.com/ - schema:blogPost - http://example.com/posts/1/de - - - - http://example.com/ - schema:blogPost - http://example.com/posts/1/en - - - - http://example.com/posts/1/de - schema:articleBody - Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl... - - - - http://example.com/posts/1/de - schema:wordCount - 1204 - xsd:integer - - - http://example.com/posts/1/en - schema:articleBody - World commodities were up today with heavy trading of crude oil... - - - - http://example.com/posts/1/en - schema:wordCount - 1539 - xsd:integer - + http://example.com/rdf:typeschema:SportsTeam + http://example.com/schema:nameSan Franciso Giants + _:b0rdf:typeschema:Person + _:b0schema:nameBuster Posey + _:b0schema:jobTitleCatcher + http://example.com/schema:athlete_:b0 + _:b1rdf:typeschema:Person + _:b1schema:nameMadison Bumgarner + _:b1schema:jobTitleStarting Pitcher + http://example.com/schema:athlete_:b1
Using the Document Base for the Default Vocabulary
          data-to-rdf>
     
     
-

In the example above, the post term has - been marked as an index map. The en and - de keys will be ignored semantically, but preserved - syntactically, by the JSON-LD Processor. If used in JavaScript, this can allow a developer to - access the German version of the post using the - following code snippet: obj.post.de.

+

In the example above, the athletes term has + been marked as an index map. + The catcher and pitcher keys will be ignored semantically, + but preserved syntactically, by the JSON-LD Processor. + If used in JavaScript, this can allow a developer to access a particular athlete using the + following code snippet: obj.athletes.pitcher.

-

The interpretation of the data is expressed in - the statements table. Note how the index keys do not appear in the statements, +

The interpretation of the data is expressed in the statements table. + Note how the index keys do not appear in the statements, but would continue to exist if the document were compacted or expanded (see and ) using a JSON-LD processor.

+

As data indexes are not preserved when round-tripping to RDF; + this feature should be used judiciously. + Often, other indexing mechanisms, which are preserved, are more appropriate.

+

The value of @container can also be an array containing both @index and @set. When compacting, this ensures that a JSON-LD Processor will use @@ -6971,34 +6932,34 @@

Using the Document Base for the Default Vocabulary

{ "@context": { ****"@version": 1.1,**** - "schema": "http://schema.org/", - "name": "schema:name", - "body": "schema:articleBody", - "words": "schema:wordCount", - "post": { - "@id": "schema:blogPost", - ****"@container": "@index"**** - } + "schema": "http://schema.org/", + "name": "schema:name", + "body": "schema:articleBody", + "athletes": { + "@id": "schema:athlete", + "@container": "@index" + }, + "position": "schema:jobTitle" }, "@id": "http://example.com/", - "@type": "schema:Blog", - "name": "World Financial News", - "post": { - "en": { - "@id": "http://example.com/posts/1/en", - "body": "World commodities were up today with heavy trading of crude oil...", - "words": 1539 + "@type": "schema:SportsTeam", + "name": "San Franciso Giants", + "athletes": { + "catcher": { + "@type": "schema:Person", + "name": "Buster Posey", + "position": "Catcher" }, - "de": { - "@id": "http://example.com/posts/1/de", - "body": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...", - "words": 1204 + "pitcher": { + "@type": "schema:Person", + "name": "Madison Bumgarner", + "position": "Starting Pitcher" }, ****"@none": { - "@id": "http://example.com/posts/1/no-language", - "body": "Unindexed description", - "words": 20 - }**** + "name": "Lou Seal", + "position": "Mascot" + }****####, + ....#### } } --> @@ -7009,34 +6970,23 @@

Using the Document Base for the Default Vocabulary

@@ -7051,72 +7001,19 @@

Using the Document Base for the Default Vocabulary

Value Type - - http://example.com/ - rdf:type - schema:Blog - - - - http://example.com/ - schema:name - World Financial News - - - - http://example.com/ - schema:blogPost - http://example.com/posts/1/de - - - - http://example.com/ - schema:blogPost - http://example.com/posts/1/en - - - - http://example.com/ - schema:blogPost - http://example.com/posts/1/no-language - - - - http://example.com/posts/1/de - schema:articleBody - Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl... - - - - http://example.com/posts/1/de - schema:wordCount - 1204 - xsd:integer - - - http://example.com/posts/1/en - schema:articleBody - World commodities were up today with heavy trading of crude oil... - - - - http://example.com/posts/1/en - schema:wordCount - 1539 - xsd:integer - - - http://example.com/posts/1/no-language - schema:articleBody - Unindexed description - - - - http://example.com/posts/1/no-language - schema:wordCount - 20 - xsd:integer - + http://example.com/rdf:typeschema:SportsTeam + http://example.com/schema:nameSan Franciso Giants + _:b0rdf:typeschema:Person + _:b0schema:nameBuster Posey + _:b0schema:jobTitleCatcher + http://example.com/schema:athlete_:b0 + _:b1rdf:typeschema:Person + _:b1schema:nameMadison Bumgarner + _:b1schema:jobTitleStarting Pitcher + http://example.com/schema:athlete_:b1 + _:b2schema:nameLou Seal + _:b2schema:jobTitleMascot + http://example.com/schema:athlete_:b2
Using the Document Base for the Default Vocabulary
          data-to-rdf>
     
     
@@ -7174,68 +7066,59 @@

Using the Document Base for the Default Vocabulary

-      
+      },
+      "@id": "http://example.com/",
+      "@type": "schema:SportsTeam",
+      "name": "San Franciso Giants",
+      ****"athletes": {
+        "Catcher": {
+          ####↑ "Catcher" will add `"schema:jobTitle": "Catcher"` when expanded####
+          "@type": "schema:Person",
+          "name": "Buster Posey"
+        },
+        "Starting Pitcher": {
+          "@type": "schema:Person",
+          "name": "Madison Bumgarner"
+        }****####,
+        ....####
+      }
+    }
+    -->
     
-      
+    
     
Using the Document Base for the Default Vocabulary - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + +
Value Type
http://example.com/rdf:typeschema:Blog
http://example.com/schema:nameWorld Financial News
http://example.com/schema:blogPosthttp://example.com/posts/1/de
http://example.com/schema:blogPosthttp://example.com/posts/1/en
http://example.com/posts/1/deschema:articleBodyDie Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...
http://example.com/posts/1/deschema:wordCount1204xsd:integer
http://example.com/posts/1/dedc11:languagede
http://example.com/posts/1/enschema:articleBodyWorld commodities were up today with heavy trading of crude oil...
http://example.com/posts/1/enschema:wordCount1539xsd:integer
http://example.com/posts/1/endc11:languageen
http://example.com/rdf:typeschema:SportsTeam
http://example.com/schema:nameSan Franciso Giants
_:b0rdf:typeschema:Person
_:b0schema:nameBuster Posey
_:b0schema:jobTitleCatcher
http://example.com/schema:athlete_:b0
_:b1rdf:typeschema:Person
_:b1schema:nameMadison Bumgarner
_:b1schema:jobTitleStarting Pitcher
http://example.com/schema:athlete_:b1
Using the Document Base for the Default Vocabulary
          data-result-for="Property-based data indexing-expanded"
          data-transform="updateExample"
          data-to-rdf>
-      
+
+     a schema:SportsTeam;
+      schema:name "San Franciso Giants";
+      schema:athlete [
+        a schema:Person;
+        schema:jobTitle "Catcher";
+        schema:name "Buster Posey"
+      ], [
+        a schema:Person;
+        schema:jobTitle "Starting Pitcher";
+        schema:name "Madison Bumgarner"
+      ]####,
+      ....####
+      .
+    -->
     
@@ -7614,7 +7442,10 @@

Using the Document Base for the Default Vocabulary

"words": "schema:wordCount", "post": { "@id": "schema:blogPost", - ****"@container": "@id"**** + ****"@container": "@id", + "@context": { + "@base": "http://content.com/posts/" + }**** } }, "@id": "http://example.com/",