-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[absolete]Connectors' markers implementation -- 010, 060, 069 #157
Changes from 1 commit
e5d36f3
ffe85f7
0d943b7
a033b60
d73cc39
087d379
be8c7f6
af8e53b
317d1c9
aa7f30a
99d39c1
8cfbb65
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,8 @@ OPTIONS: | |
} | ||
|
||
upload_files () { | ||
|
||
EOProcess="" | ||
|
||
if [ -z "$1" ] ; then | ||
echo "(ERROR) Input file is not specified." >&2 | ||
usage | ||
|
@@ -119,7 +120,8 @@ upload_files () { | |
;; | ||
esac | ||
|
||
eval "$cmd" || { echo "(ERROR) An error occured while uploading file: $INPUTFILE" >&2; continue; } | ||
eval "$cmd" || { echo "(ERROR) An error occured while uploading file: $INPUTFILE" >&2; } & | ||
echo -ne "$EOProcess" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What happened here?
What are the first two changes are made for? Update: by the way, I see I made a comment to this change in #130; now I see addressed only the part concerning |
||
|
||
done | ||
|
||
|
@@ -128,6 +130,8 @@ upload_files () { | |
} | ||
|
||
upload_stream () { | ||
EOProcess="\0" | ||
|
||
local delimiter=$'\n' | ||
|
||
[ -z "$TYPE" ] && { echo "(ERROR) input data format is not specified. Exiting." >&2; return 2;} | ||
|
@@ -170,7 +174,7 @@ upload_stream () { | |
n=`ps axf | grep 'curl' | grep "$HOST:$PORT" | grep -v 'grep' | wc -l` | ||
done | ||
echo "$line" | $cmd &>/dev/null || { echo "(ERROR) An error occured while uploading stream data." >&2; continue; } & | ||
echo -n $'\6' | ||
echo -ne "$EOProcess" | ||
done | ||
done | ||
} | ||
|
@@ -209,6 +213,10 @@ do | |
DELIMITER=`echo -e $2` | ||
shift | ||
;; | ||
-E|--eop) | ||
EOP="$2" | ||
shift | ||
;; | ||
-u|--user) | ||
USER="$2" | ||
shift | ||
|
@@ -238,6 +246,7 @@ done | |
[ -z "$GRAPH" ] && GRAPH=http://$HOST:$PORT/$GRAPH_PATH | ||
[ -z "$DELIMITER" ] && DELIMITER=$'\0' | ||
[ "x$DELIMITER" = "xNOT SPECIFIED" ] && DELIMITER=$'\n' | ||
[ -n "$EOP" ] && EOProcess="$EOP" | ||
|
||
cmdTTL="curl --retry 3 -s -f -X POST --digest -u $USER:$PASSWD -H Content-Type:text/turtle -G http://$HOST:$PORT/sparql-graph-crud-auth --data-urlencode graph=$GRAPH" | ||
cmdSPARQL="curl --retry 3 -s -f -H 'Accept: text/csv' -G http://$HOST:$PORT/sparql --data-urlencode query" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EOProcess
is explicitly defined in bothupload_files
andupload_stream
. How user value is supposed to be used?