Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Parse out the year and version instead of fixed location #2

Merged
merged 1 commit into from
May 22, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tls2_StatedRelationshipsToOwlKRSS_Script_INT.pl
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,9 @@ sub assigndatafiles
# variable for year of release $year
# variable for release version $release
#----------------------------------------
$year = substr($conceptsFileName, 26, 4);
$release = substr($conceptsFileName, 26, 8);
$release = $conceptsFileName ;
$release =~ s/.*_(\d+)\.txt/$1/;
$year = substr($release, 0, 4);

#-------------------------------------------------------------------------------
# File 1: The RF2 concepts table snapshot.
Expand Down