org.dllearner.kb
Class SparqlEndpointKS

java.lang.Object
  extended by org.dllearner.kb.SparqlEndpointKS
All Implemented Interfaces:
Component, KnowledgeSource

public class SparqlEndpointKS
extends Object
implements KnowledgeSource

SPARQL endpoint knowledge source (without fragment extraction), in particular for those algorithms which work directly on an endpoint without requiring an OWL reasoner.

Author:
Jens Lehmann

Constructor Summary
SparqlEndpointKS()
           
SparqlEndpointKS(SparqlEndpoint endpoint)
           
 
Method Summary
 List<String> getDefaultGraphURIs()
           
 SparqlEndpoint getEndpoint()
           
 List<String> getNamedGraphURIs()
           
 URL getUrl()
           
 void init()
          Method to be called after the component has been configured.
 void setDefaultGraphURIs(List<String> defaultGraphURIs)
           
 void setNamedGraphURIs(List<String> namedGraphURIs)
           
 void setUrl(URL url)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SparqlEndpointKS

public SparqlEndpointKS()

SparqlEndpointKS

public SparqlEndpointKS(SparqlEndpoint endpoint)
Method Detail

init

public void init()
          throws ComponentInitException
Description copied from interface: Component
Method to be called after the component has been configured. Implementation of components can overwrite this method to perform setup and initialisation tasks for this component.

Specified by:
init in interface Component
Throws:
ComponentInitException - This exception is thrown if any exceptions occur within the initialisation process of this component. As component developer, you are encouraged to rethrow occuring exception as ComponentInitException and giving an error message as well as the actualy exception by using the constructor ComponentInitException.ComponentInitException(String, Throwable).

getEndpoint

public SparqlEndpoint getEndpoint()

getUrl

public URL getUrl()

setUrl

public void setUrl(URL url)

getDefaultGraphURIs

public List<String> getDefaultGraphURIs()

setDefaultGraphURIs

public void setDefaultGraphURIs(List<String> defaultGraphURIs)

getNamedGraphURIs

public List<String> getNamedGraphURIs()

setNamedGraphURIs

public void setNamedGraphURIs(List<String> namedGraphURIs)


SourceForge.net Logo DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann