hyperbase 0.8.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. hyperbase-0.8.0/.github/workflows/docs.yml +53 -0
  2. hyperbase-0.8.0/.github/workflows/publish.yml +29 -0
  3. hyperbase-0.8.0/.gitignore +67 -0
  4. hyperbase-0.8.0/AUTHORS +5 -0
  5. hyperbase-0.8.0/CHANGELOG.md +255 -0
  6. hyperbase-0.8.0/LICENSE +21 -0
  7. hyperbase-0.8.0/PKG-INFO +64 -0
  8. hyperbase-0.8.0/README.md +35 -0
  9. hyperbase-0.8.0/VERSION +1 -0
  10. hyperbase-0.8.0/docs/assets/images/atom-structure.png +0 -0
  11. hyperbase-0.8.0/docs/assets/images/authors/camille.jpg +0 -0
  12. hyperbase-0.8.0/docs/assets/images/authors/chih-chun.jpg +0 -0
  13. hyperbase-0.8.0/docs/assets/images/authors/kexinren.jpg +0 -0
  14. hyperbase-0.8.0/docs/assets/images/authors/max.jpg +0 -0
  15. hyperbase-0.8.0/docs/assets/images/authors/telmo.jpg +0 -0
  16. hyperbase-0.8.0/docs/assets/images/authors/yael-stein.jpg +0 -0
  17. hyperbase-0.8.0/docs/assets/images/block.png +0 -0
  18. hyperbase-0.8.0/docs/assets/images/favicon.png +0 -0
  19. hyperbase-0.8.0/docs/assets/images/graphbrain.png +0 -0
  20. hyperbase-0.8.0/docs/assets/images/hyper-vs-graph.png +0 -0
  21. hyperbase-0.8.0/docs/assets/images/hyperedge-blocks.png +0 -0
  22. hyperbase-0.8.0/docs/assets/images/logo_hyperquest_small_nav.svg +19 -0
  23. hyperbase-0.8.0/docs/assets/images/one-pagers/GB-A.pdf +0 -0
  24. hyperbase-0.8.0/docs/assets/images/one-pagers/GB-A_thumb.png +0 -0
  25. hyperbase-0.8.0/docs/assets/images/one-pagers/GB-C.pdf +0 -0
  26. hyperbase-0.8.0/docs/assets/images/one-pagers/GB-C_thumb.png +0 -0
  27. hyperbase-0.8.0/docs/assets/images/show.png +0 -0
  28. hyperbase-0.8.0/docs/assets/images/socsemics.png +0 -0
  29. hyperbase-0.8.0/docs/assets/images/vblock.png +0 -0
  30. hyperbase-0.8.0/docs/assets/stylesheets/extra.css +21 -0
  31. hyperbase-0.8.0/docs/authors.md +60 -0
  32. hyperbase-0.8.0/docs/index.md +19 -0
  33. hyperbase-0.8.0/docs/installation.md +57 -0
  34. hyperbase-0.8.0/docs/manual/api.md +21 -0
  35. hyperbase-0.8.0/docs/manual/discovering-patterns.md +171 -0
  36. hyperbase-0.8.0/docs/manual/hyperedge-operations.md +53 -0
  37. hyperbase-0.8.0/docs/manual/notation.md +228 -0
  38. hyperbase-0.8.0/docs/manual/overview.md +68 -0
  39. hyperbase-0.8.0/docs/manual/parsing.md +5 -0
  40. hyperbase-0.8.0/docs/manual/patterns.md +243 -0
  41. hyperbase-0.8.0/docs/pubs-cases.md +37 -0
  42. hyperbase-0.8.0/docs/tutorials/parsing-a-sentence.md +45 -0
  43. hyperbase-0.8.0/mkdocs.yml +81 -0
  44. hyperbase-0.8.0/pyproject.toml +62 -0
  45. hyperbase-0.8.0/src/hyperbase/__init__.py +6 -0
  46. hyperbase-0.8.0/src/hyperbase/constants.py +4 -0
  47. hyperbase-0.8.0/src/hyperbase/hyperedge.py +1127 -0
  48. hyperbase-0.8.0/src/hyperbase/parsers/__init__.py +39 -0
  49. hyperbase-0.8.0/src/hyperbase/parsers/correctness.py +265 -0
  50. hyperbase-0.8.0/src/hyperbase/parsers/parser.py +41 -0
  51. hyperbase-0.8.0/src/hyperbase/parsers/utils.py +19 -0
  52. hyperbase-0.8.0/src/hyperbase/patterns/__init__.py +29 -0
  53. hyperbase-0.8.0/src/hyperbase/patterns/argroles.py +142 -0
  54. hyperbase-0.8.0/src/hyperbase/patterns/atoms.py +98 -0
  55. hyperbase-0.8.0/src/hyperbase/patterns/common.py +172 -0
  56. hyperbase-0.8.0/src/hyperbase/patterns/counter.py +153 -0
  57. hyperbase-0.8.0/src/hyperbase/patterns/entrypoints.py +87 -0
  58. hyperbase-0.8.0/src/hyperbase/patterns/matcher.py +245 -0
  59. hyperbase-0.8.0/src/hyperbase/patterns/merge.py +52 -0
  60. hyperbase-0.8.0/src/hyperbase/patterns/properties.py +59 -0
  61. hyperbase-0.8.0/src/hyperbase/patterns/utils.py +118 -0
  62. hyperbase-0.8.0/src/hyperbase/patterns/variables.py +161 -0
  63. hyperbase-0.8.0/tests/__init__.py +0 -0
  64. hyperbase-0.8.0/tests/test_correctness.py +324 -0
  65. hyperbase-0.8.0/tests/test_hyperedge.py +1107 -0
  66. hyperbase-0.8.0/tests/test_patterns.py +1039 -0
