semanticwfs  Version 0.1.0.0
CovJSONFormatter Class Reference
Inheritance diagram for CovJSONFormatter:
Collaboration diagram for CovJSONFormatter:

Public Member Functions

 CovJSONFormatter ()
 
Set< String > getGeometryTypes (JSONObject geojson)
 
Tuple< String, String > getDomainTypeFromGeometryTypes (Set< String > types)
 
Tuple< String, String > getDomainTypeFromGeometryTypes (String type)
 
JSONObject createObservableParametersAndRanges (Map< String, Tuple< Boolean, String >> parammap, JSONObject result, JSONObject geojson, String srsName)
 
String formatter (ResultSet results, String startingElement, String featuretype, String propertytype, String typeColumn, Boolean onlyproperty, Boolean onlyhits, String srsName, String indvar, String epsg, List< String > eligiblenamespaces, List< String > noteligiblenamespaces, StyleObject mapstyle, Boolean alternativeFormat, Boolean invertXY, Boolean coverage, Writer out) throws XMLStreamException, JSONException, IOException
 
String formatter (Model results, String startingElement, String featuretype, String propertytype, String typeColumn, Boolean onlyproperty, Boolean onlyhits, String srsName, String indvar, String epsg, List< String > eligiblenamespaces, List< String > noteligiblenamespaces, StyleObject mapstyle, Boolean alternativeFormat, Boolean invertXY, Boolean coverage, Writer out) throws XMLStreamException, IOException
 
Geometry parseVectorLiteral (String literalValue, String literalType, String epsg, String srsName)
 
String parseCoverageLiteral (String literalValue, String literalType, String epsg, String srsName)
 
Object parseLiteral (String literalValue, String literalType, String epsg, String srsName)
 

Static Public Member Functions

static Map< String, Tuple< Boolean, String > > extractObservableColumns (JSONObject geojson)
 
static JSONObject addCovJSONParameterAndRange (JSONObject covjson, String parameterName, String parameterURI, List< Object > values, String dataType)
 
static JSONObject generateCOVJSONForXY (String coverageType)
 
static JSONObject convertLiteralDataToCoverageJSON (String literalValue, String literalType)
 
static ResultFormatter getFormatter (String formatString)
 

Public Attributes

Integer lastQueriedElemCount =0
 
String mimeType ="text/plain"
 
String exposedType ="application/vnd.geojson"
 
String urlformat ="json"
 
String label ="JSON"
 
String definition =""
 
String fileextension ="json"
 
Boolean constructQuery =false
 
Map< String, String > contextMapper =new TreeMap<>()
 
ResultStyleFormatter styleformatter
 
WKTReader wktreader =new WKTReader()
 
WKBReader wkbreader =new WKBReader()
 
KMLReader kmlreader =new KMLReader()
 
GeoJSONReader geojsonreader =new GeoJSONReader()
 

Static Public Attributes

static Map< String, Map< String, Integer > > columnsval
 
static Map< String, ResultFormatterresultMap =new TreeMap<String, ResultFormatter>()
 
static Map< String, String > labelMap =new TreeMap<>()
 
static Set< String > vectorLiteralMap =new TreeSet<>()
 
static Set< String > coverageLiteralMap =new TreeSet<>()
 
static final Integer FLUSHTHRESHOLD =20
 
static final String[] mediatypes
 

Static Package Functions

static void addToMaps (String key, ResultFormatter format)
 
 [static initializer]
 

Constructor & Destructor Documentation

◆ CovJSONFormatter()

29  {
30  this.mimeType="application/json";
31  this.exposedType="application/prs.coverage+json";
32  this.urlformat="covjson";
33  this.label="CoverageJSON (COVJSON)";
34  this.fileextension="covjson";
35  this.definition="https://covjson.org";
36  }
String mimeType
Definition: ResultFormatter.java:89
String definition
Definition: ResultFormatter.java:97
String fileextension
Definition: ResultFormatter.java:99
String exposedType
Definition: ResultFormatter.java:91
String urlformat
Definition: ResultFormatter.java:93
String label
Definition: ResultFormatter.java:95

References ResultFormatter.definition, ResultFormatter.exposedType, ResultFormatter.fileextension, ResultFormatter.label, ResultFormatter.mimeType, and ResultFormatter.urlformat.

Member Function Documentation

◆ [static initializer]()

[static initializer]
staticpackageinherited

◆ addCovJSONParameterAndRange()

static JSONObject addCovJSONParameterAndRange ( JSONObject  covjson,
String  parameterName,
String  parameterURI,
List< Object >  values,
String  dataType 
)
staticinherited
70  {
71  covjson.getJSONObject("parameters").put(parameterName, new JSONObject());
72  JSONObject param = covjson.getJSONObject("parameters").getJSONObject(parameterName);
73  param.put("type", "Parameter");
74  param.put("description", new JSONObject());
75  param.getJSONObject("description").put("en", parameterName);
76  param.put("observedProperty", new JSONObject());
77  param.getJSONObject("observedProperty").put("id", parameterURI);
78  param.getJSONObject("observedProperty").put("label", new JSONObject());
79  param.getJSONObject("observedProperty").getJSONObject("label").put("en", parameterName);
80  JSONObject range = new JSONObject();
81  covjson.getJSONObject("ranges").put(parameterName, range);
82  range.put("type", "NdArray");
83  range.put("axisNames", new JSONArray());
84  range.getJSONArray("axisNames").put("x");
85  range.getJSONArray("axisNames").put("y");
86  range.put("dataType", dataType);
87  range.put("values", new JSONArray(values));
88  return covjson;
89  }

Referenced by CoverageResultFormatter.convertLiteralDataToCoverageJSON().

◆ addToMaps()

static void addToMaps ( String  key,
ResultFormatter  format 
)
staticpackageinherited
288  {
289  resultMap.put(key, format);
290  labelMap.put(key,format.label);
291  resultMap.put(format.mimeType, format);
292  }
static Map< String, String > labelMap
Definition: ResultFormatter.java:115
static Map< String, ResultFormatter > resultMap
Definition: ResultFormatter.java:85

References ResultFormatter.label, ResultFormatter.labelMap, ResultFormatter.mimeType, and ResultFormatter.resultMap.

◆ convertLiteralDataToCoverageJSON()

