From 84d746a0abe2e0e0f76ed397bef422087b622104 Mon Sep 17 00:00:00 2001 From: christopherstoppa <334326194+christopher-stoppa@users.noreply.github.com> Date: Wed, 30 Sep 2026 13:30:04 -0300 Subject: [PATCH] =?UTF-8?q?Corrige=20classifica=C3=A7=C3=A3o=20de=20fontes?= =?UTF-8?q?=20municipais=20de=20S=C3=A3o=20Paulo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/index.json | 36 ++++++++++++++++++------------------ data/overrides.json | 18 ++++++++++++++++++ data/sources.json | 24 ++++++++++++------------ 3 files changed, 48 insertions(+), 30 deletions(-) diff --git a/data/index.json b/data/index.json index dce2da7..736d45f 100644 --- a/data/index.json +++ b/data/index.json @@ -5522,7 +5522,7 @@ "output": [ "imovel" ], - "tipo_fonte": "estadual", + "tipo_fonte": "municipal", "uf": "SP", "url": "https://www.prefeitura.sp.gov.br/cidade/secretarias/fazenda/servicos/iptu/" }, @@ -15469,7 +15469,7 @@ "output": [ "dataset" ], - "tipo_fonte": "estadual", + "tipo_fonte": "municipal", "uf": "SP", "url": "http://dados.prefeitura.sp.gov.br/dataset" }, @@ -17456,7 +17456,7 @@ "output": [ "mapa" ], - "tipo_fonte": "privado", + "tipo_fonte": "municipal", "uf": null, "url": "https://olhovivo.sptrans.com.br" }, @@ -18078,7 +18078,7 @@ "output": [ "video_ao_vivo" ], - "tipo_fonte": "estadual", + "tipo_fonte": "municipal", "uf": "SP", "url": "https://www.citycameras.prefeitura.sp.gov.br/home" }, @@ -23097,7 +23097,7 @@ "licitacao", "processo" ], - "tipo_fonte": "privado", + "tipo_fonte": "municipal", "uf": null, "url": "https://sptrans.com.br/licitacoes/" }, @@ -23117,7 +23117,7 @@ "licitacao", "processo" ], - "tipo_fonte": "privado", + "tipo_fonte": "municipal", "uf": null, "url": "https://sistemas.sptrans.com.br/licitlovnew/hilicwebfrt2rc_Ano.aspx" }, @@ -23137,7 +23137,7 @@ "licitacao", "processo" ], - "tipo_fonte": "privado", + "tipo_fonte": "municipal", "uf": null, "url": "https://sistemas.sptrans.com.br/licitlovnew/hilicwebfrtarp.aspx" }, @@ -23157,7 +23157,7 @@ "licitacao", "processo" ], - "tipo_fonte": "privado", + "tipo_fonte": "municipal", "uf": null, "url": "https://sistemas.sptrans.com.br/licitlovnew/hilicwebfrtap.aspx" }, @@ -23177,7 +23177,7 @@ "licitacao", "processo" ], - "tipo_fonte": "privado", + "tipo_fonte": "municipal", "uf": null, "url": "https://sistemas.sptrans.com.br/licitlovnew/hilicwebfrt2ca.aspx" }, @@ -23197,7 +23197,7 @@ "licitacao", "processo" ], - "tipo_fonte": "privado", + "tipo_fonte": "municipal", "uf": null, "url": "https://sistemas.sptrans.com.br/licitlovnew/hilicwebfrtcp_tc.aspx" }, @@ -23217,7 +23217,7 @@ "licitacao", "processo" ], - "tipo_fonte": "privado", + "tipo_fonte": "municipal", "uf": null, "url": "https://sistemas.sptrans.com.br/licitlovnew/hilicwebfrtcp.aspx" }, @@ -23237,7 +23237,7 @@ "licitacao", "processo" ], - "tipo_fonte": "privado", + "tipo_fonte": "municipal", "uf": null, "url": "https://sistemas.sptrans.com.br/licitlovnew/hilicwebfrt2cr.aspx" }, @@ -23257,7 +23257,7 @@ "licitacao", "processo" ], - "tipo_fonte": "privado", + "tipo_fonte": "municipal", "uf": null, "url": "https://sistemas.sptrans.com.br/licitlovnew/hilicwebfrted.aspx" }, @@ -23277,7 +23277,7 @@ "licitacao", "processo" ], - "tipo_fonte": "privado", + "tipo_fonte": "municipal", "uf": null, "url": "https://sistemas.sptrans.com.br/licitlovnew/hilicwebfrt2ec.aspx" }, @@ -23297,7 +23297,7 @@ "licitacao", "processo" ], - "tipo_fonte": "privado", + "tipo_fonte": "municipal", "uf": null, "url": "https://sistemas.sptrans.com.br/licitlovnew/hilicwebfrt2apn.aspx" }, @@ -23317,7 +23317,7 @@ "licitacao", "processo" ], - "tipo_fonte": "privado", + "tipo_fonte": "municipal", "uf": "SP", "url": "https://www.prefeitura.sp.gov.br/cidade/secretarias/mobilidade/edital/index.php?p=247319" }, @@ -23337,7 +23337,7 @@ "licitacao", "processo" ], - "tipo_fonte": "privado", + "tipo_fonte": "municipal", "uf": null, "url": "https://sistemas.sptrans.com.br/DemPag/hdempag.aspx" }, @@ -23355,7 +23355,7 @@ "contrato_publico", "licitacao" ], - "tipo_fonte": "estadual", + "tipo_fonte": "municipal", "uf": "SP", "url": "https://www.prefeitura.sp.gov.br/cidade/secretarias/mobilidade/institucional/sptrans/acesso_a_informacao/index.php" }, diff --git a/data/overrides.json b/data/overrides.json index bbc09ef..29eaafb 100644 --- a/data/overrides.json +++ b/data/overrides.json @@ -1,6 +1,24 @@ { "_sobre": "Curadoria manual do dataset. Cada chave em 'overrides' é um id de fonte de sources.json; os campos declarados aqui sobrepõem o que a heurística inferiu, e a fonte passa a ter classificacao='override'. Este arquivo NUNCA é sobrescrito pelo parser. Rode 'python3 tools/build_dataset.py --report' para listar as fontes ainda marcadas como 'indefinido'. Campos aceitos: input, output, tipo_fonte, descricao, observacao.", "overrides": { + "registros-de-imoveis-e-propriedades/consulta-iptu-sao-paulo": { + "tipo_fonte": "municipal" + }, + "datasets-dados-abertos/dados-prefeitura-de-sao-paulo": { + "tipo_fonte": "municipal" + }, + "tracking-de-viagens-de-onibus/sptrans-olho-vivo": { + "tipo_fonte": "municipal" + }, + "cameras-online/projeto-city-cameras": { + "tipo_fonte": "municipal" + }, + "outras-buscas/consulta-os-processos-licitatorios-da-sptrans": { + "tipo_fonte": "municipal" + }, + "outras-buscas/acesso-a-informacao-sptrans": { + "tipo_fonte": "municipal" + }, "apis-publicas-brasileiras/receitaws-api-cnpj": { "input": ["cnpj"], "output": ["api_json", "dados_cadastrais", "situacao_cadastral", "socios", "cnae", "endereco"], diff --git a/data/sources.json b/data/sources.json index 674768b..6646f94 100644 --- a/data/sources.json +++ b/data/sources.json @@ -3889,7 +3889,7 @@ { "categoria": "Registros de Imóveis e Propriedades", "categoria_id": "registros-de-imoveis-e-propriedades", - "classificacao": "heuristica", + "classificacao": "override", "descricao": "Consulta de IPTU da cidade de São Paulo.", "id": "registros-de-imoveis-e-propriedades/consulta-iptu-sao-paulo", "input": [ @@ -3907,7 +3907,7 @@ "output": [ "imovel" ], - "tipo_fonte": "estadual" + "tipo_fonte": "municipal" }, { "categoria": "Registros de Imóveis e Propriedades", @@ -10884,7 +10884,7 @@ { "categoria": "Datasets / Dados Abertos", "categoria_id": "datasets-dados-abertos", - "classificacao": "heuristica", + "classificacao": "override", "descricao": "O Portal de Dados Abertos da Prefeitura de São Paulo tem sua origem no Catálogo Municipal de Bases de Dados (CMBD). Organizado pela Coordenadoria de Promoção da Integridade (COPI) da Controladoria Geral do Município (CGM-SP) em conjunto com os órgãos e entidades da Prefeitura, o Catálogo apresenta aos munícipes uma relação com todos os dados disponíveis produzidos pela Prefeitura.", "id": "datasets-dados-abertos/dados-prefeitura-de-sao-paulo", "input": [ @@ -10901,7 +10901,7 @@ "output": [ "dataset" ], - "tipo_fonte": "estadual" + "tipo_fonte": "municipal" }, { "categoria": "Datasets / Dados Abertos", @@ -12239,7 +12239,7 @@ { "categoria": "Tracking de Viagens de Ônibus", "categoria_id": "tracking-de-viagens-de-onibus", - "classificacao": "heuristica", + "classificacao": "override", "descricao": "Localização dos ônibus, ao longo do trajeto, em quanto tempo e quais linhas de ônibus se aproximam, corredores, velocidade média e tempo de percurso.", "id": "tracking-de-viagens-de-onibus/sptrans-olho-vivo", "input": [ @@ -12256,7 +12256,7 @@ "output": [ "mapa" ], - "tipo_fonte": "privado" + "tipo_fonte": "municipal" }, { "categoria": "Tracking de Viagens de Ônibus", @@ -12769,7 +12769,7 @@ { "categoria": "Câmeras Online", "categoria_id": "cameras-online", - "classificacao": "heuristica", + "classificacao": "override", "descricao": "O Projeto City Câmeras é um programa público, de iniciativa exclusiva da Prefeitura Municipal de São Paulo, que visa constituir uma ampla rede de videomonitoramento por meio de câmeras públicas e privadas instaladas pela cidade.", "id": "cameras-online/projeto-city-cameras", "input": [ @@ -12786,7 +12786,7 @@ "output": [ "video_ao_vivo" ], - "tipo_fonte": "estadual" + "tipo_fonte": "municipal" }, { "categoria": "Câmeras Online", @@ -15686,7 +15686,7 @@ { "categoria": "Outras Buscas", "categoria_id": "outras-buscas", - "classificacao": "heuristica", + "classificacao": "override", "descricao": "Acompanhe os processos licitatórios instaurados pela São Paulo Transporte S/A Acompanhe os processos licitatórios instaurados pela São Paulo Transporte S/A. Sistema permite consultar editais, resultados, atas e processos administrativos relacionados a licitações e contratos.", "id": "outras-buscas/consulta-os-processos-licitatorios-da-sptrans", "input": [ @@ -15766,12 +15766,12 @@ "licitacao", "processo" ], - "tipo_fonte": "privado" + "tipo_fonte": "municipal" }, { "categoria": "Outras Buscas", "categoria_id": "outras-buscas", - "classificacao": "heuristica", + "classificacao": "override", "descricao": "Portal de acesso à informação da São Paulo Transporte S/A com dados sobre contratos, despesas, licitações e transparência.", "id": "outras-buscas/acesso-a-informacao-sptrans", "input": [ @@ -15789,7 +15789,7 @@ "contrato_publico", "licitacao" ], - "tipo_fonte": "estadual" + "tipo_fonte": "municipal" }, { "categoria": "Outras Buscas",