Comment on page
Universal Stub Thing
This document explains how Stubs are structured for lists of objects in grcschema.
- A Stub is a Thing (object) representing another Thing (object) in a list.
- In order to know the type of Thing the Stub represents, the
thing_type
property is provided. - The properties
property_name
andproperty_value
are provided from the associated Thing record for identification of the record. - Distinct url parameters for each Stub list may be provided to enable list filtering via query string. The documentation for each list endpoint will provide the list of acceptable query string parameters.
{
"@context": "http://grcschema.org/",
"@type": "Stub",
"id": "Integer",
"property_name": "String",
"property_value": "String",
"thing_type": "String"
}
Whereproperty_name
is the property IN the target object,property_value
is the value of that property, andthing_type
is the type of object the stub represents.
{
"@context": "http://grcschema.org/",
"@type": "Stub",
"id": 38,
"property_name": "full_name",
"property_value": "Dorian Cougias",
"thing_type": "Person"
}
The Stub represents a Person Thing (object) using thePerson.full_name
property.