Skip to main content

Core explore periodic table capabilities for the curator core project

Project description

core_explore_periodic_table_app

core_explore_periodic_table_app is a Django app.

Quick start

1. Add “core_explore_periodic_table_app” to your INSTALLED_APPS setting

INSTALLED_APPS = [
  ...
  'core_explore_periodic_table_app',
]

2. Include the core_explore_periodic_table_app URLconf in your project urls.py

re_path(r'^explore/periodic_table/', include("core_explore_periodic_table_app.urls")),

3. Configure the Search Operators

Configure the Search by periodic table app by adding search operators pointing to chemical elements in the CDCS data. Start by adding a search operator:

import requests

payload = {
    "name": "chemical",
    "xpath_list": [
        "/experiment/experimentType/tracerDiffusivity/diffusingSpecies/element",
        "/experiment/experimentType/tracerDiffusivity/material/Composition/constituents/constituent/element"
    ]
}

requests.post(
    SERVER_URI + "/explore/keyword/rest/search_operators/", data=payload, auth=(USER, PASSWORD)
)

Then, tell the periodic table app to use one or many search operators by adding mappings:

import requests

payload = {
    "search_operator": "5f49048f3b3689f92cb84f41"
}

requests.post(
    SERVER_URI + "/explore/periodic_table/rest/search_operators_mapping/", data=payload, auth=(USER, PASSWORD)
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

core_explore_periodic_table_app-1.7.0.tar.gz (24.8 kB view details)

Uploaded Source

File details

Details for the file core_explore_periodic_table_app-1.7.0.tar.gz.

File metadata

  • Download URL: core_explore_periodic_table_app-1.7.0.tar.gz
  • Upload date:
  • Size: 24.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.0 importlib_metadata/3.7.3 packaging/20.9 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10

File hashes

Hashes for core_explore_periodic_table_app-1.7.0.tar.gz
Algorithm Hash digest
SHA256 0e6e428b68fab7125eb57764e219698bff4b672c31997c11f04cdea74b7ffd1f
MD5 fa41cc4f30b6482f9313120a9eee9ebe
BLAKE2b-256 3c8c887cfbe492ab96d091b453144961a840e6081d99c3be570f49d69a278677

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page