Services
After this page you can export references for your documents in any format SciX offers, list the external resources of a document, get the data behind SciX’s author and paper networks, ask for papers your set of papers probably should cite, and get the citation metrics of a set of papers.
Each service is a function that sends one request. They take documents in the same forms everywhere: any
mix of bibcodes, Document objects, Library objects (their bibcodes), and lists or queries of
these. Each also takes client= to use a particular Client.
Export
from scixplorer import Document, Library, citation_helper, export, metrics, resolver, vis
print(export.bibtex("2006MNRAS.372..961K", "2001ApJ...556..121K"))
# -> @ARTICLE{2006MNRAS.372..961K,Every function returns the exported text as SciX sends it.
| Function | Format | Options besides sort |
|---|---|---|
bibtex | BibTeX | max_author=10, author_cutoff=200, key_format, journal_format=1 |
bibtexabs | BibTeX with abstracts | as bibtex, but max_author=0 |
aastex | AASTeX | journal_format=1 |
icarus, mnras, soph | the reference styles of Icarus, MNRAS and Solar Physics | |
ieee | IEEE (Unicode) | |
csl | a Citation Style Language style | style and format (required), journal_format |
ads | the ADS generic tagged format | |
endnote, procite, refworks, ris, medlars | reference-manager formats | |
dcxml, refxml, refabsxml, votable | XML formats | |
custom | your own format specification | format (required); no sort |
The options:
| Option | Meaning |
|---|---|
sort | None (the default) asks SciX for no sort; a string such as "date desc" or a sort key such as Document.year.desc() sorts; False sends no sort parameter |
max_author | the most authors listed before the list is cut short |
author_cutoff | records with more authors than this list only max_author of them |
key_format | how BibTeX keys are built, for example "%1H:%Y" gives Accomazzi:2019; add %zm to number duplicate keys. None uses the bibcode |
journal_format | 1: AASTeX macros where they exist, else the full name; 2: abbreviations; 3: full names |
style (csl) | one of aastex, icarus, mnras, soph, aspc, apsj, aasj, ieee |
format (csl) | 1: Unicode, 2: HTML, 3: LaTeX |
papers = (
Document
.select(Document.bibcode)
.where(Document.author == "Kewley, L")
)
text = export.bibtex(papers, max_author=3, key_format="%1H:%Y", sort=Document.year.desc())Links to full text and data
resolver.external_resources(document) lists every kind of external resource SciX knows for one
document (full text from the publisher or arXiv, data archives, and so on). Each entry is a dict with keys
such as type, title, url and count:
resources = resolver.external_resources("2006MNRAS.372..961K")
[resource["type"] for resource in resources]
# -> 'esource'resolver.external_resource(document, link_type) returns the resolver’s answer for one kind, as
SciX sends it: with one link, a dict with "action": "redirect" and the link; with several, "action": "display" and the links. link_type is one of resolver.LINK_TYPES, such as "esource" (all
full-text sources), "pub_pdf", "eprint_pdf" or "data":
answer = resolver.external_resource("2006MNRAS.372..961K", "esource")
answer["action"]
# -> redirectNetwork visualisations
vis.author_network(*documents) and vis.paper_network(*documents) return the data SciX uses
to draw its author and paper networks, as SciX
sends it, ready for a graph library such as D3:
network = vis.author_network(Library.get(name="Emission-line galaxies"))Citation suggestions
citation_helper(*documents) suggests up to ten papers that the given documents probably should cite:
papers that cite or are cited by them but are not among them. Each suggestion is a dict with bibcode,
score (an integer), title and author (each a single string, not a list as in search results):
suggestions = citation_helper("2006MNRAS.372..961K", "2008ApJ...681.1183K")
[suggestion["bibcode"] for suggestion in suggestions]
# -> ['2001ApJ...556..121K']Metrics
metrics(*documents) returns the statistics of SciX’s
Metrics page for the given documents taken together,
as SciX sends them:
statistics = metrics("2006MNRAS.372..961K", "2008ApJ...681.1183K")
statistics["basic stats"]["number of papers"]
# -> 2
statistics["indicators"]["h"]
# -> 2| Key | Holds |
|---|---|
"basic stats" | the number of papers, and how often they are read and downloaded |
"citation stats" | the number of citations and of citing papers, with averages and medians |
"indicators" | h, g, i10, i100, m, tori, riq and read10 |
"histograms" | publications, reads, downloads and citations per year |
"time series" | the indicators per year |
"skipped bibcodes" | the bibcodes SciX has no data for |
The first three also come for the refereed documents alone, under "basic stats refereed",
"citation stats refereed" and "indicators refereed". types= asks for only some of the statistics,
which is quicker: one or several of "basic", "citations", "indicators", "histograms" and
"timeseries".
metrics(Library.get(name="Emission-line galaxies"), types="indicators")["indicators"]["h"]
# -> 2If SciX has data for none of the documents, metrics() raises exceptions.APIError.
Not covered
myADS notifications and the other SciX services that are not listed above have no
functions in scixplorer yet. Their responses would come straight from SciX, so a Client can send
the request if you need one now (see How it works).