/
boris00043
/
semantic-papers
Обзор
Документация
Войти
/
boris00043
/
semantic-papers
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
angular
services/article-parser/src/models/arango_models.py
35 строк
1 KB
boris
WIP: problems tasks extraction
13 авг 2025, 18:09
13 авг 2025, 18:09
119f8a8
Код
Авторство
О чём код?
from common import articles_db article_collection = articles_db.get_vertex_collection("Article") article_part_collection = articles_db.get_vertex_collection("ArticlePart") author_collection = articles_db.get_vertex_collection("Author") keyword_collection = articles_db.get_vertex_collection("Keyword") summary_collection = articles_db.get_vertex_collection("Summary") theme_collection = articles_db.get_vertex_collection("Theme") article_has_keyword = articles_db.get_edge_collection( "article_has_keyword", ["Article"], ["Keyword"] ) author_of = articles_db.get_edge_collection("author_of", ["Author"], ["Article"]) previous_part = articles_db.get_edge_collection( "previous_part", ["ArticlePart"], ["ArticlePart"] ) part_of = articles_db.get_edge_collection("part_of", ["ArticlePart"], ["Article"]) summary_of = articles_db.get_edge_collection( "summary_of", ["Summary"], ["ArticlePart", "Article"] ) theme_to_article = articles_db.get_edge_collection( "theme_to_article", ["Theme"], ["Article"] ) articles_problems_tasks_graph = articles_db.get_graph("ArticleProblemsTasksGraph") problems_and_tasks_collection = articles_problems_tasks_graph.get_vertex_collection( "ProblemsAndTasks" ) article_to_problems_and_tasks = articles_problems_tasks_graph.get_edge_collection( "article_to_problems_and_tasks", [article_collection.name], [problems_and_tasks_collection.name], )