static JSONObject convertLiteralDataToCoverageJSON ( String  literalValue,
String  literalType 
)
staticinherited
120  {
121  JSONObject result = new JSONObject();
122  JSONArray xarray, yarray, zarray;
123  String param;
124  String nodata = "";
125  Double cellsize = 1., xllcorner = 1., yllcorner = 1.;
126  Integer nxcols = null, nycols = null;
127  switch (literalType) {
128  case "http://www.opengis.net/ont/geosparql#xyzLiteral":
129  result = generateCOVJSONForXY("Grid");
130  param = "altitude";
131  result = addCovJSONParameterAndRange(result, param, "http://www.opengis.net/ont/geosparql#altitude",
132  new LinkedList<>(), "float");
133  xarray = result.getJSONObject("domain").getJSONObject("axes").getJSONObject("x").getJSONArray("values");
134  yarray = result.getJSONObject("domain").getJSONObject("axes").getJSONObject("y").getJSONArray("values");
135  zarray = result.getJSONObject("ranges").getJSONObject(param).getJSONArray("values");
136  for (String line : literalValue.split(System.lineSeparator())) {
137  String[] coord = line.split(" ");
138  xarray.put(Double.valueOf(coord[0]));
139  yarray.put(Double.valueOf(coord[1]));
140  zarray.put(Double.valueOf(coord[2]));
141  }
142  break;
143  case "http://www.opengis.net/ont/geosparql#gxfLiteral":
144  result = generateCOVJSONForXY("Grid");
145  param = "altitude";
146  result = addCovJSONParameterAndRange(result, param, "http://www.opengis.net/ont/geosparql#altitude",
147  new LinkedList<>(), "float");
148  result.getJSONObject("domain").getJSONObject("axes").getJSONObject("x").remove("values");
149  result.getJSONObject("domain").getJSONObject("axes").getJSONObject("y").remove("values");
150  zarray = result.getJSONObject("ranges").getJSONObject(param).getJSONArray("values");
151  for (String line : literalValue.split(System.lineSeparator())) {
152  if (line.startsWith("ncols")) {
153 
154  }
155  }
156 
157  break;
158  case "http://www.opengis.net/ont/geosparql#ascLiteral":
159  result = generateCOVJSONForXY("Grid");
160  param = "altitude";
161  result = addCovJSONParameterAndRange(result, param, "http://www.opengis.net/ont/geosparql#altitude",
162  new LinkedList<>(), "float");
163  result.getJSONObject("domain").getJSONObject("axes").getJSONObject("x").remove("values");
164  result.getJSONObject("domain").getJSONObject("axes").getJSONObject("y").remove("values");
165  zarray = result.getJSONObject("ranges").getJSONObject(param).getJSONArray("values");
166  for (String line : literalValue.split(System.lineSeparator())) {
167  if (line.startsWith("ncols")) {
168  result.getJSONObject("domain").getJSONObject("axes").getJSONObject("x").put("num",
169  Integer.valueOf(line.replace("ncols", "").trim()));
170  result.getJSONObject("domain").getJSONObject("axes").getJSONObject("y").put("num",
171  Integer.valueOf(line.replace("ncols", "").trim()));
172  nxcols = Integer.valueOf(line.replace("ncols", "").trim());
173  } else if (line.startsWith("xllcorner")) {
174  result.getJSONObject("domain").getJSONObject("axes").getJSONObject("x").put("start",
175  Double.valueOf(line.replace("xllcorner", "").trim()));
176  xllcorner = Double.valueOf(line.replace("xllcorner", "").trim());
177  } else if (line.startsWith("yllcorner")) {
178  result.getJSONObject("domain").getJSONObject("axes").getJSONObject("y").put("start",
179  Double.valueOf(line.replace("yllcorner", "").trim()));
180  yllcorner = Double.valueOf(line.replace("yllcorner", "").trim());
181  } else if (line.startsWith("cellsize")) {
182  cellsize = Double.valueOf(line.replace("cellsize", "").trim());
183  } else if (line.startsWith("nrows")) {
184  nycols = Integer.valueOf(line.replace("nrows", "").trim());
185  continue;
186  } else if (line.startsWith("NODATA_value")) {
187  nodata = line.replace("NODATA_value", "").trim();
188  } else {
189  if (nxcols != null
190  && result.getJSONObject("domain").getJSONObject("axes").getJSONObject("x").has("start"))
191  result.getJSONObject("domain").getJSONObject("axes").getJSONObject("x").put("stop",
192  xllcorner + (cellsize * nxcols));
193  if (nycols != null
194  && result.getJSONObject("domain").getJSONObject("axes").getJSONObject("y").has("start"))
195  result.getJSONObject("domain").getJSONObject("axes").getJSONObject("y").put("stop",
196  yllcorner + (cellsize * nycols));
197  for (String val : line.split(" ")) {
198  if (val.equals(nodata)) {
199  zarray.put(JSONObject.NULL);
200  } else if(!val.trim().isEmpty()) {
201  zarray.put(Double.valueOf(val));
202  }
203  }
204  }
205  }
206 
207  break;
208  }
209  return result;
210  }
static JSONObject addCovJSONParameterAndRange(JSONObject covjson, String parameterName, String parameterURI, List< Object > values, String dataType)
Definition: CoverageResultFormatter.java:69
static JSONObject generateCOVJSONForXY(String coverageType)
Definition: CoverageResultFormatter.java:91

References CoverageResultFormatter.addCovJSONParameterAndRange(), and CoverageResultFormatter.generateCOVJSONForXY().

Referenced by CovJSONFormatter.formatter().

◆ createObservableParametersAndRanges()

