## Execute a SPARQL query `query().sparql(QuerySparqlParamsparams, RequestOptionsrequestOptions = RequestOptions.none()) : SparqlResult` **post** `/api/v1/sparql` Execute a SPARQL query ### Parameters - `params: QuerySparqlParams` - `sparqlQuery: SparqlQuery` ### Returns - `class SparqlResult:` GeoJSON FeatureCollection of SPARQL query results - `features: List` GeoJSON features from SPARQL query - `geometry: GeoJsonGeometry` - `coordinates: Coordinates` GeoJSON coordinates array (nesting depth varies by geometry type) - `List` - `List>` - `List>>` - `List>>>` - `type: Type` - `POINT("Point")` - `LINE_STRING("LineString")` - `POLYGON("Polygon")` - `MULTI_POINT("MultiPoint")` - `MULTI_LINE_STRING("MultiLineString")` - `MULTI_POLYGON("MultiPolygon")` - `properties: Properties` - `type: Type` - `FEATURE("Feature")` - `id: Optional` Feature identifier (type/osm_id) - `osmId: Optional` OpenStreetMap ID - `type: Type` - `FEATURE_COLLECTION("FeatureCollection")` ### Example ```kotlin package com.plazafyi.example import com.plazafyi.client.PlazaClient import com.plazafyi.client.okhttp.PlazaOkHttpClient import com.plazafyi.models.query.QuerySparqlParams import com.plazafyi.models.query.SparqlQuery import com.plazafyi.models.query.SparqlResult fun main() { val client: PlazaClient = PlazaOkHttpClient.fromEnv() val params: SparqlQuery = SparqlQuery.builder() .query("query") .build() val sparqlResult: SparqlResult = client.query().sparql(params) } ```