source: endpoint/src/main/java/eu/earthobservatory/org/StrabonEndpoint/client/SpatialEndpoint.java @ 670:f443dfe30f78

Revision 670:f443dfe30f78, 1.1 KB checked in by Babis Nikolaou <charnik@…>, 6 years ago (diff)

completed implementation of query() method for StrabonEndpoint?

Line 
1/**
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 *
6 * Copyright (C) 2012, Pyravlos Team
7 *
8 * http://www.strabon.di.uoa.gr/
9 */
10package eu.earthobservatory.org.StrabonEndpoint.client;
11
12import java.io.IOException;
13import java.net.URL;
14
15import org.openrdf.query.resultio.stSPARQLQueryResultFormat;
16import org.openrdf.rio.RDFFormat;
17
18/**
19 * Every SPARQL endpoint that supports storing and querying of
20 * spatial RDF data should implement the {@link SpatialEndpoint}
21 * interface.
22 *
23 * @author Charalampos Nikolaou <charnik@di.uoa.gr>
24 */
25public interface SpatialEndpoint {
26
27        public String query(String sparqlQuery, stSPARQLQueryResultFormat format) throws IOException;
28       
29        public boolean store(String data, RDFFormat format);
30       
31        public boolean store(URL data, RDFFormat format);
32       
33        public boolean update(String sparqlUpdate);
34       
35        public boolean describe(String sparqlDescribe);
36       
37        public boolean construct(String sparqlConstruct);
38}
Note: See TracBrowser for help on using the repository browser.