#!/bin/bash


start=18;stop=37;
EP='http://downloads.dbpedia.org:8099/xml/'


while IFS='' read -r line || [[ -n "$line" ]]; do
    echo "Text read from file: $line"
    SUBSTRING=$(echo $line | cut -c $start-$(($stop-1))) 
    echo $SUBSTRING
    VAR=$EP$SUBSTRING'.xml'
    wget $VAR
    #java -jar XML2RDF-0.2-jar-with-dependencies.jar -s $SUBSTRING'.xml'  -o $SUBSTRING.rdf
    VAR=''
done < "$1"


