Criação de tabelas wikitext a partir de consultas SPARQL na Base de Dados de Institutos Jurídicos.
/tables
: Diretório para armazenamento das consultas renderizadas em tabela wikitext.
Requer-se as bibliotecas requests
, beautifulsoup4
e tabulate
.
pip install -r requirements.txt
git clone https://github.com/edpomacedo/bdij-listas.git
cd bdij-listas
python -m venv venv
.\venv\Scripts\activate
pip install -r requirements.txt
Insira as credenciais do consumidor OAuth no arquivo config.py
. Em seguida:
- Acesse uma página no espaço nominal
Project:
da Base de Dados de Institutos Jurídicos. - Verifique se existe uma página de discussão do referido projeto, contendo uma consulta SPARQL entre as tags
<pre>
. - Execute o comando
python main.py
. - Informe no terminal a URL que contém a consulta SPARQL entre as tags
<pre>
. - Informe no terminal qual é o espaço nominal dos registros, p.ex.
Lexeme:
ouItem:
. - Informe no terminal o nome da página de destino, cujo conteúdo será salvo, p.ex.
Direito Intertemporal
.
Será gerado um arquivo.txt
dentro da pasta ./tables
, contendo o resultado da consulta formatado em tabela wikitext.
O conteúdo registrado no arquivo.txt
será postado na página de destino informada no terminal.
- Faça um fork do projeto
- Crie uma branch para a sua feature (
git checkout -b feature/nova-feature
) - Faça commit das suas alterações (
git commit -am 'Adicione uma nova feature'
) - Faça push para a branch (
git push origin feature/nova-feature
) - Crie um novo Pull Request
Copyright 2023 EDPO AUGUSTO FERREIRA MACEDO
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.