JSONObject createObservableParametersAndRanges ( Map< String, Tuple< Boolean, String >>  parammap,
JSONObject  result,
JSONObject  geojson,
String  srsName 
)
76  {
77  JSONObject parameters=new JSONObject();
78  result.put("parameters",parameters);
79  Map<String,Integer> encodings=new TreeMap<String,Integer>();
80  for(String param:parammap.keySet()) {
81  if(parammap.get(param).getOne()) {
82  JSONObject parameter=new JSONObject();
83  parameter.put("type", "Parameter");
84  JSONObject paramdescription=new JSONObject();
85  paramdescription.put("description", paramdescription);
86  JSONObject categoryEncoding=new JSONObject();
87  parameter.put("categoryEncoding", categoryEncoding);
88  if(parammap.get(param).getTwo().equals("string")) {
89  JSONArray categories=new JSONArray();
90  parameter.put("categories", categories);
91  Integer catcounter=1;
92  for(String cat:columnsval.get(param).keySet()) {
93  if(!cat.equals(param)) {
94  if(cat.startsWith("[")) {
95  JSONArray arr=new JSONArray(cat);
96  for(int i=0;i<arr.length();i++) {
97  JSONObject category=new JSONObject();
98  categories.put(category);
99  category.put("id", arr.get(i).toString());
100  JSONObject categorylabel=new JSONObject();
101  category.put("label", categorylabel);
102  if(arr.get(i).toString().contains("/")) {
103  categorylabel.put("en", arr.get(i).toString().substring(arr.get(i).toString().lastIndexOf('/')+1));
104  }else {
105  categorylabel.put("en", arr.get(i).toString());
106  }
107  encodings.put(arr.get(i).toString(), catcounter);
108  categoryEncoding.put(arr.get(i).toString(),catcounter++);
109  }
110  }else {
111  JSONObject category=new JSONObject();
112  categories.put(category);
113  category.put("id", cat);
114  JSONObject categorylabel=new JSONObject();
115  category.put("label", categorylabel);
116  if(cat.contains("/")) {
117  categorylabel.put("en", cat.substring(cat.lastIndexOf('/')+1));
118  }else {
119  categorylabel.put("en", cat);
120  }
121  encodings.put(cat, catcounter);
122  categoryEncoding.put(cat,catcounter++);
123 
124  }
125 
126  }
127  }
128  }
129 
130 
131  /*JSONObject unit=new JSONObject();
132  parameter.put("unit", unit);
133  JSONObject unitlabel=new JSONObject();
134  unitlabel.put("en", "meter");
135  JSONObject unitsymbol=new JSONObject();
136  unit.put("label", unitlabel);
137  unit.put("symbol", unitsymbol);
138  unitsymbol.put("value","meter");
139  unitsymbol.put("type","http://www.opengis.net/def/uom/UCUM/");*/
140  JSONObject observedProperty=new JSONObject();
141  parameter.put("observedProperty", observedProperty);
142  observedProperty.put("id", param);
143  JSONObject observedPropertyLabel=new JSONObject();
144  observedProperty.put("label",observedPropertyLabel);
145  observedPropertyLabel.put("en", param.substring(param.lastIndexOf('/')+1));
146  parameters.put(param,parameter);
147  }
148  }
149  Tuple<String,String> types=this.getDomainTypeFromGeometryTypes(this.getGeometryTypes(geojson));
150  if(!types.getTwo().isEmpty()) {
151  result.put("domainType", types.getTwo());
152  result.put("type", types.getOne());
153  JSONArray referencing=new JSONArray();
154  result.put("referencing", referencing);
155  JSONObject ref=new JSONObject();
156  referencing.put(ref);
157  JSONArray coordinates=new JSONArray();
158  coordinates.put("x");
159  coordinates.put("y");
160  ref.put("coordinates", coordinates);
161  JSONObject system=new JSONObject();
162  ref.put("system", system);
163  system.put("type", "GeographicCRS");
164  system.put("id", "http://www.opengis.net/def/crs/EPSG/0/"+srsName.substring(srsName.lastIndexOf(':')+1));
165  if(types.getOne().contains("Collection")) {
166  JSONArray coverages=new JSONArray();
167  result.put("coverages", coverages);
168  for(int i=0;i<geojson.getJSONArray("features").length();i++) {
169  JSONObject coverage=new JSONObject();
170  coverage.put("type", "Coverage");
171  coverages.put(coverage);
172  JSONObject covdomain=new JSONObject();
173  coverage.put("domain",covdomain);
174  covdomain.put("type", "Domain");
175  JSONObject covaxes=new JSONObject();
176  covdomain.put("axes", covaxes);
177  JSONObject x=new JSONObject();
178  JSONObject y=new JSONObject();
179  x.put("values", new JSONArray());
180  y.put("values",new JSONArray());
181  covaxes.put("x", x);
182  covaxes.put("y", y);
183  JSONObject feature=geojson.getJSONArray("features").getJSONObject(i);
184  Geometry geom=geojsonreader.read(feature.getJSONObject("geometry").toString());
185  for(Coordinate coord:geom.getCoordinates()) {
186  x.getJSONArray("values").put(coord.getX());
187  y.getJSONArray("values").put(coord.getY());
188  }
189  JSONObject ranges=new JSONObject();
190  coverage.put("ranges",ranges);
191  for(String key:parammap.keySet()) {
192  if(parammap.get(key).getOne()) {
193  JSONObject range=new JSONObject();
194  ranges.put(key,range);
195  range.put("type", "NdArray");
196  if(parammap.get(key).getTwo().equals("string")) {
197  range.put("dataType","integer");
198  }else {
199  range.put("dataType",parammap.get(key).getTwo());
200  }
201  range.put("values", new JSONArray());
202  }
203  }
204  for(String key:feature.getJSONObject("properties").keySet()) {
205  if(parammap.get(key).getOne()) {
206  JSONArray arr=ranges.getJSONObject(key).getJSONArray("values");
207  if(parammap.get(key).getTwo().equals("string") && encodings.containsKey(feature.getJSONObject("properties").get(key).toString())) {
208  arr.put(encodings.get(feature.getJSONObject("properties").get(key).toString()));
209  }else {
210  arr.put(feature.getJSONObject("properties").get(key));
211  }
212  }
213  }
214  }
215  }else {
216  result.put("domain",new JSONObject());
217  JSONObject domain=result.getJSONObject("domain");
218  JSONObject axes=new JSONObject();
219  domain.put("axes", axes);
220  JSONObject x=new JSONObject();
221  JSONObject y=new JSONObject();
222  x.put("values", new JSONArray());
223  y.put("values",new JSONArray());
224  axes.put("x", x);
225  axes.put("y", y);
226  for(int i=0;i<geojson.getJSONArray("features").length();i++) {
227  JSONObject feature=geojson.getJSONArray("features").getJSONObject(i);
228  Geometry geom=geojsonreader.read(feature.getJSONObject("geometry").toString());
229  for(Coordinate coord:geom.getCoordinates()) {
230  x.getJSONArray("values").put(coord.getX());
231  y.getJSONArray("values").put(coord.getY());
232  }
233  }
234  JSONObject ranges=new JSONObject();
235  result.put("ranges",ranges);
236  for(String key:parammap.keySet()) {
237  JSONObject range=new JSONObject();
238  ranges.put(key,range);
239  range.put("type", "NdArray");
240  range.put("dataType",parammap.get(key).getTwo());
241  range.put("values", new JSONArray());
242  }
243  for(int i=0;i<geojson.getJSONArray("features").length();i++) {
244  JSONObject feature=geojson.getJSONArray("features").getJSONObject(i);
245  for(String key:feature.getJSONObject("properties").keySet()) {
246  if(parammap.get(key).getOne()) {
247  JSONArray arr=ranges.getJSONObject(key).getJSONArray("values");
248  arr.put(feature.getJSONObject("properties").get(key));
249  }
250  }
251  }
252  }
253 
254  }else {
255  //String geomtype=geojson.getJSONObject("featuresgetJSONObject("geometry").getString("type");
256  //JSONArray coordinates=geojson.getJSONObject("geometry").getJSONArray("coordinates");
257  }
258  return result;
259  }
Tuple< String, String > getDomainTypeFromGeometryTypes(Set< String > types)
Definition: CovJSONFormatter.java:48
Set< String > getGeometryTypes(JSONObject geojson)
Definition: CovJSONFormatter.java:38
static Map< String, Map< String, Integer > > columnsval
Definition: CoverageResultFormatter.java:20
GeoJSONReader geojsonreader
Definition: ResultFormatter.java:113

References CoverageResultFormatter.columnsval, ResultFormatter.geojsonreader, CovJSONFormatter.getDomainTypeFromGeometryTypes(), CovJSONFormatter.getGeometryTypes(), Tuple< T, T2 >.getOne(), and Tuple< T, T2 >.getTwo().

Referenced by CovJSONFormatter.formatter().

◆ extractObservableColumns()

static Map<String, Tuple<Boolean, String> > extractObservableColumns ( JSONObject  geojson)
staticinherited
22  {
23  CoverageJsonConverterImpl impl;
24 
25  Map<String, Tuple<Boolean, String>> columns = new TreeMap<String, Tuple<Boolean, String>>();
26  columnsval = new TreeMap<String, Map<String, Integer>>();
27  JSONArray features = geojson.getJSONArray("features");
28  for (int i = 0; i < features.length(); i++) {
29  JSONObject feature = geojson.getJSONArray("features").getJSONObject(i);
30  for (String key : feature.getJSONObject("properties").keySet()) {
31  if (!columns.containsKey(key)) {
32  try {
33  Number valuenum = feature.getNumber(key);
34  columns.put(key, new Tuple<>(true, "float"));
35  } catch (Exception e) {
36  try {
37  boolean valuebool = feature.getBoolean(key);
38  columns.put(key, new Tuple<>(true, "bool"));
39  } catch (Exception ex) {
40  if (!columnsval.containsKey(key)) {
41  columnsval.put(key, new TreeMap<>());
42  }
43  if (!columnsval.get(key)
44  .containsKey(feature.getJSONObject("properties").get(key).toString())) {
45  columnsval.get(key).put(feature.getJSONObject("properties").get(key).toString(), 0);
46  }
47  columnsval.get(key).put(key, columnsval.get(key).put(
48  feature.getJSONObject("properties").get(key).toString(),
49  columnsval.get(key).get(feature.getJSONObject("properties").get(key).toString())
50  + 1));
51 
52  }
53  }
54  }
55  }
56  }
57  for (String key : geojson.getJSONArray("features").getJSONObject(0).getJSONObject("properties").keySet()) {
58  if (!columns.containsKey(key)) {
59  if (columnsval.get(key).size() == geojson.getJSONArray("features").length()) {
60  columns.put(key, new Tuple<>(false, null));
61  } else {
62  columns.put(key, new Tuple<>(true, "string"));
63  }
64  }
65  }
66  return columns;
67  }

References CoverageResultFormatter.columnsval.

Referenced by CovJSONFormatter.formatter().

◆ formatter() [1/2]

String formatter ( Model  results,
String  startingElement,
String  featuretype,
String  propertytype,
String  typeColumn,
Boolean  onlyproperty,
Boolean  onlyhits,
String  srsName,
String  indvar,
String  epsg,
List< String >  eligiblenamespaces,
List< String >  noteligiblenamespaces,
StyleObject  mapstyle,
Boolean  alternativeFormat,
Boolean  invertXY,
Boolean  coverage,
Writer  out 
) throws XMLStreamException, IOException
inherited

