net.fortytwo.sesametools.ldserver
Class LinkedDataServer
java.lang.Object
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)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinkedDataServer
public LinkedDataServer(org.openrdf.sail.Sail baseSail,
String internalBaseURI,
String externalBaseURI,
int serverPort)
throws ServerException
- Parameters:
baseSail - the data store published by this serverinternalBaseURI - the base URI of resources within the data storeexternalBaseURI - the base URI of resources as they are to be seen in the Linked DataserverPort - 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 serverinternalBaseURI - the base URI of resources within the data storeexternalBaseURI - the base URI of resources as they are to be seen in the Linked DataserverPort - the TCP port through which to make the data accessibledataset - 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.
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.