diff --git a/index.html b/index.html index abb2c5c..41e10b8 100644 --- a/index.html +++ b/index.html @@ -304,19 +304,19 @@
- Please refer to the errata for this document, - which may include some normative corrections. + Por favor consulte a errata deste documento + que pode incluir algumas correções normativas.
- This document is also available in this non-normative format: - diff to previous version + Este documento também está disponível neste formato não-normativa: + diferenças quanto a versão anterior
- The English version of this specification is the only normative version. Non-normative - translations may also - be available. + A versão em inglês desta especificação é a versão única normativa. + Traduções não-normativas podem + estar disponíveis.
@@ -360,10 +360,12 @@
{
- "@context":
+ "@context":
{
- "name": "http://schema.org/name", ← This means that 'name' is shorthand for 'http://schema.org/name'
+ "name": "http://schema.org/name", ← This means that 'name' is shorthand for 'http://schema.org/name'
"image": {
- "@id": "http://schema.org/image", ← This means that 'image' is shorthand for 'http://schema.org/image'
- "@type": "@id" ← This means that a string value associated with 'image' should be interpreted as an identifier that is an IRI
+ "@id": "http://schema.org/image", ← This means that 'image' is shorthand for 'http://schema.org/image'
+ "@type": "@id" ← This means that a string value associated with 'image' should be interpreted as an identifier that is an IRI
},
"homepage": {
- "@id": "http://schema.org/url", ← This means that 'homepage' is shorthand for 'http://schema.org/url'
- "@type": "@id" ← This means that a string value associated with 'homepage' should be interpreted as an identifier that is an IRI
+ "@id": "http://schema.org/url", ← This means that 'homepage' is shorthand for 'http://schema.org/url'
+ "@type": "@id" ← This means that a string value associated with 'homepage' should be interpreted as an identifier that is an IRI
}
- } }
-
+ }
+}
As the context above shows, the value of a term definition can either be a simple string, mapping the 5.2 IR
JSON keys that do not expand to an 6.1
This document uses an empty Setting The modified key's value above is automatically type coerced to a
@@ -1757,16 +1776,28 @@ In this case the The example above would associate the The example above would associate 忍者 with the specified default language
@@ -2091,13 +2132,21 @@ The example above expresses exactly the same information as the previous example
@@ -2113,11 +2162,17 @@ This makes it possible to specify a plain string by omitting the
@@ -2245,12 +2300,24 @@ In order for the absolute IRI to match above, the absolute IRI needs to be used in the { "
- @context": { "
- name": "http://schema.org/name"
- }, "
- name": "Manu Sporny", "status": "trollin'"
- }
-
+ {
+ "@context":
+ {
+ "name": "http://schema.org/name"
+ },
+ "name": "Manu Sporny",
+ "status": "trollin'"
+}
{ "@context": { "label": "http://www.w3.org/2000/01/rdf-schema#label" },
- "@id": "", "label": "Just a simple document"
- }
-
+ {
+ "@context": {
+ "label": "http://www.w3.org/2000/01/rdf-schema#label"
+ },
+ "@id": "",
+ "label": "Just a simple document"
+}
@id
, which resolves to the document
@@ -1350,9 +1356,13 @@ 6.1
{ "@context": {
- "@base": "http://example.com/document.jsonld" }, "@id": "", "label": "Just a simple document" }
-
+ {
+ "@context": {
+ "@base": "http://example.com/document.jsonld"
+ },
+ "@id": "",
+ "label": "Just a simple document"
+}
@base
to null will prevent
@@ -1397,11 +1407,17 @@
{ "@context": { "@vocab": "http://schema.org/",
- "databaseId": null }, "@id": "http://example.org/places#BrewEats",
- "@type": "Restaurant", "name": "Brew Eats",
- "databaseId": "23987520" }
-
+ {
+ "@context":
+ {
+ "@vocab": "http://schema.org/",
+ "databaseId": null
+ },
+ "@id": "http://example.org/places#BrewEats",
+ "@type": "Restaurant",
+ "name": "Brew Eats",
+ "databaseId": "23987520"
+}
@@ -1504,16 +1520,19 @@ 6.4 <
{
- "@context":
+ "@context":
{
"modified":
{
"@id": "http://purl.org/dc/terms/modified",
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
}
- }, ... "@id": "http://example.com/docs/1", "modified": "2010-05-29T14:17:39+02:00",
- ... }
-
+ },
+...
+ "@id": "http://example.com/docs/1",
+ "modified": "2010-05-29T14:17:39+02:00",
+...
+}
6.5
{ "@context": { "foaf": "http://xmlns.com/foaf/0.1/", "
- foaf:age": {
- "@id": "http://xmlns.com/foaf/0.1/age",
- "@type": "xsd:integer" }, "
- http://xmlns.com/foaf/0.1/homepage": { "@type":
- "@id" } }, "foaf:name": "John Smith", "
- foaf:age": "41", "
- http://xmlns.com/foaf/0.1/homepage": [ "http://personal.example.org/",
- "http://work.example.com/jsmith/" ] }
-
+ {
+ "@context":
+ {
+ "foaf": "http://xmlns.com/foaf/0.1/",
+ "foaf:age":
+ {
+ "@id": "http://xmlns.com/foaf/0.1/age",
+ "@type": "xsd:integer"
+ },
+ "http://xmlns.com/foaf/0.1/homepage":
+ {
+ "@type": "@id"
+ }
+ },
+ "foaf:name": "John Smith",
+ "foaf:age": "41",
+ "http://xmlns.com/foaf/0.1/homepage":
+ [
+ "http://personal.example.org/",
+ "http://work.example.com/jsmith/"
+ ]
+}
@id
definition in the term definition is optional.
@@ -1910,14 +1941,16 @@
{
- "@context": [
+ "@context": [
"http://json-ld.org/contexts/person.jsonld",
{
"pic": "http://xmlns.com/foaf/0.1/depiction"
}
- ], "name": "Manu Sporny", "homepage": "http://manu.sporny.org/",
- "pic": "http://twitter.com/account/profile_image/manusporny" }
-
+ ],
+ "name": "Manu Sporny",
+ "homepage": "http://manu.sporny.org/",
+ "pic": "http://twitter.com/account/profile_image/manusporny"
+}
{
- "@context":
+ "@context":
{
...
"@language": "ja"
- }, "name": "花澄", "occupation":
- "科学者" }
-
+ },
+ "name": "花澄",
+ "occupation": "科学者"
+}
ja
language code with the
@@ -2057,15 +2091,22 @@
{ "@context": { ... "ex": "http://example.com/vocab/", "@language": "ja",
- "name": { "@id": "ex:name", "@language": null }, "occupation": { "@id": "ex:occupation" }, "occupation_en": { "@id":
- "ex:occupation", "@language": "en" }, "occupation_cs":
- { "@id": "ex:occupation", "@language": "cs" } },
- "name": "Yagyū Muneyoshi",
+
{
+ "@context": {
+ ...
+ "ex": "http://example.com/vocab/",
+ "@language": "ja",
+ "name": { "@id": "ex:name", "@language": null },
+ "occupation": { "@id": "ex:occupation" },
+ "occupation_en": { "@id": "ex:occupation", "@language": "en" },
+ "occupation_cs": { "@id": "ex:occupation", "@language": "cs" }
+ },
+ "name": "Yagyū Muneyoshi",
"occupation": "忍者",
"occupation_en": "Ninja",
- "occupation_cs": "Nindža", ... }
-
+ "occupation_cs": "Nindža",
+ ...
+}
{ "@context": { ... "occupation": { "@id": "ex:occupation", "@container": "@language" } }, "name": "Yagyū Muneyoshi", "occupation":
- {
+
{
+ "@context":
+ {
+ ...
+ "occupation": { "@id": "ex:occupation", "@container": "@language" }
+ },
+ "name": "Yagyū Muneyoshi",
+ "occupation":
+ {
"ja": "忍者",
"en": "Ninja",
"cs": "Nindža"
- } ... }
-
+ }
+ ...
+}
{ "@context": { ... "@language": "ja" }, "name": "花澄", "occupation":
- { "@value": "Scientist", "@language": "en" }
-
- }
+ {
+ "@context": {
+ ...
+ "@language": "ja"
+ },
+ "name": "花澄",
+ "occupation": {
+ "@value": "Scientist",
+ "@language": "en"
+ }
+}
{ "@context": { "foaf": "http://xmlns.com/foaf/0.1/", "xsd": "http://www.w3.org/2001/XMLSchema#",
- "name": "foaf:name", "foaf:age": { "@id": "foaf:age", "@type": "xsd:integer"
- }, "
- http://xmlns.com/foaf/0.1/homepage": { "@type":
- "@id" } }, ... }
-
+ {
+ "@context":
+ {
+ "foaf": "http://xmlns.com/foaf/0.1/",
+ "xsd": "http://www.w3.org/2001/XMLSchema#",
+ "name": "foaf:name",
+ "foaf:age":
+ {
+ "@id": "foaf:age",
+ "@type": "xsd:integer"
+ },
+ "http://xmlns.com/foaf/0.1/homepage":
+ {
+ "@type": "@id"
+ }
+ },
+ ...
+}