#!/bin/sh # # pass this script a filename of ntriples data and get back a # little report about the types of resources in the rdf, e.g. # # ed@curry:~/$ rdfsum oreily_catalog.nt # 6803 # 5861 # 4564 # 4065 # 2100 # 2023 # grep 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type' $1 \ | cut -f 3 -d " " \ | sort \ | uniq -c \ | sort -rn