◆ formatter() [2/2]

String formatter ( ResultSet  results,
String  startingElement,
String  featuretype,
String  propertytype,
String  typeColumn,
Boolean  onlyproperty,
Boolean  onlyhits,
String  srsName,
String  indvar,
String  epsg,
List< String >  eligiblenamespaces,
List< String >  noteligiblenamespaces,
StyleObject  mapstyle,
Boolean  alternativeFormat,
Boolean  invertXY,
Boolean  coverage,
Writer  out 
) throws XMLStreamException, JSONException, IOException

Reimplemented from ResultFormatter.

267  {
268  JSONObject result=new JSONObject();
269  System.out.println("COVERAGEJSON Formatter: "+coverage);
270  if(coverage) {
271  String lastInd=null;
272  System.out.println("Has Result? "+results.hasNext());
273  while(results.hasNext()) {
274  QuerySolution solu=results.next();
275  Iterator<String> varnames=solu.varNames();
276  if(!solu.get(indvar).toString().equals(lastInd) || lastInd.isEmpty()) {
278  }
279  while(varnames.hasNext()) {
280  String name=varnames.next();
281  System.out.println(name+" "+solu.get(name).toString());
282  if(name.endsWith("_geom")) {
283  String res=this.parseCoverageLiteral(solu.get(name).toString().substring(0,solu.get(name).toString().indexOf("^^")),
284  solu.get(name).toString().substring(solu.get(name).toString().indexOf("^^")+2), epsg, srsName);
285  result=convertLiteralDataToCoverageJSON(solu.get(name).toString().substring(0,solu.get(name).toString().indexOf("^^")),solu.get(name).toString().substring(solu.get(name).toString().indexOf("^^")+2));
286  }else if(name.equalsIgnoreCase(indvar)){
287  continue;
288  }
289  }
290  lastInd=solu.get(indvar).toString();
291  }
292  }else {
293  ResultFormatter format = resultMap.get("geojson");
294  JSONObject geojson = new JSONObject(
295  format.formatter(results,startingElement, featuretype,propertytype, typeColumn, onlyproperty,onlyhits,
296  srsName,indvar,epsg,eligiblenamespaces,noteligiblenamespaces,mapstyle,alternativeFormat,invertXY,coverage,null));
297  lastQueriedElemCount=format.lastQueriedElemCount;
298  result=new JSONObject();
299  result.put("type", "Coverage");
300  result=createObservableParametersAndRanges(CoverageResultFormatter.extractObservableColumns(geojson),result,geojson,srsName);
301  }
302  return result.toString(2);
303  }
JSONObject createObservableParametersAndRanges(Map< String, Tuple< Boolean, String >> parammap, JSONObject result, JSONObject geojson, String srsName)
Definition: CovJSONFormatter.java:76
static JSONObject convertLiteralDataToCoverageJSON(String literalValue, String literalType)
Definition: CoverageResultFormatter.java:120
Integer lastQueriedElemCount
Definition: ResultFormatter.java:87
String parseCoverageLiteral(String literalValue, String literalType, String epsg, String srsName)
Definition: ResultFormatter.java:413

References CoverageResultFormatter.convertLiteralDataToCoverageJSON(), CovJSONFormatter.createObservableParametersAndRanges(), CoverageResultFormatter.extractObservableColumns(), ResultFormatter.formatter(), ResultFormatter.lastQueriedElemCount, ResultFormatter.parseCoverageLiteral(), and ResultFormatter.resultMap.

◆ generateCOVJSONForXY()

static JSONObject generateCOVJSONForXY ( String  coverageType)
staticinherited
91  {
92  JSONObject result = new JSONObject();
93  result.put("type", "Coverage");
94  JSONObject domain = new JSONObject();
95  result.put("domain", domain);
96  domain.put("type", "Domain");
97  domain.put("domainType", coverageType);
98  JSONObject axes = new JSONObject();
99  domain.put("axes", axes);
100  axes.put("x", new JSONObject());
101  axes.getJSONObject("x").put("values", new JSONArray());
102  axes.put("y", new JSONObject());
103  axes.getJSONObject("y").put("values", new JSONArray());
104  JSONArray referencing = new JSONArray();
105  domain.put("referencing", referencing);
106  JSONObject ref = new JSONObject();
107  referencing.put(ref);
108  JSONArray coordinates = new JSONArray();
109  ref.put("coordinates", coordinates);
110  coordinates.put("x");
111  coordinates.put("y");
112  ref.put("system", new JSONObject());
113  ref.getJSONObject("system").put("type", "GeographicCRS");
114  ref.getJSONObject("system").put("id", "http://www.opengis.net/def/crs/EPSG/0/4326");
115  result.put("parameters", new JSONObject());
116  result.put("ranges", new JSONObject());
117  return result;
118  }

Referenced by CoverageResultFormatter.convertLiteralDataToCoverageJSON().

◆ getDomainTypeFromGeometryTypes() [1/2]

Tuple<String,String> getDomainTypeFromGeometryTypes ( Set< String >  types)
48  {
49  if(types.size()==1) {
50  if(types.contains("Polygon")) {
51  return new Tuple<>("Coverage","MultiPolygon");
52  }
53  if(types.contains("LineString")) {
54  return new Tuple<>("Coverage","Trajectory");
55  }
56  if(types.contains("Point")) {
57  return new Tuple<>("CoverageCollection","Point");
58  }
59  }
60  return new Tuple<>("CoverageCollection","");
61  }

Referenced by CovJSONFormatter.createObservableParametersAndRanges().

◆ getDomainTypeFromGeometryTypes() [2/2]

Tuple<String,String> getDomainTypeFromGeometryTypes ( String  type)
63  {
64  if(type.contains("Polygon")) {
65  return new Tuple<>("Coverage","MultiPolygon");
66  }
67  if(type.contains("LineString")) {
68  return new Tuple<>("CoverageCollection","Trajectory");
69  }
70  if(type.contains("Point")) {
71  return new Tuple<>("CoverageCollection","Point");
72  }
73  return new Tuple<>("CoverageCollection","");
74  }

◆ getFormatter()

