mustrd 0.2.0__py3-none-any.whl → 0.2.0a1__py3-none-any.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.
mustrd/mustrdGraphDb.py CHANGED
@@ -1,125 +1,128 @@
1
- """
2
- MIT License
3
-
4
- Copyright (c) 2023 Semantic Partners Ltd
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in all
14
- copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- SOFTWARE.
23
- """
24
-
25
- import urllib.parse
26
- import requests
27
- from rdflib import Graph, Literal
28
- from requests import ConnectionError, HTTPError, RequestException, Response
29
-
30
-
31
- # https://github.com/Semantic-partners/mustrd/issues/72
32
- def manage_graphdb_response(response: Response) -> str:
33
- content_string = response.content.decode("utf-8")
34
- if response.status_code == 200:
35
- return content_string
36
- elif response.status_code == 204:
37
- pass
38
- elif response.status_code == 401:
39
- raise HTTPError(f"GraphDB authentication error, status code: {response.status_code}, content: {content_string}")
40
- elif response.status_code == 406:
41
- raise HTTPError(f"GraphDB error, status code: {response.status_code}, content: {content_string}")
42
- else:
43
- raise RequestException(f"GraphDb error, status code: {response.status_code}, content: {content_string}")
44
-
45
-
46
- def upload_given(triple_store: dict, given: Graph):
47
- if given:
48
- try:
49
- graph = "default"
50
- if triple_store['input_graph']:
51
- graph = urllib.parse.urlencode({'graph': triple_store['input_graph']})
52
- url = f"{triple_store['url']}:{triple_store['port']}/repositories/{triple_store['repository']}" \
53
- f"/rdf-graphs/service?{graph}"
54
- # graph store PUT drop silently the graph or default and upload the payload
55
- # https://www.w3.org/TR/sparql11-http-rdf-update/#http-put
56
- manage_graphdb_response(requests.put(url=url,
57
- auth=(triple_store['username'], triple_store['password']),
58
- data=given.serialize(format="ttl"),
59
- headers={'Content-Type': 'text/turtle'}))
60
- except ConnectionError:
61
- raise
62
-
63
-
64
- def parse_bindings(bindings: dict = None) -> dict:
65
- return None if not bindings else {f"${k}": str(v.n3()) for k, v in bindings.items()}
66
-
67
-
68
- def execute_select(triple_store: dict, when: str, bindings: dict = None) -> str:
69
- return post_query(triple_store, when, "application/sparql-results+json", parse_bindings(bindings))
70
-
71
-
72
- def execute_construct(triple_store: dict, when: str, bindings: dict = None) -> Graph:
73
- return Graph().parse(data=post_query(triple_store, when, "text/turtle", parse_bindings(bindings)))
74
-
75
-
76
- def execute_update(triple_store: dict, when: str, bindings: dict = None) -> Graph:
77
- post_update_query(triple_store, when, parse_bindings(bindings))
78
- return Graph().parse(data=post_query(triple_store, "CONSTRUCT {?s ?p ?o} where { ?s ?p ?o }", 'text/turtle'))
79
-
80
-
81
- def post_update_query(triple_store: dict, query: str, params: dict = None) -> str:
82
- params = add_graph_to_params(params, triple_store["input_graph"])
83
- try:
84
- return manage_graphdb_response(requests.post(
85
- url=f"{triple_store['url']}:{triple_store['port']}/repositories/{triple_store['repository']}/statements",
86
- data=query,
87
- params=params,
88
- auth=(triple_store['username'], triple_store['password']),
89
- headers={'Content-Type': 'application/sparql-update'}))
90
- except (ConnectionError, OSError):
91
- raise
92
-
93
-
94
- def post_query(triple_store: dict, query: str, accept: str, params: dict = None) -> str:
95
- headers = {
96
- 'Content-Type': 'application/sparql-query',
97
- 'Accept': accept
98
- }
99
- params = add_graph_to_params(params, triple_store["input_graph"])
100
- try:
101
- return manage_graphdb_response(
102
- requests.post(url=f"{triple_store['url']}:{triple_store['port']}/repositories/{triple_store['repository']}",
103
- data=query,
104
- params=params,
105
- auth=(triple_store['username'], triple_store['password']),
106
- headers=headers))
107
- except (ConnectionError, OSError):
108
- raise
109
-
110
-
111
- def add_graph_to_params(params: dict, graph: Literal) -> dict:
112
- graph = graph or "http://rdf4j.org/schema/rdf4j#nil"
113
- if params:
114
- params['default-graph-uri'] = graph
115
- params['using-graph-uri'] = graph
116
- params['remove-graph-uri'] = graph
117
- params['insert-graph-uri'] = graph
118
- else:
119
- params = {
120
- 'default-graph-uri': graph,
121
- 'using-graph-uri': graph,
122
- 'remove-graph-uri': graph,
123
- 'insert-graph-uri': graph
124
- }
125
- return params
1
+ """
2
+ MIT License
3
+
4
+ Copyright (c) 2023 Semantic Partners Ltd
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
23
+ """
24
+
25
+ import urllib.parse
26
+ import requests
27
+ from rdflib import Graph, Literal
28
+ from requests import ConnectionError, HTTPError, RequestException, Response
29
+
30
+
31
+ # https://github.com/Semantic-partners/mustrd/issues/72
32
+ def manage_graphdb_response(response: Response) -> str:
33
+ content_string = response.content.decode("utf-8")
34
+ if response.status_code == 200:
35
+ return content_string
36
+ elif response.status_code == 204:
37
+ pass
38
+ elif response.status_code == 401:
39
+ raise HTTPError(f"GraphDB authentication error, status code: {response.status_code}, content: {content_string}")
40
+ elif response.status_code == 406:
41
+ raise HTTPError(f"GraphDB error, status code: {response.status_code}, content: {content_string}")
42
+ else:
43
+ raise RequestException(f"GraphDb error, status code: {response.status_code}, content: {content_string}")
44
+
45
+
46
+ def upload_given(triple_store: dict, given: Graph):
47
+ if given:
48
+ try:
49
+ graph = "default"
50
+ if triple_store['input_graph']:
51
+ graph = urllib.parse.urlencode({'graph': triple_store['input_graph']})
52
+ url = f"{triple_store['url']}:{triple_store['port']}/repositories/{triple_store['repository']}" \
53
+ f"/rdf-graphs/service?{graph}"
54
+ # graph store PUT drop silently the graph or default and upload the payload
55
+ # https://www.w3.org/TR/sparql11-http-rdf-update/#http-put
56
+ manage_graphdb_response(requests.put(url=url,
57
+ auth=(triple_store['username'], triple_store['password']),
58
+ data=given.serialize(format="ttl"),
59
+ headers={'Content-Type': 'text/turtle'}))
60
+ except ConnectionError:
61
+ raise
62
+
63
+
64
+ def parse_bindings(bindings: dict = None) -> dict:
65
+ return None if not bindings else {f"${k}": str(v.n3()) for k, v in bindings.items()}
66
+
67
+
68
+ def execute_select(triple_store: dict, given: Graph, when: str, bindings: dict = None) -> str:
69
+ upload_given(triple_store, given)
70
+ return post_query(triple_store, when, "application/sparql-results+json", parse_bindings(bindings))
71
+
72
+
73
+ def execute_construct(triple_store: dict, given: Graph, when: str, bindings: dict = None) -> Graph:
74
+ upload_given(triple_store, given)
75
+ return Graph().parse(data=post_query(triple_store, when, "text/turtle", parse_bindings(bindings)))
76
+
77
+
78
+ def execute_update(triple_store: dict, given: Graph, when: str, bindings: dict = None) -> Graph:
79
+ upload_given(triple_store, given)
80
+ post_update_query(triple_store, when, parse_bindings(bindings))
81
+ return Graph().parse(data=post_query(triple_store, "CONSTRUCT {?s ?p ?o} where { ?s ?p ?o }", 'text/turtle'))
82
+
83
+
84
+ def post_update_query(triple_store: dict, query: str, params: dict = None) -> str:
85
+ params = add_graph_to_params(params, triple_store["input_graph"])
86
+ try:
87
+ return manage_graphdb_response(requests.post(
88
+ url=f"{triple_store['url']}:{triple_store['port']}/repositories/{triple_store['repository']}/statements",
89
+ data=query,
90
+ params=params,
91
+ auth=(triple_store['username'], triple_store['password']),
92
+ headers={'Content-Type': 'application/sparql-update'}))
93
+ except (ConnectionError, OSError):
94
+ raise
95
+
96
+
97
+ def post_query(triple_store: dict, query: str, accept: str, params: dict = None) -> str:
98
+ headers = {
99
+ 'Content-Type': 'application/sparql-query',
100
+ 'Accept': accept
101
+ }
102
+ params = add_graph_to_params(params, triple_store["input_graph"])
103
+ try:
104
+ return manage_graphdb_response(
105
+ requests.post(url=f"{triple_store['url']}:{triple_store['port']}/repositories/{triple_store['repository']}",
106
+ data=query,
107
+ params=params,
108
+ auth=(triple_store['username'], triple_store['password']),
109
+ headers=headers))
110
+ except (ConnectionError, OSError):
111
+ raise
112
+
113
+
114
+ def add_graph_to_params(params: dict, graph: Literal) -> dict:
115
+ graph = graph or "http://rdf4j.org/schema/rdf4j#nil"
116
+ if params:
117
+ params['default-graph-uri'] = graph
118
+ params['using-graph-uri'] = graph
119
+ params['remove-graph-uri'] = graph
120
+ params['insert-graph-uri'] = graph
121
+ else:
122
+ params = {
123
+ 'default-graph-uri': graph,
124
+ 'using-graph-uri': graph,
125
+ 'remove-graph-uri': graph,
126
+ 'insert-graph-uri': graph
127
+ }
128
+ return params
mustrd/mustrdRdfLib.py CHANGED
@@ -1,56 +1,56 @@
1
- """
2
- MIT License
3
-
4
- Copyright (c) 2023 Semantic Partners Ltd
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in all
14
- copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- SOFTWARE.
23
- """
24
-
25
- from pyparsing import ParseException
26
- from rdflib import Graph
27
- from requests import RequestException
28
-
29
-
30
- def execute_select(triple_store: dict, given: Graph, when: str, bindings: dict = None) -> str:
31
- try:
32
- return given.query(when, initBindings=bindings).serialize(format="json").decode("utf-8")
33
- except ParseException:
34
- raise
35
- except Exception as e:
36
- raise RequestException(e)
37
-
38
-
39
- def execute_construct(triple_store: dict, given: Graph, when: str, bindings: dict = None) -> Graph:
40
- try:
41
- return given.query(when, initBindings=bindings).graph
42
- except ParseException:
43
- raise
44
- except Exception as e:
45
- raise RequestException(e)
46
-
47
-
48
- def execute_update(triple_store: dict, given: Graph, when: str, bindings: dict = None) -> Graph:
49
- try:
50
- result = given
51
- result.update(when, initBindings=bindings)
52
- return result
53
- except ParseException:
54
- raise
55
- except Exception as e:
56
- raise RequestException(e)
1
+ """
2
+ MIT License
3
+
4
+ Copyright (c) 2023 Semantic Partners Ltd
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
23
+ """
24
+
25
+ from pyparsing import ParseException
26
+ from rdflib import Graph
27
+ from requests import RequestException
28
+
29
+
30
+ def execute_select(triple_store: dict, given: Graph, when: str, bindings: dict = None) -> str:
31
+ try:
32
+ return given.query(when, initBindings=bindings).serialize(format="json").decode("utf-8")
33
+ except ParseException:
34
+ raise
35
+ except Exception as e:
36
+ raise RequestException(e)
37
+
38
+
39
+ def execute_construct(triple_store: dict, given: Graph, when: str, bindings: dict = None) -> Graph:
40
+ try:
41
+ return given.query(when, initBindings=bindings).graph
42
+ except ParseException:
43
+ raise
44
+ except Exception as e:
45
+ raise RequestException(e)
46
+
47
+
48
+ def execute_update(triple_store: dict, given: Graph, when: str, bindings: dict = None) -> Graph:
49
+ try:
50
+ result = given
51
+ result.update(when, initBindings=bindings)
52
+ return result
53
+ except ParseException:
54
+ raise
55
+ except Exception as e:
56
+ raise RequestException(e)
mustrd/namespace.py CHANGED
@@ -1,125 +1,104 @@
1
- """
2
- MIT License
3
-
4
- Copyright (c) 2023 Semantic Partners Ltd
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in all
14
- copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- SOFTWARE.
23
- """
24
-
25
- from rdflib import URIRef
26
- from rdflib.namespace import DefinedNamespace, Namespace
27
-
28
- # Namespace for the test specifications
29
- class MUST(DefinedNamespace):
30
- _NS = Namespace("https://mustrd.com/model/")
31
-
32
- # Specification classes
33
- TestSpec: URIRef
34
- SelectSparql: URIRef
35
- ConstructSparql: URIRef
36
- UpdateSparql: URIRef
37
- AnzoQueryDrivenUpdateSparql: URIRef
38
- AskSparql: URIRef
39
- DescribeSparql: URIRef
40
-
41
- # Specification properties
42
- given: URIRef
43
- when: URIRef
44
- then: URIRef
45
- dataSource: URIRef
46
- file: URIRef
47
- fileName: URIRef
48
- queryFolder: URIRef
49
- queryName: URIRef
50
- dataSourceUrl: URIRef
51
- queryText: URIRef
52
- queryType: URIRef
53
- hasStatement: URIRef
54
- hasRow: URIRef
55
- hasBinding: URIRef
56
- variable: URIRef
57
- boundValue: URIRef
58
- focus:URIRef
59
-
60
- # Specification data sources
61
- TableDataset: URIRef
62
- StatementsDataset: URIRef
63
- FileDataset: URIRef
64
- HttpDataset: URIRef
65
- TextSparqlSource: URIRef
66
- FileSparqlSource: URIRef
67
- FolderSparqlSource: URIRef
68
- FolderDataset: URIRef
69
- EmptyGraph: URIRef
70
- EmptyTable: URIRef
71
- InheritedDataset: URIRef
72
-
73
- # runner uris
74
- fileSource: URIRef
75
- loadedFromFile: URIRef
76
- specSourceFile: URIRef
77
- specFileName: URIRef
78
-
79
- # Triple store config parameters
80
- # Anzo
81
- AnzoGraphmartDataset: URIRef
82
- AnzoQueryBuilderSparqlSource: URIRef
83
- AnzoGraphmartStepSparqlSource: URIRef
84
- AnzoGraphmartLayerSparqlSource: URIRef
85
- AnzoGraphmartQueryDrivenTemplatedStepSparqlSource: URIRef
86
- anzoQueryStep: URIRef
87
- anzoGraphmartLayer: URIRef
88
-
89
- graphmart: URIRef
90
- layer: URIRef
91
-
92
-
93
- # FIXME: There is nothing to do that by default?
94
- @classmethod
95
- def get_local_name(cls, uri: URIRef):
96
- return str(uri).split(cls._NS)[1]
97
-
98
- # Namespace for triplestores
99
- class TRIPLESTORE(DefinedNamespace):
100
- _NS = Namespace("https://mustrd.com/triplestore/")
101
- RdfLib: URIRef
102
- GraphDb: URIRef
103
- Anzo: URIRef
104
- ExternalTripleStore: URIRef
105
- InternalTripleStore: URIRef
106
-
107
- gqeURI: URIRef
108
- inputGraph: URIRef
109
- outputGraph: URIRef # anzo specials? # Triple store config parameters
110
- url: URIRef
111
- port: URIRef
112
- username: URIRef
113
- password: URIRef
114
- repository: URIRef
115
-
116
- # namespace for pytest_mustrd config
117
- class MUSTRDTEST(DefinedNamespace):
118
- _NS = Namespace("https://mustrd.com/mustrdTest/")
119
- MustrdTest: URIRef
120
- hasSpecPath: URIRef
121
- hasDataPath: URIRef
122
- triplestoreSpecPath: URIRef
123
- hasPytestPath: URIRef
124
- filterOnTripleStore: URIRef
125
-
1
+ """
2
+ MIT License
3
+
4
+ Copyright (c) 2023 Semantic Partners Ltd
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
23
+ """
24
+
25
+ from rdflib import URIRef
26
+ from rdflib.namespace import DefinedNamespace, Namespace
27
+
28
+
29
+ class MUST(DefinedNamespace):
30
+ _NS = Namespace("https://mustrd.com/model/")
31
+
32
+ # Specification classes
33
+ TestSpec: URIRef
34
+ SelectSparql: URIRef
35
+ ConstructSparql: URIRef
36
+ UpdateSparql: URIRef
37
+ AskSparql: URIRef
38
+ DescribeSparql: URIRef
39
+
40
+ # Specification properties
41
+ given: URIRef
42
+ when: URIRef
43
+ then: URIRef
44
+ inputGraph: URIRef
45
+ outputGraph: URIRef # anzo specials?
46
+ dataSource: URIRef
47
+ file: URIRef
48
+ fileName: URIRef
49
+ queryFolder: URIRef
50
+ queryName: URIRef
51
+ dataSourceUrl: URIRef
52
+ queryText: URIRef
53
+ queryType: URIRef
54
+ hasStatement: URIRef
55
+ hasRow: URIRef
56
+ hasBinding: URIRef
57
+ variable: URIRef
58
+ boundValue: URIRef
59
+
60
+ # Specification data sources
61
+ TableDataset: URIRef
62
+ StatementsDataset: URIRef
63
+ FileDataset: URIRef
64
+ HttpDataset: URIRef
65
+ TextSparqlSource: URIRef
66
+ FileSparqlSource: URIRef
67
+ FolderSparqlSource: URIRef
68
+ FolderDataset: URIRef
69
+ EmptyGraph: URIRef
70
+ EmptyTable: URIRef
71
+ InheritedDataset: URIRef
72
+
73
+ # runner uris
74
+ fileSource: URIRef
75
+ loadedFromFile: URIRef
76
+
77
+ # Triple store config parameters
78
+ url: URIRef
79
+ port: URIRef
80
+ username: URIRef
81
+ password: URIRef
82
+ inputGraph: URIRef
83
+ repository: URIRef
84
+
85
+ # RDFLib
86
+ RdfLib: URIRef
87
+ RdfLibConfig: URIRef
88
+
89
+ # Anzo
90
+ Anzo: URIRef
91
+ AnzoConfig: URIRef
92
+ AnzoGraphmartDataset: URIRef
93
+ AnzoQueryBuilderSparqlSource: URIRef
94
+ AnzoGraphmartStepSparqlSource: URIRef
95
+ queryStepUri: URIRef
96
+
97
+
98
+ graphmart: URIRef
99
+ layer: URIRef
100
+ gqeURI: URIRef
101
+
102
+ # GraphDb
103
+ GraphDb: URIRef
104
+ GraphDbConfig: URIRef