Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
yindaheng98 committed Dec 16, 2023
1 parent 518aa1d commit e5517db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions dblp_crawler/summarizer/neo4j.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,14 @@ def add_publication(tx, publication, added_journals: set, selected=False):
if publication.journal_key() and publication.journal_key() != "db/journals/corr":
if publication.journal_key() not in added_journals:
tx.run("MERGE (j:Journal {dblp_key:$dblp_key}) SET j.dblp_name=$dblp_name, j.ccf=$ccf "
"MERGE (p:Publication {title_hash:$title_hash})"
"MERGE (p)-[:PUBLISH]->(j)",
"MERGE (p:Publication {title_hash:$title_hash})-[:PUBLISH]->(j:Journal)",
dblp_key=publication.journal_key(),
dblp_name=publication.journal(),
ccf=publication.ccf(),
title_hash=publication.title_hash())
added_journals.add(publication.journal_key())
else:
tx.run("MERGE (p:Publication {title_hash:$title_hash})"
"MERGE (j:Journal {dblp_key:$dblp_key})"
"MERGE (p)-[:PUBLISH]->(j)",
tx.run("MERGE (p:Publication {title_hash:$title_hash})-[:PUBLISH]->(j:Journal {dblp_key:$dblp_key})",
dblp_key=publication.journal_key(),
title_hash=publication.title_hash())

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

setup(
name='dblp_crawler',
version='1.8.12',
version='1.8.13',
author='yindaheng98',
author_email='[email protected]',
url='https://github.com/yindaheng98/dblp-crawler',
Expand Down

0 comments on commit e5517db

Please sign in to comment.