static ResultFormatter getFormatter ( String  formatString)
staticinherited
130  {
131  formatString=formatString.toLowerCase();
132  if(resultMap.containsKey(formatString)) {
133  return resultMap.get(formatString);
134  }
135  if(formatString.contains("geojsonseq")) {
136  return resultMap.get("geojsonseq");
137  }
138  if(formatString.equals("application/vnd.geo+json+ld") || formatString.contains("geojsonld") || formatString.contains("geo+json+ld")) {
139  return resultMap.get("geojsonld");
140  }
141  if(formatString.equals("application/geojson") || formatString.contains("geojson") || formatString.contains("geo+json")) {
142  return resultMap.get("geojson");
143  }
144  if(formatString.contains("gml")) {
145  return resultMap.get("gml");
146  }
147  if(formatString.contains("html")) {
148  return resultMap.get("html");
149  }
150  if(formatString.contains("csv")) {
151  return resultMap.get("csv");
152  }
153  if(formatString.contains("ldapi")) {
154  return resultMap.get("ldapi");
155  }
156  if(formatString.contains("gpx")) {
157  return resultMap.get("gpx");
158  }
159  if(formatString.contains("svg")) {
160  return resultMap.get("svg");
161  }
162  if(formatString.contains("cypher")) {
163  return resultMap.get("cypher");
164  }
165  if(formatString.contains("osmlink")) {
166  return resultMap.get("osmlink");
167  }
168  if(formatString.contains("osm")) {
169  return resultMap.get("osm");
170  }
171  if(formatString.contains("ttl")) {
172  return resultMap.get("ttl");
173  }
174  if(formatString.contains("rdfjson")) {
175  return resultMap.get("rdfjson");
176  }
177  if(formatString.contains("rdf")) {
178  return resultMap.get("rdf");
179  }
180  if(formatString.contains("n3")) {
181  return resultMap.get("n3");
182  }
183  if(formatString.contains("jsonp")) {
184  return resultMap.get("jsonp");
185  }
186  if(formatString.contains("jsonn")) {
187  return resultMap.get("jsonn");
188  }
189  if(formatString.contains("nt")) {
190  return resultMap.get("nt");
191  }
192  if(formatString.contains("olc")) {
193  return resultMap.get("olc");
194  }
195  if(formatString.contains("rt")) {
196  return resultMap.get("rt");
197  }
198  if(formatString.contains("nq")) {
199  return resultMap.get("nq");
200  }
201  if(formatString.contains("trig")) {
202  return resultMap.get("trig");
203  }
204  if(formatString.contains("trix")) {
205  return resultMap.get("trix");
206  }
207  if(formatString.contains("geohash")) {
208  return resultMap.get("geohash");
209  }
210  if(formatString.contains("topojson")) {
211  return resultMap.get("topojson");
212  }
213  if(formatString.contains("covjson")) {
214  return resultMap.get("covjson");
215  }
216  if(formatString.contains("jsonseq")) {
217  return resultMap.get("jsonseq");
218  }
219  if(formatString.contains("jsonld")) {
220  return resultMap.get("jsonld");
221  }
222  if(formatString.contains("json")) {
223  return resultMap.get("geojson");
224  }
225  if(formatString.contains("kml")) {
226  return resultMap.get("kml");
227  }
228  if(formatString.contains("hdt")) {
229  return resultMap.get("hdt");
230  }
231  if(formatString.contains("ewkt")) {
232  return resultMap.get("ewkt");
233  }
234  if(formatString.contains("wkt")) {
235  return resultMap.get("wkt");
236  }
237  if(formatString.contains("mvt")) {
238  return resultMap.get("mvt");
239  }
240  if(formatString.contains("latlon")) {
241  return resultMap.get("latlon");
242  }
243  if(formatString.contains("wkb")) {
244  return resultMap.get("wkb");
245  }
246  if(formatString.contains("geouri")) {
247  return resultMap.get("geouri");
248  }
249  if(formatString.contains("mapml")) {
250  return resultMap.get("mapml");
251  }
252  if(formatString.contains("geohash")) {
253  return resultMap.get("geohash");
254  }
255  if(formatString.contains("geotiff")) {
256  return resultMap.get("geotiff");
257  }
258  if(formatString.contains("xlsx")) {
259  return resultMap.get("xlsx");
260  }
261  if(formatString.contains("xls")) {
262  return resultMap.get("xls");
263  }
264  if(formatString.contains("xyz")) {
265  return resultMap.get("xyz");
266  }
267  if(formatString.contains("gxl")) {
268  return resultMap.get("gxl");
269  }
270  if(formatString.contains("gexf")) {
271  return resultMap.get("gexf");
272  }
273  if(formatString.contains("covjson")) {
274  return resultMap.get("covjson");
275  }
276  if(formatString.contains("tgf")) {
277  return resultMap.get("tgf");
278  }
279  if(formatString.contains("polyshape")) {
280  return resultMap.get("polyshape");
281  }
282  if(formatString.contains("hextuples")) {
283  return resultMap.get("hextuples");
284  }
285  return resultMap.get("html");
286  }

References ResultFormatter.resultMap.

Referenced by WebService.collectionInformation(), WebService.collectionItems(), WebService.collections(), WebService.docCollectionItemJSON(), WebService.docCollectionJSON(), TripleStoreConnector.executeLDAPIQuery(), TripleStoreConnector.executePropertyValueQuery(), TripleStoreConnector.executeQuery(), and WebService.queryables().

◆ getGeometryTypes()

Set<String> getGeometryTypes ( JSONObject  geojson)
38  {
39  Set<String> result=new TreeSet<String>();
40  for(int i=0;i<geojson.getJSONArray("features").length();i++) {
41  JSONObject feature=geojson.getJSONArray("features").getJSONObject(i);
42  result.add(feature.getJSONObject("geometry").getString("type"));
43  }
44  return result;
45  }

Referenced by CovJSONFormatter.createObservableParametersAndRanges().

◆ parseCoverageLiteral()

String parseCoverageLiteral ( String  literalValue,
String  literalType,
String  epsg,
String  srsName 
)
inherited

Reimplemented in VectorResultFormatter.

413  {
414  if(literalType.contains("wkb")) {
415 
416  }else if(literalType.contains("covjson")) {
417 
418  }else if(literalType.contains("xyz")) {
419  return literalValue;
420  }
421  return null;
422  }

Referenced by CovJSONFormatter.formatter(), and ResultFormatter.parseLiteral().

◆ parseLiteral()

Object parseLiteral ( String  literalValue,
String  literalType,
String  epsg,
String  srsName 
)
inherited
424  {
425  Geometry geom=parseVectorLiteral(literalValue, literalType, epsg, srsName);
426  if(geom!=null) {
427  return geom;
428  }
429  String cov=parseCoverageLiteral(literalValue, literalType, epsg, srsName);
430  if(cov!=null) {
431  return cov;
432  }
433  return null;
434  }
Geometry parseVectorLiteral(String literalValue, String literalType, String epsg, String srsName)
Definition: ResultFormatter.java:368

References ResultFormatter.parseCoverageLiteral(), and ResultFormatter.parseVectorLiteral().

Referenced by RasterWKBFormatter.formatter(), XYZASCIIFormatter.formatter(), HexTuplesFormatter.formatter(), and TTLFormatter.formatter().

◆ parseVectorLiteral()

Geometry parseVectorLiteral ( String  literalValue,
String  literalType,
String  epsg,
String  srsName 
)
inherited
368  {
369  Geometry geom=null;
370  if(literalType.toLowerCase().contains("wkt")) {
371  if(literalValue.trim().startsWith("<http")) {
372  try {
373  geom=this.wktreader.read(literalValue.substring(literalValue.lastIndexOf(">")+1));
374  epsg=literalValue.substring(literalValue.indexOf("<")+1,literalValue.lastIndexOf(">"));
375  Integer srid=Integer.valueOf(epsg.substring(epsg.lastIndexOf("/")+1));
376  geom.setSRID(srid);
377  epsg="EPSG:"+srid;
378  } catch (ParseException e) {
379  return null;
380  }
381  }else {
382  try {
383  geom=this.wktreader.read(literalValue);
384  } catch (ParseException e) {
385  return null;
386  }
387  }
388  }
389  else if(literalType.toLowerCase().contains("geojson")) {
390  geom=this.geojsonreader.read(literalValue);
391  }
392  else if(literalType.toLowerCase().contains("kml")) {
393  try {
394  geom=this.kmlreader.read(literalValue);
395  } catch (ParseException e) {
396  // TODO Auto-generated catch block
397  e.printStackTrace();
398  }
399  }
400  else if(literalType.toLowerCase().contains("wkb")) {
401  try {
402  geom=this.wkbreader.read(WKBReader.hexToBytes(literalValue));
403  } catch (ParseException e) {
404  return null;
405  }
406  }
407  if(geom!=null) {
408  geom=ReprojectionUtils.reproject(geom, epsg,srsName);
409  return geom;
410  }
411  return null;
412  }
WKBReader wkbreader
Definition: ResultFormatter.java:109
KMLReader kmlreader
Definition: ResultFormatter.java:111
WKTReader wktreader
Definition: ResultFormatter.java:107

References ReprojectionUtils.reproject().

