Skip to content

Statistics

GET /v4/statistics returns key figures of the graph, for example for a dashboard. Any authenticated user can call it, and each stage only reflects the spaces the user can read in that stage.

{
  "data": {
    "live": { "instances": 12000, "triples": 340000 },
    "released": { "instances": 9500, "triples": 280000 },
    "types": [
      {
        "identifier": "https://example.org/types/Person",
        "name": "Person",
        "color": "#00897b",
        "liveInstances": 4000,
        "releasedInstances": 3100
      }
    ],
    "validation": [
      {
        "schema": "person-basics",
        "types": 1,
        "instances": 4000,
        "fullyCompliant": 3500,
        "above80Percent": 300,
        "between40And80Percent": 120,
        "below40Percent": 50,
        "notCompliant": 20,
        "notAssessed": 10
      }
    ]
  }
}
Part Meaning
live / released Instance and triple counts of the in-progress and released stages. A triple is one occurrence of a property.
types One row per type, most frequent first. An embedded type counts the instances hosting it.
validation Validation of live instances, aggregated across types by schema name. types is the number of types with a schema of that name.

In the validation rows, fullyCompliant counts valid instances. The percentage buckets are the compliance score of invalid instances, and notAssessed counts instances without a stored result or score. Each instance is counted in exactly one group.