Skip to content

Commit

Permalink
Removed RDF::Query::Util::start_endpoint as it required unreleased/un…
Browse files Browse the repository at this point in the history
…supported code (#139).
  • Loading branch information
kasei committed Jan 9, 2019
1 parent be59934 commit 2db05bf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 404 deletions.
35 changes: 0 additions & 35 deletions RDF-Query/lib/RDF/Query/Util.pm
Original file line number Diff line number Diff line change
Expand Up @@ -334,41 +334,6 @@ sub cli_parse_args {
return %args;
}

=item C<< start_endpoint ( $model, $port ) >>
Starts an SPARQL endpoint HTTP server on port $port.
If called in list context, returns the PID and the actual port the server bound
to. If called in scalar context, returns only the port.
=cut

sub start_endpoint {
my $model = shift;
my $port = shift;
my $path = shift;

require CGI;
require RDF::Endpoint::Server;

local($ENV{TMPDIR}) = '/tmp';
my $cgi = CGI->new;
my $s = RDF::Endpoint::Server->new_with_model( $model,
Port => $port,
Prefix => '',
CGI => $cgi,
IncludePath => $path,
);

my $pid = $s->background();
# warn "Endpoint started as [$pid]\n";
if (wantarray) {
return ($pid, $port);
} else {
return $port;
}
}

1;

__END__
Expand Down
Loading

0 comments on commit 2db05bf

Please sign in to comment.