-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinfo.py
20 lines (18 loc) · 1.11 KB
/
info.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# URL to gist files.
node_example = 'https://gist.githubusercontent.com/lasseedfast/1d43f23da417d64c34d304048ff58b70/raw/64b68b32318b18cfb69a509f9285f6fd0cfc4af0/nodes_example.csv'
relations_example = 'https://gist.githubusercontent.com/lasseedfast/c8548d13202d434e6801c3eed70d0586/raw/72bccc5d4b089c35620c00863aedad7ca3265627/relations_example.csv'
# Make links grey/black.
css = """<style>
a:link {color: grey;}
a:visited {color: grey;}
a:hover {color: grey;}
</style>
"""
explainer = f"""
If you upload only a file with relations the nodes will be created from that one and will only have a label.
You can also upload a separate file with nodes and more information about them. If so make sure the nodes correlate
to the source/target column in the relations file.
If you use *source*, *target* and *label* in your files the process here is almost automatic (see examples).
Examples for [relation file]({relations_example}) and [node file]({node_example}).
*No data is stored*, check [code on Github](https://github.com/lasseedfast/csv2gexf). Made by [Lasse Edfast](https://lasseedfast.se).
"""