-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathcheckOutputSyntax.sh
More file actions
executable file
·34 lines (31 loc) · 983 Bytes
/
checkOutputSyntax.sh
File metadata and controls
executable file
·34 lines (31 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
#===============================================================================
#
# FILE: checkOutputSyntax.sh
#
# USAGE: ./checkOutputSyntax.sh
#
# DESCRIPTION: Apply rapper to check the syntax of turtle files created
# by the umls2rdf.py conversion.
#
# OPTIONS: --- First argument is output path (default = 'output')
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Darren L. Weber, Ph.D. (), darren.weber@stanford.edu
# COMPANY: Stanford University
# VERSION: 1.0
# CREATED: 03/29/2013 11:28:18 AM PDT
# REVISION: ---
#===============================================================================
outputPath='output'
if [ "$1" != "" ]; then
outputPath="$1"
fi
if which rapper >/dev/null 2>&1; then
for ttlFile in ${outputPath}/*.ttl; do
echo
rapper -i turtle -c --show-graphs --show-namespaces $ttlFile
done
echo
fi