@@ -22,9 +22,9 @@ def run(graph, options = {})
2222
2323 patch = LD ::Patch . parse ( options [ :patch ] , options )
2424
25- puts ( "\n SSE :\n " + patch . to_sse ) if options [ :debug ] || options [ :to_sse ]
25+ puts ( "\n SXP :\n " + patch . to_sse ) if options [ :debug ] || options [ :to_sxp ]
2626
27- unless options [ :to_sse ]
27+ unless options [ :to_sxp ]
2828 res = patch . execute ( graph , options )
2929 puts res . dump ( :ttl , base_uri : patch . base_uri , prefixes : patch . prefixes , standard_prefixes : true )
3030 end
@@ -35,7 +35,7 @@ opts = GetoptLong.new(
3535 [ "--execute" , "-e" , GetoptLong ::REQUIRED_ARGUMENT ] ,
3636 [ "--patch" , GetoptLong ::REQUIRED_ARGUMENT ] ,
3737 [ "--progress" , GetoptLong ::NO_ARGUMENT ] ,
38- [ "--to-sse " , GetoptLong ::NO_ARGUMENT ] ,
38+ [ "--to-sxp " , GetoptLong ::NO_ARGUMENT ] ,
3939 [ "--validate" , GetoptLong ::NO_ARGUMENT ] ,
4040 [ "--verbose" , GetoptLong ::NO_ARGUMENT ] ,
4141 [ "--help" , "-?" , GetoptLong ::NO_ARGUMENT ]
@@ -50,7 +50,7 @@ opts.each do |opt, arg|
5050 when '--execute' then options [ :patch ] = arg
5151 when '--patch' then options [ :patch ] = RDF ::Util ::File . open_file ( arg ) . read
5252 when '--progress' then options [ :debug ] ||= 2
53- when '--to-sse ' then options [ :to_sse ] = true
53+ when '--to-sxp ' then options [ :to_sxp ] = true
5454 when '--validate' then options [ :validate ] = true
5555 when '--verbose' then options [ :verbose ] = true
5656 when "--help"
@@ -61,7 +61,7 @@ opts.each do |opt, arg|
6161 puts " --execute,-e: Use option argument as the patch input"
6262 puts " --patch: Location of patch document"
6363 puts " --progress Display parse tree"
64- puts " --to-sse : Generate SSE for patch instead of running query"
64+ puts " --to-sxp : Generate S-Expression for patch instead of running query"
6565 puts " --validate: Validate patch document"
6666 puts " --verbose: Display details of processing"
6767 puts " --help,-?: This message"
0 commit comments