Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show Catalog, Which Existed on Deriva Tutorial System, on Globus Webpage #164

Open
cloudlakecho opened this issue Nov 2, 2022 · 0 comments

Comments

@cloudlakecho
Copy link

This is a question about the created Table in Deriva Tutorial System.

I build a catalog on Deriva Tutorial systems. I wonder if there is a way to show the table/catalog in Globus webpage.

Here is my current contents in table in Deriva Tutorial systems:

{'RID': '1Q0', 'RCT': '2022-11-01T23:19:58.873349+00:00', 'RMT': '2022-11-01T23:19:58.940364+00:00', 'RCB': 'https://auth.globus.org/337648a2-85e9-4c52-9007-9799f17d7f0c', 'RMB': 'https://auth.globus.org/337648a2-85e9-4c52-9007-9799f17d7f0c', 'Image File Name': '/media/storage/data/AIMI/BNL2_portion/1to1_ratio/1/1_Pos2_00007_3725472643.txt', 'Class': 'Aluminum', 'Foreign Key': None, 'FileName': '/media/storage/data/AIMI/BNL2_portion/1to1_ratio/1/1_Pos2_00007_3725472643.txt', 'Experiment Type': None, 'HashTag': None, 'Acutal Data': None}

I blindly tried the link in RCB (System-managed record created by provenance) in the web browser, but it doesn't look like accessible (I was logged in Globus).

As reference, the Python code to read the table in Deriva Tutorial System:

from deriva.core import DerivaServer, ErmrestCatalog, HatracStore, AttrDict

catalog = ErmrestCatalog(info['protocol'],
    info['hostname'], info['catalog_number'],
    info['credential'])

path_builder = catalog.getPathBuilder()

cur_path = \
      path_builder.schemas[label['schemaname']].tables[label['table']].path
cur_results = cur_path.entities()
cur_results.fetch()
for i in cur_results:
    print (i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant