maplib 0.18.13__cp39-abi3-manylinux_2_28_aarch64.whl
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.
- maplib/.gitignore +1 -0
- maplib/__init__.py +62 -0
- maplib/__init__.pyi +863 -0
- maplib/adding_triples.py +29 -0
- maplib/maplib.abi3.so +0 -0
- maplib/py.typed +0 -0
- maplib-0.18.13.dist-info/METADATA +207 -0
- maplib-0.18.13.dist-info/RECORD +10 -0
- maplib-0.18.13.dist-info/WHEEL +4 -0
- maplib-0.18.13.dist-info/licenses/LICENSE +202 -0
maplib/.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*.so
|
maplib/__init__.py
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# r'''
|
|
2
|
+
# # Overview
|
|
3
|
+
#
|
|
4
|
+
# '''
|
|
5
|
+
|
|
6
|
+
__all__ = [
|
|
7
|
+
"Model",
|
|
8
|
+
"a",
|
|
9
|
+
"Triple",
|
|
10
|
+
"SolutionMappings",
|
|
11
|
+
"IndexingOptions",
|
|
12
|
+
"ValidationReport",
|
|
13
|
+
"Instance",
|
|
14
|
+
"Template",
|
|
15
|
+
"Argument",
|
|
16
|
+
"Parameter",
|
|
17
|
+
"Variable",
|
|
18
|
+
"RDFType",
|
|
19
|
+
"XSD",
|
|
20
|
+
"IRI",
|
|
21
|
+
"Literal",
|
|
22
|
+
"Prefix",
|
|
23
|
+
"BlankNode",
|
|
24
|
+
"explore",
|
|
25
|
+
"add_triples",
|
|
26
|
+
"MaplibException",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
import pathlib
|
|
30
|
+
from .maplib import *
|
|
31
|
+
from .adding_triples import add_triples
|
|
32
|
+
|
|
33
|
+
if (pathlib.Path(__file__).parent.resolve() / "graph_explorer").exists():
|
|
34
|
+
from .graph_explorer import explore
|
|
35
|
+
else:
|
|
36
|
+
|
|
37
|
+
def explore(
|
|
38
|
+
m: "Model",
|
|
39
|
+
host: str = "localhost",
|
|
40
|
+
port: int = 8000,
|
|
41
|
+
bind: str = "localhost",
|
|
42
|
+
popup=True,
|
|
43
|
+
fts=True,
|
|
44
|
+
fts_path:str="fts",
|
|
45
|
+
):
|
|
46
|
+
"""Starts a graph explorer session.
|
|
47
|
+
To run from Jupyter Notebook use:
|
|
48
|
+
>>> from maplib import explore
|
|
49
|
+
>>>
|
|
50
|
+
>>> server = explore(m)
|
|
51
|
+
You can later stop the server with
|
|
52
|
+
>>> server.stop()
|
|
53
|
+
|
|
54
|
+
:param m: The Model to explore
|
|
55
|
+
:param host: The hostname that we will point the browser to.
|
|
56
|
+
:param port: The port where the graph explorer webserver listens on.
|
|
57
|
+
:param bind: Bind to the following host / ip.
|
|
58
|
+
:param popup: Pop up the browser window.
|
|
59
|
+
:param fts: Enable full text search indexing
|
|
60
|
+
:param fts_path: Path to the fts index
|
|
61
|
+
"""
|
|
62
|
+
print("Contact Data Treehouse to try!")
|