trustgraph-cli 2.1.11__tar.gz → 2.1.12__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.
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/PKG-INFO +1 -1
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/query_graph.py +48 -13
- trustgraph_cli-2.1.12/trustgraph/cli_version.py +1 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph_cli.egg-info/PKG-INFO +1 -1
- trustgraph_cli-2.1.11/trustgraph/cli_version.py +0 -1
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/README.md +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/pyproject.toml +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/setup.cfg +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/__init__.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/add_library_document.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/delete_collection.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/delete_config_item.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/delete_flow_blueprint.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/delete_kg_core.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/delete_mcp_tool.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/delete_tool.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/dump_msgpack.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/dump_queues.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/get_config_item.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/get_document_content.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/get_flow_blueprint.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/get_kg_core.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/graph_to_turtle.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/init_pulsar_manager.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/init_trustgraph.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/invoke_agent.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/invoke_document_embeddings.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/invoke_document_rag.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/invoke_embeddings.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/invoke_graph_embeddings.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/invoke_graph_rag.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/invoke_llm.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/invoke_mcp_tool.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/invoke_nlp_query.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/invoke_prompt.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/invoke_row_embeddings.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/invoke_rows_query.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/invoke_structured_query.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/list_collections.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/list_config_items.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/load_doc_embeds.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/load_kg_core.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/load_knowledge.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/load_sample_documents.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/load_structured_data.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/load_turtle.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/put_config_item.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/put_flow_blueprint.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/put_kg_core.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/remove_library_document.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/save_doc_embeds.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/set_collection.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/set_mcp_tool.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/set_prompt.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/set_token_costs.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/set_tool.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/show_config.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/show_flow_blueprints.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/show_flow_state.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/show_flows.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/show_graph.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/show_kg_cores.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/show_library_documents.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/show_library_processing.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/show_mcp_tools.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/show_parameter_types.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/show_processor_state.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/show_prompts.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/show_token_costs.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/show_token_rate.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/show_tools.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/start_flow.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/start_library_processing.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/stop_flow.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/stop_library_processing.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/unload_kg_core.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/verify_system_status.py +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph_cli.egg-info/SOURCES.txt +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph_cli.egg-info/dependency_links.txt +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph_cli.egg-info/entry_points.txt +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph_cli.egg-info/requires.txt +0 -0
- {trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph_cli.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: trustgraph-cli
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.12
|
|
4
4
|
Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
|
|
5
5
|
Author-email: "trustgraph.ai" <security@trustgraph.ai>
|
|
6
6
|
Project-URL: Homepage, https://github.com/trustgraph-ai/trustgraph
|
|
@@ -186,6 +186,12 @@ def build_quoted_triple_term(qt_subject, qt_subject_type,
|
|
|
186
186
|
def format_term(term_dict):
|
|
187
187
|
"""Format a term dict for display in space/pipe output formats.
|
|
188
188
|
|
|
189
|
+
Handles multiple wire format styles:
|
|
190
|
+
- Short form (send): {"t": "i", "i": "..."}, {"t": "l", "v": "..."}
|
|
191
|
+
- Long form (receive): {"type": "i", "iri": "..."}, {"type": "l", "value": "..."}
|
|
192
|
+
- Raw quoted triple: {"s": {...}, "p": {...}, "o": {...}} (no type wrapper)
|
|
193
|
+
- Stringified quoted triple in IRI: {"t": "i", "i": "{\"s\":...}"} (backend quirk)
|
|
194
|
+
|
|
189
195
|
Args:
|
|
190
196
|
term_dict: Wire-format term dict
|
|
191
197
|
|
|
@@ -195,25 +201,53 @@ def format_term(term_dict):
|
|
|
195
201
|
if not term_dict:
|
|
196
202
|
return ""
|
|
197
203
|
|
|
198
|
-
|
|
204
|
+
# Get type - handle both short and long form
|
|
205
|
+
t = term_dict.get("t") or term_dict.get("type")
|
|
206
|
+
|
|
199
207
|
if t == "i":
|
|
200
|
-
|
|
208
|
+
# IRI - handle both "i" and "iri" keys
|
|
209
|
+
iri_value = term_dict.get("i") or term_dict.get("iri", "")
|
|
210
|
+
# Check if IRI value is actually a stringified quoted triple (backend quirk)
|
|
211
|
+
if iri_value.startswith('{"s":') or iri_value.startswith("{\"s\":"):
|
|
212
|
+
try:
|
|
213
|
+
parsed = json.loads(iri_value)
|
|
214
|
+
if "s" in parsed and "p" in parsed and "o" in parsed:
|
|
215
|
+
# It's a stringified quoted triple - format it properly
|
|
216
|
+
s = format_term(parsed.get("s", {}))
|
|
217
|
+
p = format_term(parsed.get("p", {}))
|
|
218
|
+
o = format_term(parsed.get("o", {}))
|
|
219
|
+
return f"<<{s} {p} {o}>>"
|
|
220
|
+
except json.JSONDecodeError:
|
|
221
|
+
pass # Not valid JSON, treat as regular IRI
|
|
222
|
+
return iri_value
|
|
201
223
|
elif t == "l":
|
|
202
|
-
|
|
203
|
-
|
|
224
|
+
# Literal - handle both short and long form keys
|
|
225
|
+
value = term_dict.get("v") or term_dict.get("value", "")
|
|
204
226
|
result = f'"{value}"'
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
result += f'
|
|
227
|
+
# Language tag
|
|
228
|
+
lang = term_dict.get("ln") or term_dict.get("language")
|
|
229
|
+
if lang:
|
|
230
|
+
result += f'@{lang}'
|
|
231
|
+
else:
|
|
232
|
+
# Datatype
|
|
233
|
+
dt = term_dict.get("dt") or term_dict.get("datatype")
|
|
234
|
+
if dt:
|
|
235
|
+
result += f'^^{dt}'
|
|
209
236
|
return result
|
|
210
237
|
elif t == "t":
|
|
211
|
-
#
|
|
212
|
-
tr = term_dict.get("tr", {})
|
|
238
|
+
# Quoted triple - handle both "tr" and "triple" keys
|
|
239
|
+
tr = term_dict.get("tr") or term_dict.get("triple", {})
|
|
213
240
|
s = format_term(tr.get("s", {}))
|
|
214
241
|
p = format_term(tr.get("p", {}))
|
|
215
242
|
o = format_term(tr.get("o", {}))
|
|
216
243
|
return f"<<{s} {p} {o}>>"
|
|
244
|
+
elif t is None and "s" in term_dict and "p" in term_dict and "o" in term_dict:
|
|
245
|
+
# Raw quoted triple without type wrapper (has s, p, o keys directly)
|
|
246
|
+
s = format_term(term_dict.get("s", {}))
|
|
247
|
+
p = format_term(term_dict.get("p", {}))
|
|
248
|
+
o = format_term(term_dict.get("o", {}))
|
|
249
|
+
return f"<<{s} {p} {o}>>"
|
|
250
|
+
|
|
217
251
|
return str(term_dict)
|
|
218
252
|
|
|
219
253
|
|
|
@@ -526,8 +560,9 @@ def main():
|
|
|
526
560
|
else:
|
|
527
561
|
obj_term = None
|
|
528
562
|
|
|
529
|
-
# Graph is
|
|
530
|
-
|
|
563
|
+
# Graph is a plain IRI string, not a Term
|
|
564
|
+
# None = all graphs, "" = default graph only, "uri" = specific graph
|
|
565
|
+
graph_value = args.graph
|
|
531
566
|
|
|
532
567
|
query_graph(
|
|
533
568
|
url=args.api_url,
|
|
@@ -539,7 +574,7 @@ def main():
|
|
|
539
574
|
subject=subject_term,
|
|
540
575
|
predicate=predicate_term,
|
|
541
576
|
obj=obj_term,
|
|
542
|
-
graph=
|
|
577
|
+
graph=graph_value,
|
|
543
578
|
output_format=args.format,
|
|
544
579
|
headers=args.headers,
|
|
545
580
|
token=args.token,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.1.12"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: trustgraph-cli
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.12
|
|
4
4
|
Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
|
|
5
5
|
Author-email: "trustgraph.ai" <security@trustgraph.ai>
|
|
6
6
|
Project-URL: Homepage, https://github.com/trustgraph-ai/trustgraph
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.1.11"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph/cli/invoke_document_embeddings.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trustgraph_cli-2.1.11 → trustgraph_cli-2.1.12}/trustgraph_cli.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|