net.fortytwo.sesametools.ldserver
Class LinkedDataServer

java.lang.Object
  extended by net.fortytwo.sesametools.ldserver.LinkedDataServer

public class LinkedDataServer
extends Object

A RESTful web service which publishes the contents of a Sail data store as Linked Data.

Author:
Joshua Shinavier (http://fortytwo.net)

Constructor Summary
LinkedDataServer(org.openrdf.sail.Sail baseSail, String internalBaseURI, String externalBaseURI, int serverPort)
           
LinkedDataServer(org.openrdf.sail.Sail baseSail, String internalBaseURI, String externalBaseURI, int serverPort, String dataset)
           
 
Method Summary
 org.restlet.Context getContext()
           
 org.openrdf.model.URI getDatasetURI()
           
 org.restlet.routing.VirtualHost getHost()
           
static LinkedDataServer getInstance()
           
 org.openrdf.sail.Sail getSail()
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkedDataServer

public LinkedDataServer(org.openrdf.sail.Sail baseSail,
                        String internalBaseURI,
                        String externalBaseURI,
                        int serverPort)
                 throws ServerException
Parameters:
baseSail - the data store published by this server
internalBaseURI - the base URI of resources within the data store
externalBaseURI - the base URI of resources as they are to be seen in the Linked Data
serverPort - the TCP port through which to make the data accessible
Throws:
ServerException

LinkedDataServer

public LinkedDataServer(org.openrdf.sail.Sail baseSail,
                        String internalBaseURI,
                        String externalBaseURI,
                        int serverPort,
                        String dataset)
Parameters:
baseSail - the data store published by this server
internalBaseURI - the base URI of resources within the data store
externalBaseURI - the base URI of resources as they are to be seen in the Linked Data
serverPort - the TCP port through which to make the data accessible
dataset - the URI of the data set to be published. This allows resource descriptions to be associated with metadata about the data set which contains them.
Method Detail

getContext

public org.restlet.Context getContext()

getHost

public org.restlet.routing.VirtualHost getHost()

start

public void start()
           throws Exception
Throws:
Exception

getSail

public org.openrdf.sail.Sail getSail()
Returns:
the data store published by this server

getDatasetURI

public org.openrdf.model.URI getDatasetURI()
Returns:
the internal URI for the data set published by this server

getInstance

public static LinkedDataServer getInstance()
Returns:
the single Linked Data server


Copyright © 2013. All Rights Reserved.