Opened 6 years ago

Closed 6 years ago

#1054 closed Bug Report (fixed)

query ingen using ingenish

Reported by: gromp Owned by: David Robillard
Priority: major Component: Ingen
Keywords: Cc:


i'd like to be able to query an ingen server using ingenish. this would be useful in scripting ingen; one use case is to ensure you aren't duplicating an existing path or referencing an bad path.

Change History (5)

comment:1 Changed 6 years ago by gromp

i took a look at the source and realized that ingenish has a undocumented "get" command from, i think I understand the output but it seems like sometimes the output changes from the same command. i'll try to actually document a case of this happening.

comment:2 Changed 6 years ago by gromp

Resolution: worksforme
Status: newclosed

ingenish get is working for me. if i grep -v @prefix | egrep -v ^$ I can get values that i actually want.

Last edited 6 years ago by gromp (previous) (diff)

comment:3 Changed 6 years ago by gromp

Resolution: worksforme
Status: closedreopened
Type: Feature RequestBug Report

it doesn't seem to work anymore. now no matter what I try to get, this gets printed out:

[prefixes omitted because trac thinks they're URLs]

[] a patch:Put ;
    patch:body [ ingen:sprungLayout false ] ;
    patch:subject <unix:///graph/> .

if I do the same thing using the interactive prompt I get two different results. The first time it shows the same as above, but the second time this happens:

> get /graph
error: at line 2 of <>:
Bad syntax (Prefix "patch:" not bound) at ^ in:
" _:b2
	a ^patch:Put ;
	patch:subject </graph/> ;
	patch:body [

comment:4 Changed 6 years ago by David Robillard

The latter is a bug in the Python where the namespace prefixes are not preserved across several parses, despite using the same rdflib model and namespace manager.

10 points for figuring that one out.

comment:5 Changed 6 years ago by David Robillard

Resolution: fixed
Status: reopenedclosed

Fixed in 653c34e/ingen

Note: See TracTickets for help on using tickets.