Strabon
changeset 947:851ab3c54a08
added SPARQLEndpoint that implements Endpoint<TupleQueryResultsFormat>. This class corresponds to the endpoint clients for SPARQL endpoints like Parliament, Virtuoso, etc.
author | Babis Nikolaou <charnik@di.uoa.gr> |
---|---|
date | Fri Mar 29 18:18:18 2013 +0200 (2013-03-29) |
parents | cf2557c8fcd4 |
children | c09e97aa4e8b |
files | endpoint-client/src/main/java/eu/earthobservatory/org/StrabonEndpoint/client/SPARQLEndpoint.java |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/endpoint-client/src/main/java/eu/earthobservatory/org/StrabonEndpoint/client/SPARQLEndpoint.java Fri Mar 29 18:18:18 2013 +0200 1.3 @@ -0,0 +1,66 @@ 1.4 +/** 1.5 + * This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + * 1.9 + * Copyright (C) 2013, Pyravlos Team 1.10 + * 1.11 + * http://www.strabon.di.uoa.gr/ 1.12 + */ 1.13 +package eu.earthobservatory.org.StrabonEndpoint.client; 1.14 + 1.15 +import java.io.IOException; 1.16 +import java.net.URL; 1.17 + 1.18 +import org.openrdf.query.resultio.TupleQueryResultFormat; 1.19 +import org.openrdf.rio.RDFFormat; 1.20 + 1.21 +/** 1.22 + * @author Charalampos Nikolaou <charnik@di.uoa.gr> 1.23 + * 1.24 + */ 1.25 +public class SPARQLEndpoint extends HTTPClient implements Endpoint<TupleQueryResultFormat> { 1.26 + 1.27 + public SPARQLEndpoint(String host, int port) { 1.28 + super(host, port); 1.29 + } 1.30 + 1.31 + public SPARQLEndpoint(String host, int port, String endpointName) { 1.32 + super(host, port, endpointName); 1.33 + } 1.34 + 1.35 + @Override 1.36 + public EndpointResult query(String sparqlQuery, TupleQueryResultFormat format) throws IOException { 1.37 + throw new UnsupportedOperationException(); 1.38 + } 1.39 + 1.40 + @Override 1.41 + public boolean store(String data, RDFFormat format, URL namedGraph) { 1.42 + throw new UnsupportedOperationException(); 1.43 + } 1.44 + 1.45 + @Override 1.46 + public boolean store(URL data, RDFFormat format, URL namedGraph) { 1.47 + throw new UnsupportedOperationException(); 1.48 + } 1.49 + 1.50 + @Override 1.51 + public boolean update(String sparqlUpdate) { 1.52 + throw new UnsupportedOperationException(); 1.53 + } 1.54 + 1.55 + @Override 1.56 + public EndpointResult describe(String sparqlDescribe) { 1.57 + throw new UnsupportedOperationException(); 1.58 + } 1.59 + 1.60 + @Override 1.61 + public EndpointResult construct(String sparqlConstruct) { 1.62 + throw new UnsupportedOperationException(); 1.63 + } 1.64 + 1.65 + @Override 1.66 + public EndpointResult ask(String sparqlAsk) { 1.67 + throw new UnsupportedOperationException(); 1.68 + } 1.69 +}