Referenced by GeoJSONFormatter.formatJSONObject(), GeoJSONFormatter.formatJSONStreaming(), RasterWKBFormatter.formatter(), XYZASCIIFormatter.formatter(), HexTuplesFormatter.formatter(), TTLFormatter.formatter(), CSVFormatter.formatter(), EWKTFormatter.formatter(), GeoURIFormatter.formatter(), HexWKBFormatter.formatter(), LatLonTextFormatter.formatter(), ODSFormatter.formatter(), OpenLocationCodeFormatter.formatter(), OSMLinkFormatter.formatter(), PostgreSQLFormatter.formatter(), TWKBFormatter.formatter(), WKBFormatter.formatter(), WKTFormatter.formatter(), XLSFormatter.formatter(), XLSXFormatter.formatter(), and ResultFormatter.parseLiteral().

Member Data Documentation

◆ columnsval

Map<String, Map<String, Integer> > columnsval
staticinherited

◆ constructQuery

◆ contextMapper

◆ coverageLiteralMap

Set<String> coverageLiteralMap =new TreeSet<>()
staticinherited

◆ definition

String definition =""
inherited

Referenced by ASCIIGridFormatter.ASCIIGridFormatter(), BSONFormatter.BSONFormatter(), WebService.collectionInformation(), CovJSONFormatter.CovJSONFormatter(), CSVFormatter.CSVFormatter(), CypherFormatter.CypherFormatter(), EWKTFormatter.EWKTFormatter(), GDFFormatter.GDFFormatter(), GeoHashFormatter.GeoHashFormatter(), GeoJSONFormatter.GeoJSONFormatter(), GeoJSONLDFormatter.GeoJSONLDFormatter(), GeoJSONSeqFormatter.GeoJSONSeqFormatter(), GeoRSSFormatter.GeoRSSFormatter(), GeoTIFFFormatter.GeoTIFFFormatter(), GeoURIFormatter.GeoURIFormatter(), GEXFFormatter.GEXFFormatter(), GMLFormatter.GMLFormatter(), GPXFormatter.GPXFormatter(), GraphMLFormatter.GraphMLFormatter(), GXLFormatter.GXLFormatter(), HDTFormatter.HDTFormatter(), HexTuplesFormatter.HexTuplesFormatter(), HexWKBFormatter.HexWKBFormatter(), HTMLFormatter.HTMLFormatter(), JSONLDFormatter.JSONLDFormatter(), JSONPFormatter.JSONPFormatter(), JSONSeqFormatter.JSONSeqFormatter(), KMLFormatter.KMLFormatter(), LDAPIJSONFormatter.LDAPIJSONFormatter(), MapMLFormatter.MapMLFormatter(), MVTFormatter.MVTFormatter(), N3Formatter.N3Formatter(), NQuadsFormatter.NQuadsFormatter(), NTFormatter.NTFormatter(), ODSFormatter.ODSFormatter(), OpenLocationCodeFormatter.OpenLocationCodeFormatter(), OSMFormatter.OSMFormatter(), PostgreSQLFormatter.PostgreSQLFormatter(), RDFEXIFormatter.RDFEXIFormatter(), RDFFormatter.RDFFormatter(), RDFJSONFormatter.RDFJSONFormatter(), RDFThriftFormatter.RDFThriftFormatter(), SVGFormatter.SVGFormatter(), TGFFormatter.TGFFormatter(), TLPFormatter.TLPFormatter(), TopoJSONFormatter.TopoJSONFormatter(), TrigFormatter.TrigFormatter(), TrixFormatter.TrixFormatter(), TTLFormatter.TTLFormatter(), TWKBFormatter.TWKBFormatter(), WKBFormatter.WKBFormatter(), WKTFormatter.WKTFormatter(), X3DFormatter.X3DFormatter(), XLSFormatter.XLSFormatter(), XLSXFormatter.XLSXFormatter(), XYZASCIIFormatter.XYZASCIIFormatter(), and YAMLFormatter.YAMLFormatter().

◆ exposedType

String exposedType ="application/vnd.geojson"
inherited

Referenced by ASCIIGridFormatter.ASCIIGridFormatter(), BSONFormatter.BSONFormatter(), CovJSONFormatter.CovJSONFormatter(), CSVFormatter.CSVFormatter(), CypherFormatter.CypherFormatter(), EWKTFormatter.EWKTFormatter(), GDFFormatter.GDFFormatter(), GeoHashFormatter.GeoHashFormatter(), GeoJSONFormatter.GeoJSONFormatter(), GeoJSONLDFormatter.GeoJSONLDFormatter(), GeoJSONSeqFormatter.GeoJSONSeqFormatter(), GeoRSSFormatter.GeoRSSFormatter(), GeoTIFFFormatter.GeoTIFFFormatter(), GeoURIFormatter.GeoURIFormatter(), GEXFFormatter.GEXFFormatter(), GMLCOVFormatter.GMLCOVFormatter(), GMLFormatter.GMLFormatter(), GPXFormatter.GPXFormatter(), GraphMLFormatter.GraphMLFormatter(), GXFFormatter.GXFFormatter(), GXLFormatter.GXLFormatter(), HDTFormatter.HDTFormatter(), HexRasterWKBFormatter.HexRasterWKBFormatter(), HexTuplesFormatter.HexTuplesFormatter(), HexWKBFormatter.HexWKBFormatter(), HTMLFormatter.HTMLFormatter(), JSONFormatter.JSONFormatter(), JSONLDFormatter.JSONLDFormatter(), JSONPFormatter.JSONPFormatter(), JSONSeqFormatter.JSONSeqFormatter(), KMLFormatter.KMLFormatter(), LatLonTextFormatter.LatLonTextFormatter(), LDAPIJSONFormatter.LDAPIJSONFormatter(), MapMLFormatter.MapMLFormatter(), MVTFormatter.MVTFormatter(), N3Formatter.N3Formatter(), NQuadsFormatter.NQuadsFormatter(), NTFormatter.NTFormatter(), ODSFormatter.ODSFormatter(), OpenLocationCodeFormatter.OpenLocationCodeFormatter(), OSMFormatter.OSMFormatter(), OSMLinkFormatter.OSMLinkFormatter(), PolyshapeFormatter.PolyshapeFormatter(), PostgreSQLFormatter.PostgreSQLFormatter(), RasterWKBFormatter.RasterWKBFormatter(), RDFEXIFormatter.RDFEXIFormatter(), RDFFormatter.RDFFormatter(), RDFJSONFormatter.RDFJSONFormatter(), RDFThriftFormatter.RDFThriftFormatter(), SVGFormatter.SVGFormatter(), TGFFormatter.TGFFormatter(), TLPFormatter.TLPFormatter(), TopoJSONFormatter.TopoJSONFormatter(), TrigFormatter.TrigFormatter(), TrixFormatter.TrixFormatter(), TTLFormatter.TTLFormatter(), TWKBFormatter.TWKBFormatter(), WKBFormatter.WKBFormatter(), WKTFormatter.WKTFormatter(), X3DFormatter.X3DFormatter(), XLSFormatter.XLSFormatter(), XLSXFormatter.XLSXFormatter(), XYZASCIIFormatter.XYZASCIIFormatter(), and YAMLFormatter.YAMLFormatter().

◆ fileextension

String fileextension ="json"
inherited

