feat: package skeleton — DESCRIPTION, NAMESPACE, session/manifest/cache/views
Minimal skeleton for uscogdata v0.1. Internal session layer with lazy cog_open(), manifest fetch+validate+cache, view registration placeholder. Depends on DuckDB >=1.0, httr2, jsonlite. inst/schemas/provenance-v1.json ships the structured provenance JSON Schema.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://civilytics.org/schemas/uscogdata/provenance-v1.json",
|
||||
"title": "uscogdata provenance v1",
|
||||
"type": "object",
|
||||
"required": ["verb", "target", "years", "scope", "manifest", "sql_query"],
|
||||
"properties": {
|
||||
"verb": { "type": "string" },
|
||||
"call": { "type": "string" },
|
||||
"target": { "type": "object" },
|
||||
"years": { "type": "array", "items": { "type": "integer" } },
|
||||
"category": { "type": ["string", "array", "null"] },
|
||||
"scope": { "type": "object" },
|
||||
"codes_summed": { "type": "object" },
|
||||
"aggregate_fallback": { "type": ["object", "null"] },
|
||||
"transformations":{ "type": "object" },
|
||||
"series_break_refs": { "type": "array", "items": { "type": "string" } },
|
||||
"manifest": { "type": "object" },
|
||||
"sql_query": { "type": "string" }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user