-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
38 lines (25 loc) · 870 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
__version__ = "1.1.0"
import asyncio
import sys
import js
from pyodide.ffi import create_proxy
import helpers
import rdflib
BIBFRAME = rdflib.Namespace("http://id.loc.gov/ontologies/bibframe/")
SINOPIA = rdflib.Namespace("http://sinopia.io/vocabulary/")
from sinopia_api import show_groups
from load_rdf import bibframe_sparql as bf_sparql_widget, build_graph, download_graph
from query_rdf import download_query_results, run_query
async def load_content():
for element_id in [
"intro",
"retrieve-rdf",
"bf-work-instance-item-rdf",
"sparql-summary",
]:
await helpers.render_markdown(element_id)
asyncio.ensure_future(load_content())
bf_sparql_widget("bf-sparql-query")
helpers.set_versions(__version__)
splash_modal_close_btn = js.document.getElementById("splashModalCloseBtn")
splash_modal_close_btn.click()