Referenced by ASCIIGridFormatter.ASCIIGridFormatter(), BSONFormatter.BSONFormatter(), WebService.collectionItems(), CovJSONFormatter.CovJSONFormatter(), CSVFormatter.CSVFormatter(), CypherFormatter.CypherFormatter(), WebService.docCollectionItemJSON(), WebService.docCollectionJSON(), EWKTFormatter.EWKTFormatter(), GDFFormatter.GDFFormatter(), GeoHashFormatter.GeoHashFormatter(), GeoJSONFormatter.GeoJSONFormatter(), GeoJSONLDFormatter.GeoJSONLDFormatter(), GeoJSONSeqFormatter.GeoJSONSeqFormatter(), GeoRSSFormatter.GeoRSSFormatter(), GeoTIFFFormatter.GeoTIFFFormatter(), GeoURIFormatter.GeoURIFormatter(), GEXFFormatter.GEXFFormatter(), GMLCOVFormatter.GMLCOVFormatter(), GMLFormatter.GMLFormatter(), GPXFormatter.GPXFormatter(), GraphMLFormatter.GraphMLFormatter(), GXFFormatter.GXFFormatter(), GXLFormatter.GXLFormatter(), HDTFormatter.HDTFormatter(), HexRasterWKBFormatter.HexRasterWKBFormatter(), HexTuplesFormatter.HexTuplesFormatter(), HexWKBFormatter.HexWKBFormatter(), HTMLFormatter.HTMLFormatter(), JSONFormatter.JSONFormatter(), JSONLDFormatter.JSONLDFormatter(), JSONPFormatter.JSONPFormatter(), JSONSeqFormatter.JSONSeqFormatter(), KMLFormatter.KMLFormatter(), LatLonTextFormatter.LatLonTextFormatter(), LDAPIJSONFormatter.LDAPIJSONFormatter(), MapMLFormatter.MapMLFormatter(), MVTFormatter.MVTFormatter(), N3Formatter.N3Formatter(), NQuadsFormatter.NQuadsFormatter(), NTFormatter.NTFormatter(), ODSFormatter.ODSFormatter(), OpenLocationCodeFormatter.OpenLocationCodeFormatter(), OSMFormatter.OSMFormatter(), OSMLinkFormatter.OSMLinkFormatter(), PolyshapeFormatter.PolyshapeFormatter(), PostgreSQLFormatter.PostgreSQLFormatter(), RasterWKBFormatter.RasterWKBFormatter(), RDFEXIFormatter.RDFEXIFormatter(), RDFFormatter.RDFFormatter(), RDFJSONFormatter.RDFJSONFormatter(), RDFThriftFormatter.RDFThriftFormatter(), SVGFormatter.SVGFormatter(), TGFFormatter.TGFFormatter(), TLPFormatter.TLPFormatter(), TopoJSONFormatter.TopoJSONFormatter(), TrigFormatter.TrigFormatter(), TrixFormatter.TrixFormatter(), TTLFormatter.TTLFormatter(), TWKBFormatter.TWKBFormatter(), WKBFormatter.WKBFormatter(), WKTFormatter.WKTFormatter(), X3DFormatter.X3DFormatter(), XLSFormatter.XLSFormatter(), XLSXFormatter.XLSXFormatter(), XYZASCIIFormatter.XYZASCIIFormatter(), and YAMLFormatter.YAMLFormatter().

◆ FLUSHTHRESHOLD

◆ geojsonreader

GeoJSONReader geojsonreader =new GeoJSONReader()
inherited

◆ kmlreader

KMLReader kmlreader =new KMLReader()
inherited

◆ label

String label ="JSON"
inherited

Referenced by ResultFormatter.addToMaps(), ASCIIGridFormatter.ASCIIGridFormatter(), BSONFormatter.BSONFormatter(), HTMLFormatter.collectColumns(), CovJSONFormatter.CovJSONFormatter(), CSVFormatter.CSVFormatter(), CypherFormatter.CypherFormatter(), EWKTFormatter.EWKTFormatter(), GDFFormatter.GDFFormatter(), GeoHashFormatter.GeoHashFormatter(), GeoJSONFormatter.GeoJSONFormatter(), GeoJSONLDFormatter.GeoJSONLDFormatter(), GeoJSONSeqFormatter.GeoJSONSeqFormatter(), GeoRSSFormatter.GeoRSSFormatter(), GeoTIFFFormatter.GeoTIFFFormatter(), GeoURIFormatter.GeoURIFormatter(), GEXFFormatter.GEXFFormatter(), GMLCOVFormatter.GMLCOVFormatter(), GMLFormatter.GMLFormatter(), GPXFormatter.GPXFormatter(), GraphMLFormatter.GraphMLFormatter(), GXFFormatter.GXFFormatter(), GXLFormatter.GXLFormatter(), HDTFormatter.HDTFormatter(), HexRasterWKBFormatter.HexRasterWKBFormatter(), HexTuplesFormatter.HexTuplesFormatter(), HexWKBFormatter.HexWKBFormatter(), HTMLFormatter.HTMLFormatter(), JSONFormatter.JSONFormatter(), JSONLDFormatter.JSONLDFormatter(), JSONPFormatter.JSONPFormatter(), JSONSeqFormatter.JSONSeqFormatter(), KMLFormatter.KMLFormatter(), LatLonTextFormatter.LatLonTextFormatter(), LDAPIJSONFormatter.LDAPIJSONFormatter(), MapMLFormatter.MapMLFormatter(), MVTFormatter.MVTFormatter(), N3Formatter.N3Formatter(), NQuadsFormatter.NQuadsFormatter(), NTFormatter.NTFormatter(), ODSFormatter.ODSFormatter(), OpenLocationCodeFormatter.OpenLocationCodeFormatter(), OSMFormatter.OSMFormatter(), OSMLinkFormatter.OSMLinkFormatter(), PolyshapeFormatter.PolyshapeFormatter(), PostgreSQLFormatter.PostgreSQLFormatter(), RasterWKBFormatter.RasterWKBFormatter(), RDFEXIFormatter.RDFEXIFormatter(), RDFFormatter.RDFFormatter(), RDFJSONFormatter.RDFJSONFormatter(), RDFThriftFormatter.RDFThriftFormatter(), SVGFormatter.SVGFormatter(), TGFFormatter.TGFFormatter(), TLPFormatter.TLPFormatter(), TopoJSONFormatter.TopoJSONFormatter(), TrigFormatter.TrigFormatter(), TrixFormatter.TrixFormatter(), TTLFormatter.TTLFormatter(), TWKBFormatter.TWKBFormatter(), WKBFormatter.WKBFormatter(), WKTFormatter.WKTFormatter(), X3DFormatter.X3DFormatter(), XLSFormatter.XLSFormatter(), XLSXFormatter.XLSXFormatter(), XYZASCIIFormatter.XYZASCIIFormatter(), and YAMLFormatter.YAMLFormatter().

◆ labelMap

Map<String,String> labelMap =new TreeMap<>()
staticinherited

◆ lastQueriedElemCount

Integer lastQueriedElemCount =0
inherited

Referenced by TripleStoreConnector.executePropertyValueQuery(), TripleStoreConnector.executeQuery(), GeoJSONFormatter.formatJSONObject(), GeoJSONFormatter.formatJSONStreaming(), GeoHashFormatter.formatter(), CovJSONFormatter.formatter(), RasterWKBFormatter.formatter(), XYZASCIIFormatter.formatter(), HTMLFormatter.formatter(), CypherFormatter.formatter(), GDFFormatter.formatter(), GEXFFormatter.formatter(), GraphMLFormatter.formatter(), GXLFormatter.formatter(), HDTFormatter.formatter(), HexTuplesFormatter.formatter(), LDAPIJSONFormatter.formatter(), N3Formatter.formatter(), NQuadsFormatter.formatter(), NTFormatter.formatter(), RDFEXIFormatter.formatter(), RDFFormatter.formatter(), RDFJSONFormatter.formatter(), RDFThriftFormatter.formatter(), TGFFormatter.formatter(), TrigFormatter.formatter(), TrixFormatter.formatter(), TTLFormatter.formatter(), BSONFormatter.formatter(), CSVFormatter.formatter(), EWKTFormatter.formatter(), GeoJSONLDFormatter.formatter(), GeoJSONSeqFormatter.formatter(), GeoURIFormatter.formatter(), GMLFormatter.formatter(), GPXFormatter.formatter(), HexWKBFormatter.formatter(), JSONFormatter.formatter(), JSONLDFormatter.formatter(), JSONPFormatter.formatter(), JSONSeqFormatter.formatter(), KMLFormatter.formatter(), LatLonTextFormatter.formatter(), MapMLFormatter.formatter(), MVTFormatter.formatter(), ODSFormatter.formatter(), OpenLocationCodeFormatter.formatter(), OSMFormatter.formatter(), OSMLinkFormatter.formatter(), PostgreSQLFormatter.formatter(), TWKBFormatter.formatter(), WKBFormatter.formatter(), WKTFormatter.formatter(), XLSFormatter.formatter(), XLSXFormatter.formatter(), YAMLFormatter.formatter(), and SVGFormatter.formatter().

