Skip to content

Commit

Permalink
Fix for bib
Browse files Browse the repository at this point in the history
  • Loading branch information
IKCAP committed May 14, 2024
1 parent c57f170 commit 08f19c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pylipd/globals/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@
WHERE {
?ds a le:Dataset .
?ds le:hasName ?dsname .
?ds le:publishedIn ?pub .
?ds le:hasPublication ?pub .
OPTIONAL{?pub le:hasDOI ?doi .}
OPTIONAL{
?pub le:author ?author .
?pub le:hasAuthor ?author .
?author le:hasName ?authorName .
}
OPTIONAL{?pub le:publicationYear ?year .}
OPTIONAL{?pub le:pubYear ?pubyear .}
OPTIONAL{?pub le:publicationYear ?pubyear .}
OPTIONAL{?pub le:hasYear ?year .}
OPTIONAL{?pub le:hasTitle ?title .}
OPTIONAL{?pub le:hasJournal ?journal .}
OPTIONAL{?pub le:hasVolume ?volume .}
Expand Down
2 changes: 1 addition & 1 deletion pylipd/lipd.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def make_bib(row):
if f[0]==True:
bibs.append(f[1])
else:
print("Cannot find a matching record for the provided DOI, creating the entry manually")
print(f"Cannot find a matching record for the provided DOI ({row['doi']}), creating the entry manually")
bibs.append(make_bib(row).to_string('bibtex'))
except:
print("Cannot parse the provided DOI, creating the entry manually")
Expand Down

0 comments on commit 08f19c3

Please sign in to comment.