incubator-triplesoup-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leosim...@apache.org
Subject svn commit: r528394 [8/35] - in /incubator/triplesoup/donations/TRIPLES-3-RDFStore: ./ dbms/ dbms/client/ dbms/client/t/ dbms/dbmsproxy/ dbms/deamon/ dbms/doc/ dbms/include/ dbms/libdbms/ dbms/utils/ doc/ include/ lib/ lib/DBD/ lib/RDFStore/ lib/RDFSto...
Date Fri, 13 Apr 2007 08:56:16 GMT
Added: incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/.cvsignore
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/.cvsignore?view=auto&rev=528394
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/.cvsignore (added)
+++ incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/.cvsignore Fri Apr 13 01:56:01
2007
@@ -0,0 +1,3 @@
+dbmsd.sh
+start_dbserver
+stop_dbserver

Added: incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/dbcat_raw
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/dbcat_raw?view=auto&rev=528394
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/dbcat_raw (added)
+++ incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/dbcat_raw Fri Apr 13 01:56:01
2007
@@ -0,0 +1,102 @@
+#!/usr/local/bin/perl -I ../../lib
+##############################################################################
+# 	Copyright (c) 2000-2006 All rights reserved
+# 	Alberto Reggiori <areggiori@webweaving.org>
+#	Dirk-Willem van Gulik <dirkx@webweaving.org>
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer. 
+#
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in
+#    the documentation and/or other materials provided with the
+#    distribution.
+#
+# 3. The end-user documentation included with the redistribution,
+#    if any, must include the following acknowledgment:
+#       "This product includes software developed by 
+#        Alberto Reggiori <areggiori@webweaving.org> and
+#        Dirk-Willem van Gulik <dirkx@webweaving.org>."
+#    Alternately, this acknowledgment may appear in the software itself,
+#    if and wherever such third-party acknowledgments normally appear.
+#
+# 4. All advertising materials mentioning features or use of this software
+#    must display the following acknowledgement:
+#    This product includes software developed by the University of
+#    California, Berkeley and its contributors. 
+#
+# 5. Neither the name of the University nor the names of its contributors
+#    may be used to endorse or promote products derived from this software
+#    without specific prior written permission.
+#
+# 6. Products derived from this software may not be called "RDFStore"
+#    nor may "RDFStore" appear in their names without prior written
+#    permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+# OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+# ====================================================================
+#
+# This software consists of work developed by Alberto Reggiori and 
+# Dirk-Willem van Gulik. The RDF specific part is based on public 
+# domain software written at the Stanford University Database Group by 
+# Sergey Melnik. For more information on the RDF API Draft work, 
+# please see <http://www-db.stanford.edu/~melnik/rdf/api.html>
+# The DBMS TCP/IP server part is based on software originally written
+# by Dirk-Willem van Gulik for Web Weaving Internet Engineering m/v Enschede,
+# The Netherlands.
+#
+##############################################################################
+use DBMS;
+use Fcntl;
+my $host= shift or 'localhost';
+
+my $more_than_one = ($#ARGV==0) ? 0 : 1;
+
+while(1) {
+	last unless $ARGV[0]  =~ m/^-/;
+	if ($1 eq '-l') {
+		$more_than_one = 0;
+		}
+	else {
+		@ARGV=(); 
+		last;
+		};
+	};
+
+if($#ARGV<0) {
+	print STDERR "Syntax: $0 <dbms_host> [-l] <file [files]>\n";
+	exit 1;
+	};
+
+
+foreach $file (@ARGV) {
+	$file =~ s/\.([dbm]+)$//;
+	tie %tmp, "DBMS",$file,O_RDONLY ,$host
+		or die "Could not open $file: $! - $DBMS::ERROR";
+
+	while(($k,$v)=each %tmp) {
+
+		print $file." "
+			if $more_than_one;
+
+		print "$k =\t$v\n";
+		};
+	untie %tmp
+	};
+

Propchange: incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/dbcat_raw
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/dbms_mirror.pl
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/dbms_mirror.pl?view=auto&rev=528394
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/dbms_mirror.pl (added)
+++ incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/dbms_mirror.pl Fri Apr 13
01:56:01 2007
@@ -0,0 +1,191 @@
+#!/usr/bin/perl
+##############################################################################
+# 	Copyright (c) 2000-2006 All rights reserved
+# 	Alberto Reggiori <areggiori@webweaving.org>
+#	Dirk-Willem van Gulik <dirkx@webweaving.org>
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer. 
+#
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in
+#    the documentation and/or other materials provided with the
+#    distribution.
+#
+# 3. The end-user documentation included with the redistribution,
+#    if any, must include the following acknowledgment:
+#       "This product includes software developed by 
+#        Alberto Reggiori <areggiori@webweaving.org> and
+#        Dirk-Willem van Gulik <dirkx@webweaving.org>."
+#    Alternately, this acknowledgment may appear in the software itself,
+#    if and wherever such third-party acknowledgments normally appear.
+#
+# 4. All advertising materials mentioning features or use of this software
+#    must display the following acknowledgement:
+#    This product includes software developed by the University of
+#    California, Berkeley and its contributors. 
+#
+# 5. Neither the name of the University nor the names of its contributors
+#    may be used to endorse or promote products derived from this software
+#    without specific prior written permission.
+#
+# 6. Products derived from this software may not be called "RDFStore"
+#    nor may "RDFStore" appear in their names without prior written
+#    permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+# OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+# ====================================================================
+#
+# This software consists of work developed by Alberto Reggiori and 
+# Dirk-Willem van Gulik. The RDF specific part is based on public 
+# domain software written at the Stanford University Database Group by 
+# Sergey Melnik. For more information on the RDF API Draft work, 
+# please see <http://www-db.stanford.edu/~melnik/rdf/api.html>
+# The DBMS TCP/IP server part is based on software originally written
+# by Dirk-Willem van Gulik for Web Weaving Internet Engineering m/v Enschede,
+# The Netherlands.
+#
+##############################################################################
+
+use DBMS;
+use strict;
+
+my $Usage =<<EOU;
+
+Usage is:
+
+    $0 [-h] [-v] 	dbms://host1:port/database1     dbms://host2:port/database2
+
+Copy a source DBMS database to another either local or remote.
+
+[-noflush]
+
+	Do not flush target database before copy
+
+[-v]    Be verbose
+
+[-h]	Print this message
+
+Target database/dbms-host clearly needs write (or create) permissions.
+
+EOU
+
+my $verbose=0;
+my $noflush=0;
+my @dbs;
+my @hosts;
+my @ports;
+my @datasources;
+while (defined($ARGV[0])) {
+	my $opt = shift;
+
+	if ($opt eq '-h') {
+        	print $Usage;
+        	exit;
+	} elsif ($opt eq '-v') {
+		$verbose=1;
+	} elsif ($opt eq '-noflush') {
+		$noflush=1;
+	} else {
+		if( $opt =~ m|^\s*dbms://([^:]+):(\d+)/([^\s]+)| ) {
+			push @hosts, $1;
+                        push @ports, $2;
+                        push @datasources, $3;
+                } elsif( $opt =~ m|^\s*dbms://([^/]+)/([^\s]+)| ) {
+			push @hosts, $1;
+                        push @ports, '1234'; #or undef?
+                        push @datasources, $2;
+                } else {
+			die "Invalid database identifier $opt\n";
+                        };
+
+		push @dbs, $opt;
+		};
+	};
+
+unless (	defined $dbs[0] and
+		$dbs[0] ne '' and
+		defined $hosts[0] and
+		defined $datasources[0] and
+		defined $dbs[1] and
+		$dbs[1] ne '' and
+		defined $hosts[1] and
+		defined $datasources[1] ) {
+	print $Usage;
+	exit;
+	};
+
+undef $DBMS::ERROR;
+
+print STDERR "Connecting to input database $dbs[0] ....."
+	if($verbose);
+my %a;
+tie %a, "DBMS", $datasources[0], &DBMS::XSMODE_RDONLY, 0, $hosts[0], $ports[0]
+	or die "Cannot open input database $dbs[0]: $! $DBMS::ERROR";
+print STDERR "DONE\n"
+	if($verbose);
+
+print STDERR "Connecting to output database $dbs[1] ....."
+	if($verbose);
+my %b;
+tie %b, "DBMS", $datasources[1], &DBMS::XSMODE_CREAT, 0, $hosts[1], $ports[1]
+	or die "Cannot open output database $dbs[1]: $! $DBMS::ERROR";
+print STDERR "DONE\n"
+	if($verbose);
+
+unless($noflush) {
+	print STDERR "Flushing $dbs[1] database ....."
+		if($verbose);
+
+	# NOTE: DROP() requires special permissions - so we do simple scan of whole DB and delete
+	#tied(%b)->DROP;
+	while (	my ($k, $v) = each %b ) {
+		delete( $b{ $k } );
+		};
+
+	print STDERR "DONE\n"
+		if($verbose);
+	};
+
+print STDERR "Copying data from $dbs[0] to $dbs[1] ....."
+	if($verbose);
+
+# simply scan the whole input DB and copy to output one
+my $ii=0;
+my $log_every = 10;
+my ($k,$v);
+while (	($k, $v) = each %a ) {
+
+	# copy record through
+	$b{ $k } = $v;
+
+	if($ii == $log_every ) {
+		print STDERR "."
+			if($verbose);
+		$ii = 0;
+	} else {
+		$ii++;
+		};
+	};
+
+print STDERR ( ($noflush) ? "COPIED" : "MIRRORED" )."\n"
+	if($verbose);
+
+untie %b;
+untie %a;

Propchange: incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/dbms_mirror.pl
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/dbmsd.sh
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/dbmsd.sh?view=auto&rev=528394
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/dbmsd.sh (added)
+++ incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/dbmsd.sh Fri Apr 13 01:56:01
2007
@@ -0,0 +1,92 @@
+#!/bin/sh
+##############################################################################
+#       Copyright (c) 2000-2006 All rights reserved
+#       Alberto Reggiori <areggiori@webweaving.org>
+#       Dirk-Willem van Gulik <dirkx@webweaving.org>
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer. 
+#
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in
+#    the documentation and/or other materials provided with the
+#    distribution.
+#
+# 3. The end-user documentation included with the redistribution,
+#    if any, must include the following acknowledgment:
+#       "This product includes software developed by 
+#        Alberto Reggiori <areggiori@webweaving.org> and
+#        Dirk-Willem van Gulik <dirkx@webweaving.org>."
+#    Alternately, this acknowledgment may appear in the software itself,
+#    if and wherever such third-party acknowledgments normally appear.
+#
+# 4. All advertising materials mentioning features or use of this software
+#    must display the following acknowledgement:
+#    This product includes software developed by the University of
+#    California, Berkeley and its contributors. 
+#
+# 5. Neither the name of the University nor the names of its contributors
+#    may be used to endorse or promote products derived from this software
+#    without specific prior written permission.
+#
+# 6. Products derived from this software may not be called "RDFStore"
+#    nor may "RDFStore" appear in their names without prior written
+#    permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+# OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+# ====================================================================
+#
+# This software consists of work developed by Alberto Reggiori and 
+# Dirk-Willem van Gulik. The RDF specific part is based on public 
+# domain software written at the Stanford University Database Group by 
+# Sergey Melnik. For more information on the RDF API Draft work, 
+# please see <http://www-db.stanford.edu/~melnik/rdf/api.html>
+# The DBMS TCP/IP server part is based on software originally written
+# by Dirk-Willem van Gulik for Web Weaving Internet Engineering m/v Enschede,
+# The Netherlands.
+#
+##############################################################################
+DIR=/RDFStore
+
+#
+# WARNING: the following "ulimit" commands are generally *BIG* server machines
+#          enable them to your own risk! :-)
+#
+#ulimit -d 65000
+#ulimit -n 2048
+#ulimit -u 256
+#ulimit -m 64000
+
+RUNDIR=$DIR/run
+LOGDIR=$DIR/logs
+
+test -d $RUNDIR || exit 1
+test -d $LOGDIR || exit 1
+
+PIDFILE=$RUNDIR/dbmsd.pid
+LOGFILE=$DIR/logs/dbmsd_errorlog
+
+# Make sure cores are collected in the right place.
+#
+cd $RUNDIR || exit 1
+
+#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/BerkeleyDB-4.0.14/lib
+
+[ -f $DIR/bin/dbmsd ] && $DIR/bin/dbmsd -e $LOGFILE -U -P $PIDFILE -d $DIR/dbms &&
echo -n dbmsd
+

Added: incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/dbmsd.sh.sample
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/dbmsd.sh.sample?view=auto&rev=528394
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/dbmsd.sh.sample (added)
+++ incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/dbmsd.sh.sample Fri Apr 13
01:56:01 2007
@@ -0,0 +1,92 @@
+#!/bin/sh
+##############################################################################
+#       Copyright (c) 2000-2006 All rights reserved
+#       Alberto Reggiori <areggiori@webweaving.org>
+#       Dirk-Willem van Gulik <dirkx@webweaving.org>
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer. 
+#
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in
+#    the documentation and/or other materials provided with the
+#    distribution.
+#
+# 3. The end-user documentation included with the redistribution,
+#    if any, must include the following acknowledgment:
+#       "This product includes software developed by 
+#        Alberto Reggiori <areggiori@webweaving.org> and
+#        Dirk-Willem van Gulik <dirkx@webweaving.org>."
+#    Alternately, this acknowledgment may appear in the software itself,
+#    if and wherever such third-party acknowledgments normally appear.
+#
+# 4. All advertising materials mentioning features or use of this software
+#    must display the following acknowledgement:
+#    This product includes software developed by the University of
+#    California, Berkeley and its contributors. 
+#
+# 5. Neither the name of the University nor the names of its contributors
+#    may be used to endorse or promote products derived from this software
+#    without specific prior written permission.
+#
+# 6. Products derived from this software may not be called "RDFStore"
+#    nor may "RDFStore" appear in their names without prior written
+#    permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+# OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+# ====================================================================
+#
+# This software consists of work developed by Alberto Reggiori and 
+# Dirk-Willem van Gulik. The RDF specific part is based on public 
+# domain software written at the Stanford University Database Group by 
+# Sergey Melnik. For more information on the RDF API Draft work, 
+# please see <http://www-db.stanford.edu/~melnik/rdf/api.html>
+# The DBMS TCP/IP server part is based on software originally written
+# by Dirk-Willem van Gulik for Web Weaving Internet Engineering m/v Enschede,
+# The Netherlands.
+#
+##############################################################################
+DIR=/RDFStore
+
+#
+# WARNING: the following "ulimit" commands are generally *BIG* server machines
+#          enable them to your own risk! :-)
+#
+#ulimit -d 65000
+#ulimit -n 2048
+#ulimit -u 256
+#ulimit -m 64000
+
+RUNDIR=$DIR/run
+LOGDIR=$DIR/logs
+
+test -d $RUNDIR || exit 1
+test -d $LOGDIR || exit 1
+
+PIDFILE=$RUNDIR/dbmsd.pid
+LOGFILE=$DIR/logs/dbmsd_errorlog
+
+# Make sure cores are collected in the right place.
+#
+cd $RUNDIR || exit 1
+
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/BerkeleyDB-4.0.14/lib
+
+[ -f $DIR/bin/dbmsd ] && $DIR/bin/dbmsd -e $LOGFILE -U -P $PIDFILE -d $DIR/dbms &&
echo -n dbmsd
+

Propchange: incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/dbmsd.sh.sample
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/start_dbserver
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/start_dbserver?view=auto&rev=528394
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/start_dbserver (added)
+++ incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/start_dbserver Fri Apr 13
01:56:01 2007
@@ -0,0 +1,67 @@
+#!/bin/sh
+##############################################################################
+#       Copyright (c) 2000-2006 All rights reserved
+#       Alberto Reggiori <areggiori@webweaving.org>
+#       Dirk-Willem van Gulik <dirkx@webweaving.org>
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer. 
+#
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in
+#    the documentation and/or other materials provided with the
+#    distribution.
+#
+# 3. The end-user documentation included with the redistribution,
+#    if any, must include the following acknowledgment:
+#       "This product includes software developed by 
+#        Alberto Reggiori <areggiori@webweaving.org> and
+#        Dirk-Willem van Gulik <dirkx@webweaving.org>."
+#    Alternately, this acknowledgment may appear in the software itself,
+#    if and wherever such third-party acknowledgments normally appear.
+#
+# 4. All advertising materials mentioning features or use of this software
+#    must display the following acknowledgement:
+#    This product includes software developed by the University of
+#    California, Berkeley and its contributors. 
+#
+# 5. Neither the name of the University nor the names of its contributors
+#    may be used to endorse or promote products derived from this software
+#    without specific prior written permission.
+#
+# 6. Products derived from this software may not be called "RDFStore"
+#    nor may "RDFStore" appear in their names without prior written
+#    permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+# OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+# ====================================================================
+#
+# This software consists of work developed by Alberto Reggiori and 
+# Dirk-Willem van Gulik. The RDF specific part is based on public 
+# domain software written at the Stanford University Database Group by 
+# Sergey Melnik. For more information on the RDF API Draft work, 
+# please see <http://www-db.stanford.edu/~melnik/rdf/api.html>
+# The DBMS TCP/IP server part is based on software originally written
+# by Dirk-Willem van Gulik for Web Weaving Internet Engineering m/v Enschede,
+# The Netherlands.
+#
+##############################################################################
+
+/RDFStore/rc/dbmsd.sh
+

Added: incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/stop_dbserver
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/stop_dbserver?view=auto&rev=528394
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/stop_dbserver (added)
+++ incubator/triplesoup/donations/TRIPLES-3-RDFStore/dbms/utils/stop_dbserver Fri Apr 13
01:56:01 2007
@@ -0,0 +1,97 @@
+#!/bin/sh
+##############################################################################
+#       Copyright (c) 2000-2006 All rights reserved
+#       Alberto Reggiori <areggiori@webweaving.org>
+#       Dirk-Willem van Gulik <dirkx@webweaving.org>
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer. 
+#
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in
+#    the documentation and/or other materials provided with the
+#    distribution.
+#
+# 3. The end-user documentation included with the redistribution,
+#    if any, must include the following acknowledgment:
+#       "This product includes software developed by 
+#        Alberto Reggiori <areggiori@webweaving.org> and
+#        Dirk-Willem van Gulik <dirkx@webweaving.org>."
+#    Alternately, this acknowledgment may appear in the software itself,
+#    if and wherever such third-party acknowledgments normally appear.
+#
+# 4. All advertising materials mentioning features or use of this software
+#    must display the following acknowledgement:
+#    This product includes software developed by the University of
+#    California, Berkeley and its contributors. 
+#
+# 5. Neither the name of the University nor the names of its contributors
+#    may be used to endorse or promote products derived from this software
+#    without specific prior written permission.
+#
+# 6. Products derived from this software may not be called "RDFStore"
+#    nor may "RDFStore" appear in their names without prior written
+#    permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+# OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+# ====================================================================
+#
+# This software consists of work developed by Alberto Reggiori and 
+# Dirk-Willem van Gulik. The RDF specific part is based on public 
+# domain software written at the Stanford University Database Group by 
+# Sergey Melnik. For more information on the RDF API Draft work, 
+# please see <http://www-db.stanford.edu/~melnik/rdf/api.html>
+# The DBMS TCP/IP server part is based on software originally written
+# by Dirk-Willem van Gulik for Web Weaving Internet Engineering m/v Enschede,
+# The Netherlands.
+#
+##############################################################################
+
+DIR=/RDFStore
+
+RUNDIR=$DIR/run
+
+test -d $RUNDIR || exit 1
+
+if [ $# = 0 ]; then
+	PIDFILE=$RUNDIR/dbmsd.pid
+else
+        PIDFILE=$1
+fi
+ 
+echo 'Stoppping DBMS server....'
+echo 'First kills....'
+
+if [ -f $PIDFILE ] ; then
+        PID=`cat $PIDFILE`
+        if [ "x$PID" != "x" ] && kill -0 $PID 2>/dev/null ; then
+                kill -15 $PID;
+        else
+                echo not a valid PID=$PID in $PIDFILE
+                rm -f $PID;
+                exit 1
+        fi
+else
+        echo no $PIDFILE found
+        exit 1
+fi
+ 
+echo DONE
+exit 0
+

Added: incubator/triplesoup/donations/TRIPLES-3-RDFStore/doc/API.README
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-3-RDFStore/doc/API.README?view=auto&rev=528394
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-3-RDFStore/doc/API.README (added)
+++ incubator/triplesoup/donations/TRIPLES-3-RDFStore/doc/API.README Fri Apr 13 01:56:01 2007
@@ -0,0 +1,114 @@
+=head1 LICENSE
+
+
+ # *
+ # *     Copyright (c) 2000-2006 Alberto Reggiori <areggiori@webweaving.org>
+ # *                        Dirk-Willem van Gulik <dirkx@webweaving.org>
+ # *
+ # * NOTICE
+ # *
+ # * This product is distributed under a BSD/ASF like license as described in the 'LICENSE'
+ # * file you should have received together with this source code. If you did not get a
+ # * a copy of such a license agreement you can pick up one at:
+ # *
+ # *     http://rdfstore.sourceforge.net/LICENSE
+ # *
+
+
+=head1 NAME
+
+RDFStore - This is a set of Perl modules that implement an object-based DBMS and API to manipulate
RDF models
+
+=head1 DESCRIPTION
+
+RDFStore is a set of Perl modules to manage Resource Description Framework (RDF) model databases
in a easy and straightforward way. The software started as a pure Perl implementation of the
Draft Java API (see http://www-db.stanford.edu/~melnik/rdf/api.html) from the Stanford University
DataBase Group by Sergey Melnik.  A set of companion modules RDFStore::Parser::SiRPAC(3) RDFStore::Parser::OpenHealth(3)
and Data::MagicTie(3) the suite allow a user to fetch, parse, process, store and query RDF
models.
+
+=head1 Toolkit package organisation
+
+Modules like RDFStore::Stanford::RDFNode, RDFStore::Stanford::Literal, RDFStore::Stanford::Resource,
RDFStore::Stanford::Model and define a set of "O-O interfaces" implemented by concrete counterparts
such as RDFStore::RDFNode, RDFStore:::Literal, RDFStore::Resource, RDFStore::Model. The modules
defined by RDFStore correspond to the Java org.w3c.rdf.model, org.w3c.rdf.util, org.w3c.rdf.implementation.model,
edu.stanford.db.rdf.model.i, org.w3c.tools.crypt, edu.stanford.db.rdf.schema, edu.stanford.db.rdf.vocabulary,
org.w3c.rdf.vocabulary.rdf_syntax_19990222, org.w3c.rdf.vocabulary.rdf_schema_19990303, org.w3c.rdf.vocabulary.dublin_core_1999070
packages defined by Sergey Melnik; the Perl code has been structured as follow:
+
+
+-----------------------------------------------------------------------------------------------
+	Perl packages 		                Java classes
+-----------------------------------------------------------------------------------------------
+RDFStore::Stanford::*                           org.w3c.rdf.model
+-----------------------------------------------------------------------------------------------
+RDFStore::Stanford::Model                       org.w3c.rdf.model.Model
+RDFStore::Stanford::Literal                     org.w3c.rdf.model.Literal
+RDFStore::Stanford::RDFNode                     org.w3c.rdf.model.RDFNode
+RDFStore::Stanford::Resource                    org.w3c.rdf.model.Resource
+RDFStore::Stanford::Statement                   org.w3c.rdf.model.Statement
+RDFStore::Stanford::NodeFactory                 org.w3c.rdf.model.NodeFactory
+RDFStore::Stanford::VirtualModel                org.w3c.rdf.model.VirtualModel
+RDFStore::Stanford::SetModel                    org.w3c.rdf.model.SetModel
+
+
+-----------------------------------------------------------------------------------------------
+RDFStore::Stanford::Digest::*                   org.w3c.rdf.util,org.w3c.tools.crypt
+-----------------------------------------------------------------------------------------------
+RDFStore::Stanford::Digest                      org.w3c.rdf.digest.Digest
+RDFStore::Stanford::Digest::Util                org.w3c.rdf.digest.DigestUtil
+RDFStore::Stanford::Digest::AbstractDigest      org.w3c.rdf.digest.DigestUtil
+RDFStore::Stanford::Digest::GenericDigest       org.w3c.rdf.digest.DigestUtil
+RDFStore::Stanford::Digest::MD5                 org.w3c.rdf.digest.DigestUtil
+RDFStore::Stanford::Digest::SHA1                org.w3c.rdf.digest.DigestUtil
+
+
+-----------------------------------------------------------------------------------------------
+RDFStore::*                                     edu.stanford.db.rdf.model.i
+                                                org.w3c.rdf.implementation.model
+                                                edu.stanford.db.rdf.schema
+-----------------------------------------------------------------------------------------------
+RDFStore::Model			                edu.stanford.db.rdf.model.i.ModelImpl
+RDFStore::Literal		                edu.stanford.db.rdf.model.i.LiteralImpl
+RDFStore::RDFNode		                edu.stanford.db.rdf.model.i.RDFNodeImpl
+RDFStore::Resource		                edu.stanford.db.rdf.model.i.ResourceImpl
+RDFStore::Statement		                edu.stanford.db.rdf.model.i.StatementImpl
+RDFStore::NodeFactory		                edu.stanford.db.rdf.model.i.NodeFactoryImpl
+RDFStore::VirtualModel		                org.w3c.rdf.implementation.model.VirtualModel
+RDFStore::SetModel		                org.w3c.rdf.implementation.model.SetModel
+RDFStore::SchemaModel		                edu.stanford.db.rdf.schema.RDFSchemaModel
+
+-----------------------------------------------------------------------------------------------
+RDFStore::Stanford::Vocabulary::*               edu.stanford.db.rdf.vocabulary
+-----------------------------------------------------------------------------------------------
+RDFStore::Stanford::Vocabulary::Generator       edu.stanford.db.rdf.vocabulary.Generator
+
+-----------------------------------------------------------------------------------------------
+Other classes
+-----------------------------------------------------------------------------------------------
+RDFStore::Vocabulary::RDF			org.w3c.rdf.vocabulary.rdf_syntax_19990222.RDF
+RDFStore::Vocabulary::RDFS			org.w3c.rdf.vocabulary.rdf_schema_19990303.RDFS
+RDFStore::Vocabulary::DC			org.w3c.rdf.vocabulary.dublin_core_19990702.DC
+RDFStore::Vocabulary::DAML			edu.stanford.db.rdf.vocabulary.daml_o_20001011.DAML_O
+
+The Perl RDF API implementation is almost aligned with the Java one. In the RDFStore branch
the modules code has been extended and modified to use the Data::MagicTie(3) interface and
a different B<indexing model> for RDFStore::Model(3). Similarly the RDFStore::Stanford::Vocabulary::Generator(3)
now generates valid Perl5 modules containing constants definitions of input RDF Schema.
+
+For the whole API documentation you can temporarly refer to the JavaDoc version at http://www-db.stanford.edu/~melnik/rdf/api-doc/
+
+In addition I invite you to look at the samples and utils directory coming with the RDFStore
distribution for a fruitful set of examples to play with :-)
+
+=head1 BUGS
+
+This module implements most of the classes and packages as its Java counterpart, but some
feature have been missied on purposed or just forgotten ;-)
+This RDFStore version is aligned with the latest changes from current revision: 2001-01-19
of Stanford Java API.
+
+Not supported:
+
+	* order/backorder experimental from Sergey Melnik
+
+=head1 SEE ALSO
+
+ RDFStore::Parser::SiRPAC(3), DBMS(3) and XML::Parser(3) XML::Parser::Expat(3)
+RDFStore::Stanford::Model(3) RDFStore::NodeFactory(3)
+Summary of Recent Discussions about an Application Programming Interface for RDF - http://nestroy.wi-inf.uni-essen.de/rdf/sum_rdf_api/
+RDF Model and Syntax Specification - http://www.w3.org/TR/REC-rdf-syntax
+RDF Schema Specification 1.0 - http://www.w3.org/TR/2000/CR-rdf-schema-20000327
+Statements/Statings - http://ilrt.org/discovery/2000/11/statements/
+
+=head1 AUTHOR
+
+	Alberto Reggiori <areggiori@webweaving.org>
+	Dirk-Willem van Gulik <dirkx@webweaving.org>
+
+	Sergey Melnik <melnik@db.stanford.edu> is the original author of the Java RDF API
- txs Sergey!

Added: incubator/triplesoup/donations/TRIPLES-3-RDFStore/doc/DEBUG-MODPERL-CRASH-HOWTO.txt
URL: http://svn.apache.org/viewvc/incubator/triplesoup/donations/TRIPLES-3-RDFStore/doc/DEBUG-MODPERL-CRASH-HOWTO.txt?view=auto&rev=528394
==============================================================================
--- incubator/triplesoup/donations/TRIPLES-3-RDFStore/doc/DEBUG-MODPERL-CRASH-HOWTO.txt (added)
+++ incubator/triplesoup/donations/TRIPLES-3-RDFStore/doc/DEBUG-MODPERL-CRASH-HOWTO.txt Fri
Apr 13 01:56:01 2007
@@ -0,0 +1,23 @@
+
+Did you get somethig like
+
+[Tue Jan  7 17:18:00 2003] [notice] child pid 7460 exit signal Segmentation fault (11)
+[Tue Jan  7 17:18:01 2003] [notice] child pid 7466 exit signal Segmentation fault (11)
+
+in your apache+mod_perl errorlog and you do not have a clue where it is happening?
+
+Try the follwing GDB procedure:
+
+% gdb httpd
+(gdb) source mod_perl-x.xx/.gdbinit
+(gdb) run -X
+[make a request that core dumps]
+(gdb) curinfo
+
+should print the Perl filename:linenumber
+
+i.e. mod_perl-x.xx/.gdbinit debugging info which allows you to nicely display where the crash
actually happened
+
+see also http://archive.davintech.ca/modperl/2000-08/msg00575.phtml
+
+Alberto



Mime
View raw message