@@ -0,0 +1,53 @@
1
+ name: Deploy docs to hyperquest.ai/hyperbase
2
+
3
+ on:
4
+ push:
5
+ branches: [master]
6
+ paths:
7
+ - 'docs/**'
8
+ - 'mkdocs.yml'
9
+ - 'src/**'
10
+ workflow_dispatch:
11
+
12
+ jobs:
13
+ deploy:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - name: Checkout hyperbase
17
+ uses: actions/checkout@v4
18
+
19
+ - name: Set up Python
20
+ uses: actions/setup-python@v5
21
+ with:
22
+ python-version: '3.12'
23
+
24
+ - name: Install uv
25
+ uses: astral-sh/setup-uv@v4
26
+
27
+ - name: Install dependencies
28
+ run: uv sync --all-extras
29
+
30
+ - name: Build docs
31
+ run: uv run mkdocs build
32
+
33
+ - name: Checkout main site repo
34
+ uses: actions/checkout@v4
35
+ with:
36
+ repository: hyperquest-hq/hyperquest-hq.github.io
37
+ token: ${{ secrets.DEPLOY_TOKEN }}
38
+ path: site-repo
39
+
40
+ - name: Deploy docs to site repo
41
+ run: |
42
+ rm -rf site-repo/hyperbase
43
+ cp -r site/ site-repo/hyperbase
44
+
45
+ - name: Push to main site repo
46
+ working-directory: site-repo
47
+ run: |
48
+ git config user.name "github-actions[bot]"
49
+ git config user.email "github-actions[bot]@users.noreply.github.com"
50
+ git add hyperbase/
51
+ git diff --cached --quiet && echo "No changes to deploy" && exit 0
52
+ git commit -m "Update hyperbase docs"
53
+ git push
@@ -0,0 +1,29 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ publish:
9
+ runs-on: ubuntu-latest
10
+ environment: pypi
11
+ permissions:
12
+ id-token: write
13
+ steps:
14
+ - name: Checkout
15
+ uses: actions/checkout@v4
16
+
17
+ - name: Set up Python
18
+ uses: actions/setup-python@v5
19
+ with:
20
+ python-version: '3.12'
21
+
22
+ - name: Install build dependencies
23
+ run: pip install build
24
+
25
+ - name: Build package
26
+ run: python -m build
27
+
28
+ - name: Publish to PyPI
29
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,67 @@
1
+ # Compiled source #
2
+ ###################
3
+ *.com
4
+ *.class
5
+ *.dll
6
+ *.exe
7
+ *.o
8
+ *.so
9
+ build/
10
+
11
+ # Packages #
12
+ ############
13
+ # it's better to unpack these files and commit the raw source
14
+ # git has its own built in compression methods
15
+ *.7z
16
+ *.dmg
17
+ *.gz
18
+ *.iso
19
+ *.jar
20
+ *.rar
21
+ *.tar
22
+ *.zip
23
+
24
+ # Logs and databases #
25
+ ######################
26
+ *.log
27
+ *.sql
28
+ *.sqlite
29
+
30
+ # OS generated files #
31
+ ######################
32
+ .DS_Store*
33
+ ehthumbs.db
34
+ Icon?
35
+ Thumbs.db
36
+
37
+ # IDE stuff #
38
+ #############
39
+ .idea
40
+ .vscode
41
+
42
+
43
+ # Python version/venv #
44
+ #######################
45
+ .python-version
46
+
47
+ # Python bytecode #
48
+ ###################
49
+ __pycache__
50
+ *.pyc
51
+ *.pyo
52
+
53
+ # Python package stuff #
54
+ ########################
55
+ *.egg-info
56
+
57
+ # Jupyter notebooks #
58
+ #####################
59
+ .ipynb_checkpoints
60
+
61
+ # db files #
62
+ #####################
63
+ *.db
64
+
65
+ /venv
66
+ /dist
67
+ /site
@@ -0,0 +1,5 @@
1
+ Telmo Menezes <telmo@telmomenezes.net>
2
+ Chih-Chun Chen <c.chen@abmcet.net>
3
+ Camille Roth <roth@cmb.hu-berlin.de>
4
+ Kexin Ren <kren4@ualberta.ca>
5
+ Max Reinhard <mail@max-reinhard.de>
@@ -0,0 +1,255 @@
1
+ # Changelog
2
+
3
+ ## [0.8.0] - 26-03-2026 - hyperbase is the successor of graphbrain
4
+
5
+ ### Added
6
+ - parser plugin foundation.
7
+ - more comprehensive Hyperedge.check_correctness.
8
+ - check parse correctness.
9
+ - type checking: full code coverage.
10
+
11
+ ### Changed
12
+ - renamed library to hyperbase.
13
+ - trimmed down library to the essentials: hyperedge, patterns and parser foundations.
14
+ - converted documentation to Material for MkDocs.
15
+
16
+ ### Removed
17
+ - hypergraph module, hypergraph database (memory module).
18
+ - alphabeta parser implementation.
19
+ - old scripts, examples, processors.
20
+ - ad hoc utils.
21
+ - cli.
22
+ - notebook utils.
23
+ - obsolete constants.
24
+
25
+ ## [0.7.0] - 05-03-2026
26
+ ### Added
27
+ - patterns.is_wildcard().
28
+ - Base class hypergraph.memory.keyvalue.KeyValue for key-value hypergraph databases, removing redundant code between LevelDB and SQLite.
29
+ - Tests for LevelDB (only the SQLite Hypergraph implementation was being directly tested).
30
+ - Hyperedge.is_unordered_pattern().
31
+ - Functional pattern: any.
32
+ - Parser-level inference of coreferences between proper nouns.
33
+ - Parser.parse_and_add() now adds token information to the main edge of a sentence: the attribute 'tokens' contains the list of tokens and 'tok_pos' a structure with the token position for each atom in the edge.
34
+ - Post-processing step improves parser.
35
+ - Hypergraph.get_attributes().
36
+
37
+ ### Changed
38
+ - Entire project is now in pure Python
39
+ - Python >=3.10 now required.
40
+ - Hypergraph.search(), .match() and .count() now working with functional patterns and argument role matching.
41
+ - Fixed bug on match_pattern(), variables were not correctly matched when argument roles were specified past the first position in an atoms functional pattern.
42
+ - Simplified default systems connectors (breaks hypergraph DB backwards compatibility).
43
+ - max_text argument in parser.parse_and_add().
44
+ - Matches from patterns with repeated variables are collected in lists.
45
+
46
+ ### Removed
47
+ - graphbrain.logic obsolete module.
48
+ - LevelDB backend
49
+
50
+ ## [0.6.1] - 31-10-2022
51
+ ### Changed
52
+ - Hyperedge.replace_argroles() .insert_argrole() and .insert_edge_with_argrole() now works with functional patterns such as var.
53
+ - Fixed bug when matching patterns containing atoms functional pattern where no atom has argroles.
54
+
55
+ ### Removed
56
+ - interactive_case_generator() from graphbrain.notebook.
57
+
58
+ ## [0.6.0] - 27-10-2022
59
+ ### Added
60
+ - Hyperedge.atom and .not_atom properties.
61
+ - Hyperedge.mtype() and .connector_mtype() methods.
62
+ - Hyperedge.t, .mt, .ct and .cmt type shortcut properties.
63
+ - Functional patterns: var, atoms, lemma.
64
+ - Moved all patterns functions to graphbrain.patterns.
65
+ - Hypergraph.text().
66
+ - Parser.parse_and_add().
67
+ - Parser.sentences().
68
+ - Hyperedge.normalized().
69
+ - New package graphbrain.readers, for text readers from various sources.
70
+ - New package graphbrain.processors, for miscellaneous processors.
71
+ - Processor class.
72
+
73
+ ### Changed
74
+ - Coreference resolution now using the new spaCy experimental model.
75
+ - Now using spaCy transformer GPU models by default, can fallback to CPU model.
76
+ - Hyperedge.is_atom() deprecated.
77
+ - Improved Hyperedge.main_concepts().
78
+ - Hyperedge.atom() renamed to .inner_atom().
79
+ - Sequences keep track of their size, no need to specify position when adding edge to sequence.
80
+ - Improved wikipedia reader.
81
+ - Improved coreference resolution.
82
+ - LevelDB included by default again.
83
+ - Old package graphbrain.meaning renamed to graphbrain.utils.
84
+ - Hyperedge.argroles() now also works at relation/concept level.
85
+
86
+ ### Removed
87
+ - graphbrain.patterns.normalize_edge().
88
+ - graphbrain.stats obsolete package.
89
+ - graphbrain.cognition obsolete package.
90
+ - graphbrain.op obsolete module.
91
+ - Hyperedge .predicate() and .predicate_atom().
92
+
93
+ ## [0.5.0] - 28-07-2021
94
+ ### Added
95
+ - SQLite3 hypergraph database backend.
96
+ - Hypergraph.add_with_attributes().
97
+ - import and export commands.
98
+ - Hypergraph context manager for batch writes (with hopen(hg_locator) as hg ...).
99
+
100
+ ### Changed
101
+ - Main hypergraph database backend is now SQLite3.
102
+ - LevelDB backend becomes optional. (disabled by default)
103
+ - Neuralcoref becomes optional. (disabled by default)
104
+
105
+ ### Removed
106
+ - Hypergraph.atom_count().
107
+ - Hypergraph.edge_count().
108
+ - Hypergraph.primary_atom_count().
109
+ - Hypergraph.primary_edge_count().
110
+ - info command.
111
+ - corefs_unidecode agent.
112
+
113
+ ## [0.4.3] - 22-04-2021
114
+ ### Changed
115
+ - Fixed AlphaBeta bug related to temporary atoms being removed too soon from atom2tokens.
116
+ - Hypergraph.add_sequence() converts sequence name directly to atom.
117
+ - Parser level coreference resolution (neuralcoref) disabled by default, requires dedicated build.
118
+
119
+ ## [0.4.2] - 12-04-2021
120
+ ### Changed
121
+ - Solving wheel compilation issue.
122
+
123
+ ## [0.4.1] - 07-04-2021
124
+ ### Changed
125
+ - Solving issue with inclusion of auxiliary data file in non-binary distributions.
126
+
127
+ ## [0.4.0] - 07-04-2021
128
+ ### Added
129
+ - Agents system.
130
+ - Conjunctions resolution agent.
131
+ - Number agent (singular/plural relations) and related meaning.number module.
132
+ - Wikipedia agent.
133
+ - Coreference resolution in the parser through local fork of neuralcoref.
134
+ - atom_gender(), atom_number(), atom_person(), atom_animacy() in parsers.
135
+ - Coreference inference: gender, number and animacy.
136
+ - Coreference inference:'X is Y' relationships.
137
+ - dir_parser agent (looks for text files in directory tree).
138
+ - Function meaning.concepts.has_common_or_proper_concept(edge).
139
+ - Function Hypergraph.add() now has optional 'count' parameter.
140
+ - Function Hypergraph.sequences().
141
+ - Function Hyperedge.replace_argroles().
142
+ - Function Hyperedge.insert_argrole().
143
+ - Function Hyperedge.insert_edge_with_argrole().
144
+ - Function Hyperedge.all_atoms().
145
+ - Function Hyperedge.size().
146
+ - Function Hyperedge.predicate().
147
+ - Function Hyperedge.predicate_atom().
148
+ - Function Hyperedge.simplify().
149
+ - Function Hyperedge.connector_atom().
150
+ - Utility functions to show colored edges in the terminal.
151
+
152
+ ### Changed
153
+ - Special characters in atoms are now percent-encoded.
154
+ - parse() now returns a dictionary that includes inferred edges.
155
+ - parse() now returns a dictionary of edges to text.
156
+ - New parser framework, improved English parser + scripts to help train and test new parsers.
157
+ - Hyperedge main type character codes become upercase (apple/C instead of apple/c).
158
+ - Conjunction hyperedge type, character code: "J" (e.g.: and/J).
159
+ - Modifier hyperedge type can now be applied to anything.
160
+ - Searching patterns can now include types, argument roles and other atom parts.
161
+ - Hypergraph.search_count() renamed to Hypergraph.count().
162
+ - corefs_names agent is simplified.
163
+ - corefs_onto agent is simplified.
164
+ - Tests now run with pytest instead of the deprecated './setup.py test'.
165
+ - Hyperedge.replace_atom() optional unique argument.
166
+
167
+ ### Removed
168
+ - Meta-modifier hyperedge type.
169
+ - Auxiliary, subpredicate and dependency hyperedge types.
170
+ - Obsolete Hyperedge.nest() method.
171
+
172
+ ## [0.3.2] - 10-02-2020
173
+ ### Added
174
+ - simplify_role() on Atom objects produces an atom with only its simple type as role.
175
+
176
+ ### Changed
177
+ - Lemmas are now based on atoms with simplified roles.
178
+ - Improved actors agent (more accurate identification of actors, English only for now).
179
+
180
+ ## [0.3.1] - 03-02-2020
181
+ ### Added
182
+ - German parser (experimental and incomplete).
183
+ - Documentation.
184
+ - Hyperedge sequences.
185
+
186
+ ### Changed
187
+ - Improved hyperedge visualization in notebooks.
188
+ - Agents receive language and sequence.
189
+ - txt_parser agent creates a sequence.
190
+ - Refactored parsers code.
191
+ - Catching and logging exceptions during parse.
192
+ - Improved conflict agent.
193
+
194
+ ## [0.3.0] - 28-09-2019
195
+ ### Added
196
+ - Tests.
197
+ - Documentation.
198
+
199
+ ### Changed
200
+ - Graphbrain is now beta (main APIs considered stable).
201
+ - LevelDB edge attributes encoded in JSON.
202
+ - Renamed hypergraph() to hgraph() and moved function to __jnit__.
203
+ - Fixed notebook examples.
204
+ - Moved Hypergraph.lemma_degrees() to meaning.lemmas.
205
+ - Argroles location is normalized (first position in both predicates and builders).
206
+ - In the parsers package, create_parser() was moved to __init__ and the factory module was removed.
207
+ - is_proper_concept() renamed to has_proper_concept() (meaning.concepts module).
208
+ - find_concept() renamed to strip_concept() (meaning.concepts module).
209
+ - Improved notebooks visualizations (show(), blocks(), vblocks()).
210
+
211
+ ### Removed
212
+ - graphbrain.funs module.
213
+
214
+ ## [0.2.2] - 13-09-2019
215
+
216
+ ### Added
217
+ - txt_parser agent.
218
+ - MANIFEST.in to include VERSION file in distribution.
219
+
220
+ ### Changed
221
+ - Fixing 'pip install graphbrain' on Linux/Windows.
222
+
223
+ ## [0.2.1] - 04-09-2019
224
+ ### Added
225
+ - claim_actors and corefs_dets agents.
226
+ - meaning.concepts module.
227
+
228
+ ### Changed
229
+ - Fixed example.
230
+ - hypergraph.sum_degree() and .sum_deep_degree().
231
+ - Parser improvements.
232
+ - Agent corefs_atoms is now corefs_unidecode.
233
+ - Improved docs.
234
+
235
+ ### Removed
236
+ - Obsolete 'work-in-progress' code.
237
+ - hg2json command.
238
+
239
+ ## [0.2.0] - 04-08-2019
240
+ ### Added
241
+ - Primary entities and deep degrees.
242
+ - Hyperedges have their own class, deriving from tuple.
243
+ - Atoms have a special class, deriving from Hyperedge.
244
+ - Restructuring of code files tree.
245
+ - Created agent system + first agents.
246
+
247
+ ### Changed
248
+ - Parsers now have own package.
249
+
250
+ ### Removed
251
+ - Old experimental code.
252
+
253
+ ## [0.1.0] - 14-06-2019
254
+ ### Added
255
+ - First release.
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (C) 2026 CNRS - Centre national de la recherche scientifique
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,64 @@
1
+ Metadata-Version: 2.4
2
+ Name: hyperbase
3
+ Version: 0.8.0
4
+ Summary: A foundational library for Semantic Hypergraphs
5
+ Project-URL: Homepage, https://hyperquest.ai/hyperbase
6
+ Author-email: "Telmo Menezes et al." <telmo@telmomenezes.net>
7
+ License-Expression: MIT
8
+ License-File: AUTHORS
9
+ License-File: LICENSE
10
+ Keywords: AI,Cognition,Knowledge Representation,Knowledge Systems,NLP,Natural Language Understanding,Text Analysis
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
17
+ Classifier: Topic :: Scientific/Engineering :: Information Analysis
18
+ Requires-Python: >=3.10
19
+ Requires-Dist: tqdm>=4.65.0
20
+ Provides-Extra: dev
21
+ Requires-Dist: coverage>=7.4.3; extra == 'dev'
22
+ Requires-Dist: mkdocs-material>=9.5; extra == 'dev'
23
+ Requires-Dist: mkdocstrings[python]>=0.24; extra == 'dev'
24
+ Requires-Dist: mypy>=1.8.0; extra == 'dev'
25
+ Requires-Dist: pre-commit>=3.6.2; extra == 'dev'
26
+ Requires-Dist: ruff>=0.2.2; extra == 'dev'
27
+ Requires-Dist: types-passlib>=1.7.7.20240106; extra == 'dev'
28
+ Description-Content-Type: text/markdown
29
+
30
+ # Hyperbase
31
+
32
+ ## A foundational library for Semantic Hypergraphs
33
+
34
+ Hyperbase is a foundational library for working with *Semantic Hypergraphs (SH)*, which make it possible to represent a natural language sentence such as "Einstein first published the theory of relativity in 1905" as an ordered, recursive hyperlink of the form:
35
+
36
+ <figure markdown="span">
37
+ ![Einstein first published the Theory of Relativity in 1905.](assets/images/hyperedge-blocks.png){ width="75%" }
38
+ </figure>
39
+
40
+ Hyperbase is written in Python, to both take advantage and facilitate integration with the rich environment of scientific libraries available in this language. It is released under the highly permissive MIT open source license.
41
+
42
+ ## Installation and manual
43
+
44
+ Installation instructions, the manual and more information can be found here: <https://hyperquest.ai/hyperbase>
45
+
46
+ ## Contributing
47
+
48
+ Pull requests are welcome. For major changes, please open an issue first
49
+ to discuss what you would like to change.
50
+
51
+ Please make sure to update tests as appropriate.
52
+
53
+ ## Funding
54
+
55
+ The creation of this software library and the associated research that made it possible were funded by CNRS and the ERC Consolidator
56
+ Grant [Socsemics](https://socsemics.huma-num.fr/) (grant #772743).
57
+
58
+ <a href="https://socsemics.huma-num.fr/" style="margin:0px">
59
+ <img src="docs/source/_static/socsemics.png" width="200">
60
+ </a>
61
+
62
+ ## License
63
+
64
+ [MIT](https://choosealicense.com/licenses/mit/)
@@ -0,0 +1,35 @@
1
+ # Hyperbase
2
+
3
+ ## A foundational library for Semantic Hypergraphs
4
+
5
+ Hyperbase is a foundational library for working with *Semantic Hypergraphs (SH)*, which make it possible to represent a natural language sentence such as "Einstein first published the theory of relativity in 1905" as an ordered, recursive hyperlink of the form:
6
+
7
+ <figure markdown="span">
8
+ ![Einstein first published the Theory of Relativity in 1905.](assets/images/hyperedge-blocks.png){ width="75%" }
9
+ </figure>
10
+
11
+ Hyperbase is written in Python, to both take advantage and facilitate integration with the rich environment of scientific libraries available in this language. It is released under the highly permissive MIT open source license.
12
+
13
+ ## Installation and manual
14
+
15
+ Installation instructions, the manual and more information can be found here: <https://hyperquest.ai/hyperbase>
16
+
17
+ ## Contributing
18
+
19
+ Pull requests are welcome. For major changes, please open an issue first
20
+ to discuss what you would like to change.
21
+
22
+ Please make sure to update tests as appropriate.
23
+
24
+ ## Funding
25
+
26
+ The creation of this software library and the associated research that made it possible were funded by CNRS and the ERC Consolidator
27
+ Grant [Socsemics](https://socsemics.huma-num.fr/) (grant #772743).
28
+
29
+ <a href="https://socsemics.huma-num.fr/" style="margin:0px">
30
+ <img src="docs/source/_static/socsemics.png" width="200">
31
+ </a>
32
+
33
+ ## License
34
+
35
+ [MIT](https://choosealicense.com/licenses/mit/)
@@ -0,0 +1 @@
1
+ 0.8.0
@@ -0,0 +1,19 @@
1
+ <svg width="69" height="102" viewBox="0 0 69 102" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_889_302)">
3
+ <path opacity="0.6" d="M4.38397 70.7678V84.3613L16.1572 91.1609L27.9305 84.3613V70.7678L16.1572 63.971L4.38397 70.7678Z" fill="#A7D8D8"/>
4
+ <path opacity="0.6" d="M16.858 26.3752V39.9687L28.6313 46.7654L40.4045 39.9687V26.3752L28.6313 19.5784L16.858 26.3752Z" fill="#71A8B5"/>
5
+ <path opacity="0.6" d="M27.9761 38.5102V52.1037L39.7493 58.9005L51.5226 52.1037V38.5102L39.7493 31.7135L27.9761 38.5102Z" fill="#C5DFD9"/>
6
+ <path opacity="0.6" d="M16.2085 58.9005V72.494L27.9818 79.2908L39.755 72.494V58.9005L27.9818 52.1037L16.2085 58.9005Z" fill="#71A8B5"/>
7
+ <path opacity="0.6" d="M39.7494 45.3041V58.8976L51.5227 65.6944L63.2959 58.8976V45.3041L51.5227 38.5074L39.7494 45.3041Z" fill="#71A8B5"/>
8
+ <path opacity="0.6" d="M4.4353 38.5102V52.1037L16.2086 58.9005L27.9818 52.1037V38.5102L16.2086 31.7106L4.4353 38.5102Z" fill="#A7D8D8"/>
9
+ <path opacity="0.6" d="M34.431 61.977V75.5705L46.2043 82.3672L57.9775 75.5705V61.977L46.2043 55.1802L34.431 61.977Z" fill="#C5DFD9"/>
10
+ <path opacity="0.6" d="M34.8412 9.88179L34.8384 28.8762L51.5226 38.5102L68.2069 29.144V9.88179L51.5255 0.247826L34.8412 9.88179Z" fill="#A7D8D8"/>
11
+ <path opacity="0.6" d="M12.4797 74.4652V92.5339L28.1271 101.57L43.7773 92.5339V74.4652L28.1271 65.4295L12.4797 74.4652Z" fill="#CAE6E6"/>
12
+ <path opacity="0.6" d="M0.894409 81.205V94.7985L12.6677 101.595L24.4409 94.7985V81.205L12.6677 74.4082L0.894409 81.205Z" fill="#71A8B5"/>
13
+ </g>
14
+ <defs>
15
+ <clipPath id="clip0_889_302">
16
+ <rect width="68.9048" height="101.877" fill="white"/>
17
+ </clipPath>
18
+ </defs>
19
+ </svg>
@@ -0,0 +1,21 @@
1
+ /* hyperquest.ai brand colors */
2
+ :root,
3
+ [data-md-color-scheme="default"] {
4
+ --md-primary-fg-color: #C2E3F6;
5
+ --md-primary-fg-color--light: #d4ecf9;
6
+ --md-primary-fg-color--dark: #a8d5f0;
7
+ --md-primary-bg-color: #10224D;
8
+ --md-accent-fg-color: #1a6d7d;
9
+ --md-accent-fg-color--transparent: rgba(26, 109, 125, 0.1);
10
+ --md-typeset-a-color: #1a6d7d;
11
+ }
12
+
13
+ [data-md-color-scheme="slate"] {
14
+ --md-primary-fg-color: #C2E3F6;
15
+ --md-primary-fg-color--light: #d4ecf9;
16
+ --md-primary-fg-color--dark: #a8d5f0;
17
+ --md-primary-bg-color: #10224D;
18
+ --md-accent-fg-color: #1a6d7d;
19
+ --md-accent-fg-color--transparent: rgba(26, 109, 125, 0.1);
20
+ --md-typeset-a-color: #1a6d7d;
21
+ }