maplib 0.19.3__cp310-abi3-win_amd64.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,75 @@
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
+ "rdf",
21
+ "rdfs",
22
+ "owl",
23
+ "IRI",
24
+ "Literal",
25
+ "Prefix",
26
+ "BlankNode",
27
+ "explore",
28
+ "add_triples",
29
+ "generate_templates",
30
+ "MaplibException",
31
+ ]
32
+
33
+ import pathlib
34
+ from importlib.metadata import version
35
+ from .maplib import *
36
+ from .adding_triples import add_triples
37
+ from .template_generator import generate_templates
38
+
39
+ """
40
+ http://www.w3.org/1999/02/22-rdf-syntax-ns#type
41
+ """
42
+ a = rdf.type
43
+
44
+ if (pathlib.Path(__file__).parent.resolve() / "graph_explorer").exists():
45
+ from .graph_explorer import explore
46
+ else:
47
+
48
+ def explore(
49
+ m: "Model",
50
+ host: str = "localhost",
51
+ port: int = 8000,
52
+ bind: str = "localhost",
53
+ popup=True,
54
+ fts=True,
55
+ fts_path:str="fts",
56
+ ):
57
+ """Starts a graph explorer session.
58
+ To run from Jupyter Notebook use:
59
+ >>> from maplib import explore
60
+ >>>
61
+ >>> server = explore(m)
62
+ You can later stop the server with
63
+ >>> server.stop()
64
+
65
+ :param m: The Model to explore
66
+ :param host: The hostname that we will point the browser to.
67
+ :param port: The port where the graph explorer webserver listens on.
68
+ :param bind: Bind to the following host / ip.
69
+ :param popup: Pop up the browser window.
70
+ :param fts: Enable full text search indexing
71
+ :param fts_path: Path to the fts index
72
+ """
73
+ print("Contact Data Treehouse to try!")
74
+
75
+ __version__ = version("maplib")