maplib 0.18.18__cp310-abi3-macosx_11_0_arm64.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 ADDED
@@ -0,0 +1 @@
1
+ *.so
maplib/__init__.py ADDED
@@ -0,0 +1,67 @@
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
+ "generate_templates",
27
+ "MaplibException",
28
+ ]
29
+
30
+ import pathlib
31
+ from importlib.metadata import version
32
+ from .maplib import *
33
+ from .adding_triples import add_triples
34
+ from .template_generator import generate_templates
35
+
36
+ if (pathlib.Path(__file__).parent.resolve() / "graph_explorer").exists():
37
+ from .graph_explorer import explore
38
+ else:
39
+
40
+ def explore(
41
+ m: "Model",
42
+ host: str = "localhost",
43
+ port: int = 8000,
44
+ bind: str = "localhost",
45
+ popup=True,
46
+ fts=True,
47
+ fts_path:str="fts",
48
+ ):
49
+ """Starts a graph explorer session.
50
+ To run from Jupyter Notebook use:
51
+ >>> from maplib import explore
52
+ >>>
53
+ >>> server = explore(m)
54
+ You can later stop the server with
55
+ >>> server.stop()
56
+
57
+ :param m: The Model to explore
58
+ :param host: The hostname that we will point the browser to.
59
+ :param port: The port where the graph explorer webserver listens on.
60
+ :param bind: Bind to the following host / ip.
61
+ :param popup: Pop up the browser window.
62
+ :param fts: Enable full text search indexing
63
+ :param fts_path: Path to the fts index
64
+ """
65
+ print("Contact Data Treehouse to try!")
66
+
67
+ __version__ = version("maplib")