OWL::Utils - what does not fit elsewhere
# load the Utils module use OWL::Utils; # find a file located somewhere in @INC my $file = OWL::Utils->find_file ('resource.file'); # get file from url $file = OWL::Utils->getHttpRequestByURL('http://sadiframework.org'); # remove leading/trailing whitespace from a string print OWL::Utils->trim(' http://sadiframework.org ');
General purpose utilities.
Edward Kawas (edward.kawas [at] gmail [dot] com) Martin Senger (martin.senger [at] gmail [dot] com)
Try to locate a file whose name is created from the $default_start and all elements of @names. If it does not exist, try to replace the $default_start by elements of @INC (one by one). If neither of them points to an existing file, go back and return the $default_start and all elements of @names (even - as we know now - such file does not exist).
$default_start
@names
There are two or more arguments: $default_start and @names.
returns a scalar of text obtained from the url or dies if there was no success
returns a string of RDF that represents a syntactically correct RDF file
trims whitespace from the begining and end of a string
To install OWL2Perl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OWL2Perl
CPAN shell
perl -MCPAN -e shell install OWL2Perl
For more information on module installation, please visit the detailed CPAN module installation guide.