◆ mediatypes

final String [] mediatypes
staticinherited
Initial value:
= {
MediaType.TEXT_PLAIN,
"application/vnd.geo+json+ld",
"text/csv",
}

◆ mimeType

String mimeType ="text/plain"
inherited

Referenced by ResultFormatter.addToMaps(), ASCIIGridFormatter.ASCIIGridFormatter(), BSONFormatter.BSONFormatter(), WebService.collectionItems(), WebService.collections(), CovJSONFormatter.CovJSONFormatter(), CSVFormatter.CSVFormatter(), CypherFormatter.CypherFormatter(), WebService.docCollectionItemJSON(), WebService.docCollectionJSON(), EWKTFormatter.EWKTFormatter(), GDFFormatter.GDFFormatter(), GeoHashFormatter.GeoHashFormatter(), GeoJSONFormatter.GeoJSONFormatter(), GeoJSONLDFormatter.GeoJSONLDFormatter(), GeoJSONSeqFormatter.GeoJSONSeqFormatter(), GeoRSSFormatter.GeoRSSFormatter(), GeoTIFFFormatter.GeoTIFFFormatter(), GeoURIFormatter.GeoURIFormatter(), GEXFFormatter.GEXFFormatter(), GMLCOVFormatter.GMLCOVFormatter(), GMLFormatter.GMLFormatter(), GPXFormatter.GPXFormatter(), GraphMLFormatter.GraphMLFormatter(), GXFFormatter.GXFFormatter(), GXLFormatter.GXLFormatter(), HDTFormatter.HDTFormatter(), HexRasterWKBFormatter.HexRasterWKBFormatter(), HexTuplesFormatter.HexTuplesFormatter(), HexWKBFormatter.HexWKBFormatter(), HTMLFormatter.HTMLFormatter(), JSONFormatter.JSONFormatter(), JSONLDFormatter.JSONLDFormatter(), JSONPFormatter.JSONPFormatter(), JSONSeqFormatter.JSONSeqFormatter(), KMLFormatter.KMLFormatter(), LatLonTextFormatter.LatLonTextFormatter(), LDAPIJSONFormatter.LDAPIJSONFormatter(), MapMLFormatter.MapMLFormatter(), MVTFormatter.MVTFormatter(), N3Formatter.N3Formatter(), NQuadsFormatter.NQuadsFormatter(), NTFormatter.NTFormatter(), ODSFormatter.ODSFormatter(), OpenLocationCodeFormatter.OpenLocationCodeFormatter(), OSMFormatter.OSMFormatter(), OSMLinkFormatter.OSMLinkFormatter(), PolyshapeFormatter.PolyshapeFormatter(), PostgreSQLFormatter.PostgreSQLFormatter(), RasterWKBFormatter.RasterWKBFormatter(), RDFEXIFormatter.RDFEXIFormatter(), RDFFormatter.RDFFormatter(), RDFJSONFormatter.RDFJSONFormatter(), RDFThriftFormatter.RDFThriftFormatter(), SVGFormatter.SVGFormatter(), TGFFormatter.TGFFormatter(), TLPFormatter.TLPFormatter(), TopoJSONFormatter.TopoJSONFormatter(), TrigFormatter.TrigFormatter(), TrixFormatter.TrixFormatter(), TTLFormatter.TTLFormatter(), TWKBFormatter.TWKBFormatter(), WKBFormatter.WKBFormatter(), WKTFormatter.WKTFormatter(), X3DFormatter.X3DFormatter(), XLSFormatter.XLSFormatter(), XLSXFormatter.XLSXFormatter(), XYZASCIIFormatter.XYZASCIIFormatter(), and YAMLFormatter.YAMLFormatter().

◆ resultMap

◆ styleformatter

◆ urlformat

String urlformat ="json"
inherited

Referenced by ASCIIGridFormatter.ASCIIGridFormatter(), BSONFormatter.BSONFormatter(), WebService.collectionInformation(), CovJSONFormatter.CovJSONFormatter(), CSVFormatter.CSVFormatter(), CypherFormatter.CypherFormatter(), EWKTFormatter.EWKTFormatter(), GDFFormatter.GDFFormatter(), GeoHashFormatter.GeoHashFormatter(), GeoJSONFormatter.GeoJSONFormatter(), GeoJSONLDFormatter.GeoJSONLDFormatter(), GeoJSONSeqFormatter.GeoJSONSeqFormatter(), GeoRSSFormatter.GeoRSSFormatter(), GeoTIFFFormatter.GeoTIFFFormatter(), GeoURIFormatter.GeoURIFormatter(), GEXFFormatter.GEXFFormatter(), GMLCOVFormatter.GMLCOVFormatter(), GMLFormatter.GMLFormatter(), GPXFormatter.GPXFormatter(), GraphMLFormatter.GraphMLFormatter(), GXFFormatter.GXFFormatter(), GXLFormatter.GXLFormatter(), HDTFormatter.HDTFormatter(), HexRasterWKBFormatter.HexRasterWKBFormatter(), HexTuplesFormatter.HexTuplesFormatter(), HexWKBFormatter.HexWKBFormatter(), HTMLFormatter.HTMLFormatter(), JSONFormatter.JSONFormatter(), JSONLDFormatter.JSONLDFormatter(), JSONPFormatter.JSONPFormatter(), JSONSeqFormatter.JSONSeqFormatter(), KMLFormatter.KMLFormatter(), LatLonTextFormatter.LatLonTextFormatter(), LDAPIJSONFormatter.LDAPIJSONFormatter(), MapMLFormatter.MapMLFormatter(), MVTFormatter.MVTFormatter(), N3Formatter.N3Formatter(), NQuadsFormatter.NQuadsFormatter(), NTFormatter.NTFormatter(), ODSFormatter.ODSFormatter(), OpenLocationCodeFormatter.OpenLocationCodeFormatter(), OSMFormatter.OSMFormatter(), OSMLinkFormatter.OSMLinkFormatter(), PolyshapeFormatter.PolyshapeFormatter(), PostgreSQLFormatter.PostgreSQLFormatter(), RasterWKBFormatter.RasterWKBFormatter(), RDFEXIFormatter.RDFEXIFormatter(), RDFFormatter.RDFFormatter(), RDFJSONFormatter.RDFJSONFormatter(), RDFThriftFormatter.RDFThriftFormatter(), SVGFormatter.SVGFormatter(), TGFFormatter.TGFFormatter(), TLPFormatter.TLPFormatter(), TopoJSONFormatter.TopoJSONFormatter(), TrigFormatter.TrigFormatter(), TrixFormatter.TrixFormatter(), TTLFormatter.TTLFormatter(), TWKBFormatter.TWKBFormatter(), WKBFormatter.WKBFormatter(), WKTFormatter.WKTFormatter(), X3DFormatter.X3DFormatter(), XLSFormatter.XLSFormatter(), XLSXFormatter.XLSXFormatter(), XYZASCIIFormatter.XYZASCIIFormatter(), and YAMLFormatter.YAMLFormatter().

◆ vectorLiteralMap

Set<String> vectorLiteralMap =new TreeSet<>()
staticinherited

◆ wkbreader

WKBReader wkbreader =new WKBReader()
inherited

◆ wktreader

WKTReader wktreader =new WKTReader()
inherited