To download just the JSON-LD for a record page, use the HTTP headerĪccept: application/ld+json in your request, e.g.:Ĭurl -OJLH "Accept: application/ld+json" HEPData record pages include JSON-LD metadata to provide machine-readable information about the record. Metadata and of resource files attached to a submission. HEPData record pages support content negotiation Returns Table 1 of version 1 of the record, in YAML format. Rivet analysis name to be written in the YODA files if it does not match the automatically generated name. rivet=ALICE_2016_I1419244: when using format=yoda, specify the desired.light=true: when using format=json for a whole submission, this omits.version=1: specify a particular version of a record.Omitting spaces also works, for example, table=Table1. Special characters should generally be URL-encoded,įor example, %20 for a space. table=Table%201: provide the table name in order to download a specific table instead of all tables.Optional parameters can also be added (separated by a & symbol): To download in a specific format, append a format query parameter to the URL of a Scatter2D, Scatter3D) is written according to the number of independent Again, the appropriate YODA object ( Scatter1D, YODA: The data analysis classes used in the Rivet.There is more than one independent variable, the appropriate Objects are written for the central value of the data points and each of the uncertainties. If the data has finite bin widths, then also separate TH1F For numeric data, a TGraphAsymmErrors object is written for eachĭependent variable. Many widely-used applications such as an Excel spreadsheet. CSV: A simple text format consisting of comma-separated values, which can be imported into.YAML: As above but without resource files and with DOI information inserted as.Including any additional resource files uploaded with the original submission. YAML with resource files: The native HEPData format of the data tables (see.The light view reduces the size of the JSON by removing data tables and is useful for gettingĬonversion to various export formats is provided by a separate extensible package, Record pages also have a JSON view, for example: Multiple URL arguments should each be separated by a & symbol. If a user goes to the search page and filters on Collaboration: ATLAS,īy default, the search results are returned with up to 10 records on each page ( size=10), but this number can beĪltered by passing size=1 up to size=100 in the search URL. Simply add &format=json to the search URL or detailed record URL to get the results back in JSON. The JSON formatĪllows programmatic access, from scripts in different languages such as Python or from applications such as Mathematica. Aside from the normal HTML view of HEPData, most of our pages and data have a JSON equivalent.
0 Comments
Leave a Reply. |