{"id":50454153,"url":"https://github.com/mizcausevic-dev/analytics-semantic-layer-publisher","last_synced_at":"2026-06-01T01:05:42.329Z","repository":{"id":357459095,"uuid":"1236816166","full_name":"mizcausevic-dev/analytics-semantic-layer-publisher","owner":"mizcausevic-dev","description":"Python publisher for dbt-style semantic layers, JSON-LD metric contracts, and AI-queryable analytics definitions.","archived":false,"fork":false,"pushed_at":"2026-05-12T21:32:45.000Z","size":735,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-12T22:29:58.265Z","etag":null,"topics":["aeo","analytics-engineering","answer-engine-optimization","data-catalog","dbt","fastapi","generative-engine-optimization","json-ld","metrics","python","schema-org","semantic-layer"],"latest_commit_sha":null,"homepage":"https://kineticgain.com/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mizcausevic-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-12T15:45:46.000Z","updated_at":"2026-05-12T21:32:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mizcausevic-dev/analytics-semantic-layer-publisher","commit_stats":null,"previous_names":["mizcausevic-dev/analytics-semantic-layer-publisher"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mizcausevic-dev/analytics-semantic-layer-publisher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Fanalytics-semantic-layer-publisher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Fanalytics-semantic-layer-publisher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Fanalytics-semantic-layer-publisher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Fanalytics-semantic-layer-publisher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mizcausevic-dev","download_url":"https://codeload.github.com/mizcausevic-dev/analytics-semantic-layer-publisher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Fanalytics-semantic-layer-publisher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33755379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aeo","analytics-engineering","answer-engine-optimization","data-catalog","dbt","fastapi","generative-engine-optimization","json-ld","metrics","python","schema-org","semantic-layer"],"created_at":"2026-06-01T01:05:42.256Z","updated_at":"2026-06-01T01:05:42.317Z","avatar_url":"https://github.com/mizcausevic-dev.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Analytics Semantic Layer Publisher\r\n\r\nPublish a dbt-style semantic layer as structured JSON-LD so AI systems can\r\nquery metric definitions by name instead of hallucinating KPI meaning from\r\ndashboard screenshots and half-remembered wiki pages.\r\n\r\n## Why This Repo Is Good\r\n\r\n- It makes the semantic layer visible outside BI tooling.\r\n- It turns metrics into AI-readable contracts with ownership, formulas, and dependencies.\r\n- It fits the AEO / GEO direction because it publishes structured, citation-friendly metric definitions.\r\n- It gives data teams a proof surface that is both human-readable and machine-readable.\r\n\r\n## What It Ships\r\n\r\n- FastAPI service for metric, catalog, and JSON-LD routes\r\n- sample dbt-style semantic layer YAML\r\n- Schema.org `DataCatalog` and `DefinedTerm` exports\r\n- HTML proof surfaces for humans\r\n- real PNG screenshots generated from repo-owned HTML scenes\r\n- tests, CI, and one-command local validation\r\n\r\n## Screenshots\r\n\r\n### Overview\r\n\r\n![Overview](./screenshots/01-overview.png)\r\n\r\n### Catalog Lane\r\n\r\n![Catalog Lane](./screenshots/02-catalog-lane.png)\r\n\r\n### JSON-LD Proof\r\n\r\n![JSON-LD Proof](./screenshots/03-jsonld-proof.png)\r\n\r\n### API Summary\r\n\r\n![API Summary](./screenshots/04-api-summary.png)\r\n\r\n## Local Run\r\n\r\n```powershell\r\ncd analytics-semantic-layer-publisher\r\npy -3.11 -m venv .venv\r\n.\\.venv\\Scripts\\python.exe -m pip install -r requirements.txt\r\n.\\.venv\\Scripts\\python.exe -m app.main\r\n```\r\n\r\nOpen:\r\n\r\n- [http://127.0.0.1:4604/](http://127.0.0.1:4604/)\r\n- [http://127.0.0.1:4604/catalog](http://127.0.0.1:4604/catalog)\r\n- [http://127.0.0.1:4604/evidence](http://127.0.0.1:4604/evidence)\r\n- [http://127.0.0.1:4604/docs](http://127.0.0.1:4604/docs)\r\n\r\nIf that port is occupied:\r\n\r\n```powershell\r\n$env:PORT = \"4608\"\r\n.\\.venv\\Scripts\\python.exe -m app.main\r\n```\r\n\r\n## Validation\r\n\r\n```powershell\r\ncd analytics-semantic-layer-publisher\r\n.\\.venv\\Scripts\\python.exe -m unittest discover -s tests\r\n.\\.venv\\Scripts\\python.exe scripts\\run_demo.py\r\n.\\.venv\\Scripts\\python.exe scripts\\smoke_check.py\r\n.\\.venv\\Scripts\\python.exe scripts\\render_readme_assets.py\r\n```\r\n\r\n## Example Metric Definition\r\n\r\n```json\r\n{\r\n  \"name\": \"customer_acquisition_cost\",\r\n  \"label\": \"Customer Acquisition Cost\",\r\n  \"type\": \"ratio\",\r\n  \"formula\": \"spend / acquired_accounts\",\r\n  \"owner\": \"Revenue Strategy\"\r\n}\r\n```\r\n\r\n## Example JSON-LD Export\r\n\r\n```json\r\n{\r\n  \"@context\": \"https://schema.org\",\r\n  \"@type\": \"DefinedTerm\",\r\n  \"name\": \"Customer Acquisition Cost\",\r\n  \"termCode\": \"customer_acquisition_cost\"\r\n}\r\n```\r\n\r\n## Repo Layout\r\n\r\n- `app/main.py`\r\n- `app/services/semantic_service.py`\r\n- `app/data/sample_semantic_layer.yml`\r\n- `docs/architecture.md`\r\n- `scripts/render_readme_assets.py`\r\n\r\n## Why This Matters for AI Search\r\n\r\nMost metric definitions live in dashboards, dbt YAML, or tribal knowledge. This\r\npublisher gives AI systems a first-class structured definition layer so they can:\r\n\r\n- cite the right metric name\r\n- preserve formula meaning\r\n- understand owners and dependencies\r\n- answer \"what does CAC mean here?\" with the right contract\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizcausevic-dev%2Fanalytics-semantic-layer-publisher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmizcausevic-dev%2Fanalytics-semantic-layer-publisher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizcausevic-dev%2Fanalytics-semantic-layer-publisher/lists"}