Sha256: 06d7c6bce2cac30670302b76b9543ae6196ab89e9a9cea3694476a30b2b649e6

Contents?: true

Size: 257 Bytes

Versions: 5

Compression:

Stored size: 257 Bytes

Contents

#!/usr/bin/env ruby
#
# Sample script for querying Semantic MediaWiki data
#

require './lib/media_wiki'

mw = MediaWiki::Gateway.new(ARGV[0])

params = []
i = 2
until i == ARGV.length
	params << ARGV[i]
	i += 1
end

puts mw.semantic_query(ARGV[1], params)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mediawiki-gateway-0.6.2 samples/semantic_query.rb
mediawiki-gateway-0.6.1 samples/semantic_query.rb
mediawiki-gateway-0.6.0 samples/semantic_query.rb
mediawiki-gateway-0.5.2 samples/semantic_query.rb
mediawiki-gateway-0.5.1 script/semantic_query.rb