summaryrefslogtreecommitdiff
path: root/test/jsonld/1.1/compact/0030-out.jsonld
blob: 76b5f4d07421bdaa48808f782483820beb160256 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
  "@context": {
    "property": "http://example.com/property",
    "indexContainer": { "@id": "http://example.com/container", "@container": "@index" }
  },
  "@id": "http://example.org/indexTest",
  "indexContainer": {
    "A": [
      {
        "@id": "http://example.org/nodeWithoutIndexA"
      },
      1,
      true,
      false,
      "simple string A",
      {
        "@value": "typed literal A",
        "@type": "http://example.org/type"
      },
      {
        "@value": "language-tagged string A",
        "@language": "en"
      }
    ],
    "this overrides the 'A' index from the container": {
      "@id": "http://example.org/nodeWithIndexA"
    },
    "B": "simple string B",
    "C": [
      {
        "@id": "http://example.org/nodeWithoutIndexC"
      },
      3,
      true,
      false,
      "simple string C",
      {
        "@value": "typed literal C",
        "@type": "http://example.org/type"
      },
      {
        "@value": "language-tagged string C",
        "@language": "en"
      }
    ],
    "this overrides the 'C' index from the container": {
      "@id": "http://example.org/nodeWithIndexC"
    }
  },
  "property": [
    {
      "@id": "http://example.org/nodeWithoutIndexProp"
    },
    {
      "@id": "http://example.org/nodeWithIndexProp",
      "@index": "prop"
    },
    {
      "@value": 3,
      "@index": "prop"
    },
    {
      "@value": true,
      "@index": "prop"
    },
    {
      "@value": false,
      "@index": "prop"
    },
    "simple string no index",
    {
      "@value": "typed literal Prop",
      "@type": "http://example.org/type",
      "@index": "prop"
    },
    {
      "@value": "language-tagged string Prop",
      "@language": "en",
      "@index": "prop"
    },
    {
      "@value": "index using an array with just one element (automatic recovery)",
      "@index": "prop"
    }
  ]
}