lbb_inspect
Read exact graph facts, ontology and schema metadata, publication status, and complete entity records from a Little Big Brain knowledge graph, with paging and commit-pinned history.
Instructions
Read graph context and exact graph facts. Actions: guide, graphs, publication, ontology, ontology_conformance, schema, ontology_search, metadata, entity, ontology_suggestions. graphs works before bootstrap; ontology_suggestions lists the ontology change suggestions that wait for review (or were decided); fact_count is how many graph facts (triplets and entity property rows) accepting one commits, and identity_count how many identities it links. publication reports whether writes are queryable. ontology and schema return complete entries with page_size, section and cursor; follow next until absent. schema reads active native ontology/SHACL metadata without running validation. Query asserted RDF/OWL axioms separately with lbb_query. ontology_conformance serves the durable report referenced by the pinned published root. entity with iri, or version=records/1 and entity_id or entity_type+key, returns a complete exact-term record, separate assertions and snapshot from RDF. as_of_commit_seq pins retained history; schema-bound historical selection is currently unsupported. Oversized records fail rather than truncate. Omitting the new selectors preserves the native attributes/relationships view. Use lbb_query with SPARQL property paths for precise path selection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iri | No | Authoritative full RDF IRI; selects the lossless records/1 read. | |
| key | No | Stable key with entity_type, resolved from the activated schema at the read snapshot. | |
| name | No | ||
| as_of | No | Unsupported for entity; use as_of_commit_seq for a retained commit snapshot. | |
| graph | No | Graph to target; defaults to the connection's graph | |
| limit | No | ||
| query | No | Ontology concept, term, or relation to search | |
| top_k | No | ||
| action | Yes | Selects the variant (one of: guide, ontology, ontology_conformance, schema, graphs, publication, ontology_search, metadata, ontology_suggestions, entity). | |
| cursor | No | Opaque lbb_inspect continuation. Repeat action and pass the returned next arguments; rejects changed metadata. | |
| detail | No | Response detail level. Defaults to compact. | |
| limits | No | Lossless records/1 section bounds. Exceeding a bound refuses the read instead of truncating it. | |
| status | No | Only suggestions in this state; default all | |
| section | No | Optional top-level array to inspect, e.g. entity_type_defs, relation_defs, property_defs, classes, or relations. Omit to page through all sections. | |
| version | No | ||
| entity_id | No | Entity id (hex); alternative to entity_type+name | |
| page_size | No | Maximum complete metadata entries per page; defaults to 50. Nested fields are never truncated; an oversized single entry returns serialized_json fragments to concatenate and parse. | |
| consistency | No | ||
| entity_type | No | ||
| schema_revision | No | Expected opaque schema revision for a records/1 read. | |
| as_of_commit_seq | No | Snapshot pin: reproduce the node's attributes and relationships as of this commit_seq. |