changeset 7:10c67e473958 draft

Deleted selected files
author sem4j
date Fri, 27 Sep 2013 02:59:04 -0400
parents c1f5078f2a46
children bf6b5640e0a8
files sparql.py
diffstat 1 files changed, 0 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- a/sparql.py	Wed Sep 25 02:39:20 2013 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-# sparql.py version:0.1
-# USAGE: python sparql.py <str_select> <input_file> <output_file>
-
-import sys, os, commands
-
-argvs = sys.argv
-if (len(argvs) != 4):
-    print 'Number of argv is incorrect'
-    quit()
-
-out = open('query.tmp', 'w')
-out.write(argvs[1])
-out.close()
-
-os.system('mv ' + argvs[2] + ' ' + argvs[2] + '.nt')
-stdout = commands.getoutput('/Users/Ryota/Softwares/jena/apache-jena-2.11.0/bin/sparql --query=query.tmp --data=' + argvs[2] + '.nt -results=TSV')
-os.system('mv ' + argvs[2] + '.nt ' + argvs[2])
-
-out = open(argvs[3], 'w')
-out.write(stdout)
-out.close()