Skip to content
Services

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.

FunctionFormatOptions besides sort
bibtexBibTeXmax_author=10, author_cutoff=200, key_format, journal_format=1
bibtexabsBibTeX with abstractsas bibtex, but max_author=0
aastexAASTeXjournal_format=1
icarus, mnras, sophthe reference styles of Icarus, MNRAS and Solar Physics
ieeeIEEE (Unicode)
csla Citation Style Language stylestyle and format (required), journal_format
adsthe ADS generic tagged format
endnote, procite, refworks, ris, medlarsreference-manager formats
dcxml, refxml, refabsxml, votableXML formats
customyour own format specificationformat (required); no sort

The options:

OptionMeaning
sortNone (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_authorthe most authors listed before the list is cut short
author_cutoffrecords with more authors than this list only max_author of them
key_formathow BibTeX keys are built, for example "%1H:%Y" gives Accomazzi:2019; add %zm to number duplicate keys. None uses the bibcode
journal_format1: 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"]
# -> redirect

Network 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
KeyHolds
"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"]
# -> 2

If 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).