[MOBY-guts] biomoby commit
Eddie Kawas
kawas at dev.open-bio.org
Thu Feb 21 17:15:40 UTC 2008
kawas
Thu Feb 21 12:15:40 EST 2008
Update of /home/repository/moby/moby-live/Perl/MOBY-Server/lib/MOBY/RDF/Ontologies/Cache
In directory dev.open-bio.org:/tmp/cvs-serv26411/Perl/MOBY-Server/lib/MOBY/RDF/Ontologies/Cache
Modified Files:
NamespaceCache.pm ServiceCache.pm CacheUtils.pm
ServiceTypeCache.pm ObjectCache.pm
Log Message:
update of pod - found warnings when i ran podchecker so i am correcting them
moby-live/Perl/MOBY-Server/lib/MOBY/RDF/Ontologies/Cache NamespaceCache.pm,1.1,1.2 ServiceCache.pm,1.1,1.2 CacheUtils.pm,1.1,1.2 ServiceTypeCache.pm,1.1,1.2 ObjectCache.pm,1.1,1.2
===================================================================
RCS file: /home/repository/moby/moby-live/Perl/MOBY-Server/lib/MOBY/RDF/Ontologies/Cache/NamespaceCache.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Perl/MOBY-Server/lib/MOBY/RDF/Ontologies/Cache/NamespaceCache.pm 2008/02/21 00:21:27 1.1
+++ /home/repository/moby/moby-live/Perl/MOBY-Server/lib/MOBY/RDF/Ontologies/Cache/NamespaceCache.pm 2008/02/21 17:15:40 1.2
@@ -36,14 +36,14 @@
=head1 SYNOPSIS
use MOBY::RDF::Ontologies::Cache::NamespaceCache;
-
+
# required
my $cachedir = "/tmp/";
-
+
# optional - gets default values from MOBY::Client::Central
my $url = "http://moby.ucalgary.ca/moby/MOBY-Central.pl";
my $uri = "http://moby.ucalgary.ca/MOBY/Central";
-
+
my $x = MOBY::RDF::Ontologies::Cache::NamespaceCache->new(
endpoint => $url,
namespace => $uri,
@@ -52,17 +52,19 @@
# create the namespace cache
$x->create_namespace_cache();
-
+
# update the cache
$x->update_namespace_cache();
-
+
# obtain the RDF in a thread safe manner
my $rdf = $x->get_rdf
-
+
=head1 DESCRIPTION
This module aids in the creation and maintainence of a namespace cache for use in generating datatype RDF
+=cut
+
=head1 AUTHORS
Edward Kawas (edward.kawas [at] gmail [dot] com)
===================================================================
RCS file: /home/repository/moby/moby-live/Perl/MOBY-Server/lib/MOBY/RDF/Ontologies/Cache/ServiceCache.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Perl/MOBY-Server/lib/MOBY/RDF/Ontologies/Cache/ServiceCache.pm 2008/02/21 00:21:27 1.1
+++ /home/repository/moby/moby-live/Perl/MOBY-Server/lib/MOBY/RDF/Ontologies/Cache/ServiceCache.pm 2008/02/21 17:15:40 1.2
@@ -36,14 +36,14 @@
=head1 SYNOPSIS
use MOBY::RDF::Ontologies::Cache::ServiceCache;
-
+
# required
my $cachedir = "/tmp/";
-
+
# optional - gets default values from MOBY::Client::Central
my $url = "http://moby.ucalgary.ca/moby/MOBY-Central.pl";
my $uri = "http://moby.ucalgary.ca/MOBY/Central";
-
+
my $x = MOBY::RDF::Ontologies::Cache::ServiceCache->new(
endpoint => $url,
namespace => $uri,
@@ -52,17 +52,19 @@
# create the service cache
$x->create_service_cache();
-
+
# update the cache
$x->update_service_cache();
-
+
# obtain the RDF in a thread safe manner
my $rdf = $x->get_rdf
-
+
=head1 DESCRIPTION
This module aids in the creation and maintainence of a service instance cache for use in generating service RDF
+=cut
+
=head1 AUTHORS
Edward Kawas (edward.kawas [at] gmail [dot] com)
===================================================================
RCS file: /home/repository/moby/moby-live/Perl/MOBY-Server/lib/MOBY/RDF/Ontologies/Cache/CacheUtils.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Perl/MOBY-Server/lib/MOBY/RDF/Ontologies/Cache/CacheUtils.pm 2008/02/21 00:21:27 1.1
+++ /home/repository/moby/moby-live/Perl/MOBY-Server/lib/MOBY/RDF/Ontologies/Cache/CacheUtils.pm 2008/02/21 17:15:40 1.2
@@ -33,36 +33,38 @@
my $cachedir = "C:/tmp/";
my $url = "http://moby.ucalgary.ca/moby/MOBY-Central.pl";
my $uri = "http://moby.ucalgary.ca/MOBY/Central";
-
+
my $x = MOBY::RDF::Ontologies::Cache::CacheUtils->new(
-
+
endpoint => $url,
namespace => $uri,
cache => $cachedir,
-
+
);
-
+
# create the cache directory
$x->create_cache_dirs;
-
+
# check if the cache exists
print "Cache exists!\n" if $x->cache_exists();
print "Cache doesnt exist!\n" unless $x->cache_exists();
-
+
# get the cache dir
print "The cache dir is: " . $x->cachedir . "\n";
-
+
# get the exact location of all cache dirs
my $dirs = $x->get_cache_dirs();
while ( ( $key, $value ) = each( %{$dirs} ) ) {
print "$key is stored in $value\n";
}
-
-
+
+
=head1 DESCRIPTION
This module aids in the creation and maintainence of cache directories
+=cut
+
=head1 AUTHORS
Edward Kawas (edward.kawas [at] gmail [dot] com)
===================================================================
RCS file: /home/repository/moby/moby-live/Perl/MOBY-Server/lib/MOBY/RDF/Ontologies/Cache/ServiceTypeCache.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Perl/MOBY-Server/lib/MOBY/RDF/Ontologies/Cache/ServiceTypeCache.pm 2008/02/21 00:21:27 1.1
+++ /home/repository/moby/moby-live/Perl/MOBY-Server/lib/MOBY/RDF/Ontologies/Cache/ServiceTypeCache.pm 2008/02/21 17:15:40 1.2
@@ -36,14 +36,14 @@
=head1 SYNOPSIS
use MOBY::RDF::Ontologies::Cache::ServiceTypeCache;
-
+
# required
my $cachedir = "/tmp/";
-
+
# optional - gets default values from MOBY::Client::Central
my $url = "http://moby.ucalgary.ca/moby/MOBY-Central.pl";
my $uri = "http://moby.ucalgary.ca/MOBY/Central";
-
+
my $x = MOBY::RDF::Ontologies::Cache::ServiceTypeCache->new(
endpoint => $url,
namespace => $uri,
@@ -52,17 +52,19 @@
# create the service type cache
$x->create_service_type_cache();
-
+
# update the cache
$x->update_service_type_cache();
-
+
# obtain the RDF in a thread safe manner
my $rdf = $x->get_rdf
-
+
=head1 DESCRIPTION
This module aids in the creation and maintainence of a service type cache for use in generating datatype RDF
+=cut
+
=head1 AUTHORS
Edward Kawas (edward.kawas [at] gmail [dot] com)
===================================================================
RCS file: /home/repository/moby/moby-live/Perl/MOBY-Server/lib/MOBY/RDF/Ontologies/Cache/ObjectCache.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Perl/MOBY-Server/lib/MOBY/RDF/Ontologies/Cache/ObjectCache.pm 2008/02/21 00:21:27 1.1
+++ /home/repository/moby/moby-live/Perl/MOBY-Server/lib/MOBY/RDF/Ontologies/Cache/ObjectCache.pm 2008/02/21 17:15:40 1.2
@@ -36,14 +36,14 @@
=head1 SYNOPSIS
use MOBY::RDF::Ontologies::Cache::ObjectCache;
-
+
# required
my $cachedir = "/tmp/";
-
+
# optional - gets default values from MOBY::Client::Central
my $url = "http://moby.ucalgary.ca/moby/MOBY-Central.pl";
my $uri = "http://moby.ucalgary.ca/MOBY/Central";
-
+
my $x = MOBY::RDF::Ontologies::Cache::ObjectCache->new(
endpoint => $url,
namespace => $uri,
@@ -52,17 +52,19 @@
# create the object cache
$x->create_object_cache();
-
+
# update the cache
$x->update_object_cache();
# obtain the RDF in a thread safe manner
my $rdf = $x->get_rdf
-
+
=head1 DESCRIPTION
This module aids in the creation and maintainence of a datatype cache for use in generating datatype RDF
+=cut
+
=head1 AUTHORS
Edward Kawas (edward.kawas [at] gmail [dot] com)
More information about the MOBY-guts
mailing list