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:
2026-04-23 09:05:54 -04:00
commit f7035049e7
20 changed files with 305 additions and 0 deletions
+21
View File
@@ -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" }
}
}