#! /bin/bash

uri_file=$1

LOCAL_DIR="./data"
rm -r "./data/prop"
mkdir "./data/prop"

for domain in `find ./data/uris -type f | sed "s|./data/uris/||"` ; do
	cat ./data/rdf/$domain.sfilter.nt | cut -f2 -d '>' | sed 's/ <//' > ./data/prop/$domain.sfilter.lst
	cat ./data/rdf/$domain.all.nt | cut -f2 -d '>' | sed 's/ <//' > ./data/prop/$domain.all.lst
	sort ./data/prop/$domain.sfilter.lst | uniq -c | sort -nr > ./data/prop/count_sfilter_$domain.lst
	sort ./data/prop/$domain.all.lst | uniq -c | sort -nr > ./data/prop/count_all_$domain.lst
	
done



