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

Public Member Functions

 LDAPIJSONFormatter ()
 Constructor for this class. More...
 
void addKeyVal (JSONObject properties, String rel, String val)
 Adds a key/value pair to a JSONObject, creates a JSONArray if neccessary. More...
 
void writeAsStream (JSONObject properties, JSONObject style, JSONObject geom, JsonGenerator jGenerator) throws IOException
 
void relToMap (String keyPath)
 
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, 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 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, 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

◆ LDAPIJSONFormatter()

Constructor for this class.

29  {
30  this.mimeType="text/ldapi";
31  this.exposedType="text/ldapi";
32  this.urlformat="ldapi";
33  this.label="Linked Data API JSON (LDAPI)";
34  this.fileextension="json";
35  this.definition="https://www.github.com/UKGovLD/linked-data-api/";
36  this.constructQuery=false;
37  }
String mimeType
Definition: ResultFormatter.java:89
Boolean constructQuery
Definition: ResultFormatter.java:101
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.constructQuery, ResultFormatter.definition, ResultFormatter.exposedType, ResultFormatter.fileextension, ResultFormatter.label, ResultFormatter.mimeType, and ResultFormatter.urlformat.

Member Function Documentation

◆ [static initializer]()

[static initializer]
staticpackageinherited

◆ addKeyVal()

void addKeyVal ( JSONObject  properties,
String  rel,
String  val 
)

Adds a key/value pair to a JSONObject, creates a JSONArray if neccessary.

Parameters
propertiesthe JSONObject
relRelation to add
valValue to add
45  {
46  if(!this.contextMapper.containsKey(rel)) {
47  this.relToMap(rel);
48  }
49  if(properties.has(rel)) {
50  try {
51  properties.getJSONArray(rel).put(val);
52  }catch(JSONException e) {
53  String oldval=properties.getString(rel);
54  properties.put(rel,new JSONArray());
55  properties.getJSONArray(rel).put(oldval);
56  properties.getJSONArray(rel).put(val);
57  }
58  }else {
59  properties.put(rel, val);
60  }
61  }
void relToMap(String keyPath)
Definition: LDAPIJSONFormatter.java:83
Map< String, String > contextMapper
Definition: ResultFormatter.java:103

References ResultFormatter.contextMapper, and LDAPIJSONFormatter.relToMap().

Referenced by LDAPIJSONFormatter.formatter().

◆ 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.

◆ 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, IOException

Reimplemented from ResultFormatter.

113  {
114  JsonFactory jfactory = new JsonFactory();
115  JsonGenerator jGenerator = jfactory.createGenerator(out);
116  jGenerator.writeStartObject();
117  jGenerator.writeStringField("format", "linked-data-api");
118  jGenerator.writeStringField("version","0.1");
119  jGenerator.writeObjectFieldStart("result");
120  jGenerator.writeStringField("_about", featuretype);
121  jGenerator.writeStringField("metadata", featuretype);
122  jGenerator.writeStringField("partOf", featuretype);
123  jGenerator.writeStringField("next", featuretype);
124  jGenerator.writeStringField("first", featuretype);
125  jGenerator.writeNumberField("page", 0);
126  jGenerator.writeNumberField("pageSize", 10);
127  jGenerator.writeArrayFieldStart("contains");
128  String indid="";
129  List<String> rel=new LinkedList<String>();
130  List<String> val=new LinkedList<String>();
131  JSONObject properties=new JSONObject();
132  while(results.hasNext()) {
133  this.lastQueriedElemCount++;
134  QuerySolution solu=results.next();
135  if(indid.isEmpty() || !indid.equals(solu.get(indvar).toString())) {
136  if(!indid.isEmpty()) {
137  for(String key:properties.keySet()) {
138  jGenerator.writeStringField(key, properties.get(key).toString());
139  }
140  properties=new JSONObject();
141  jGenerator.writeEndObject();
142  }
143  indid=solu.get(indvar).toString();
144  jGenerator.writeStartObject();
145  jGenerator.writeStringField("_about", indid);
146  }
147  Iterator<String> varnames = solu.varNames();
148  while(varnames.hasNext()) {
149  String name=varnames.next();
150  if(name.contains("rel")) {
151  if("http://www.w3.org/1999/02/22-rdf-syntax-ns#type".equals(solu.get(name).toString())) {
152  rel.add("type");
153  }else if("http://www.w3.org/2000/01/rdf-schema#label".equals(solu.get(name).toString())) {
154  rel.add("name");
155  }else {
156  rel.add(solu.get(name).toString());
157  }
158  }else if(name.contains("val")) {
159  try {
160  Literal lit=solu.getLiteral(name);
161  val.add(lit.getString());
162  }catch(Exception e) {
163  val.add(solu.get(name).toString());
164  }
165  }else if(!name.equalsIgnoreCase(indvar)) {
166  try {
167  Literal lit=solu.getLiteral(name);
168  jGenerator.writeStringField(name, lit.getString());
169  }catch(Exception e) {
170  jGenerator.writeStringField(name, solu.get(name).toString());
171  }
172  }
173 
174  }
175  if(!rel.isEmpty() && !val.isEmpty()) {
176  int i=0;
177  for(;i<rel.size();i++) {
178  if(i<val.size())
179  addKeyVal(properties, rel.get(i), val.get(i));
180  }
181  rel.clear();
182  val.clear();
183  }
184  /*if(lastQueriedElemCount%FLUSHTHRESHOLD==0)
185  jGenerator.flush();*/
186  }
187  for(String key:properties.keySet()) {
188  try {
189  JSONArray arr=properties.getJSONArray(key);
190  jGenerator.writeArrayFieldStart(key);
191  for(int i=0;i<arr.length();i++) {
192  jGenerator.writeString(arr.get(i).toString());
193  }
194  jGenerator.writeEndArray();
195  }catch(Exception e) {
196  jGenerator.writeStringField(key, properties.get(key).toString());
197  }
198  }
199  jGenerator.writeEndObject();
200  jGenerator.writeEndArray();
201  jGenerator.writeEndObject();
202  jGenerator.writeEndObject();
203  jGenerator.close();
204  return "";
205  }
void addKeyVal(JSONObject properties, String rel, String val)
Adds a key/value pair to a JSONObject, creates a JSONArray if neccessary.
Definition: LDAPIJSONFormatter.java:45
Integer lastQueriedElemCount
Definition: ResultFormatter.java:87

References LDAPIJSONFormatter.addKeyVal(), and ResultFormatter.lastQueriedElemCount.

◆ 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().

◆ 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
String parseCoverageLiteral(String literalValue, String literalType, String epsg, String srsName)
Definition: ResultFormatter.java:413

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
GeoJSONReader geojsonreader
Definition: ResultFormatter.java:113
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().

◆ relToMap()

void relToMap ( String  keyPath)
83  {
84  if(!keyPath.contains(";")) {
85  if (keyPath.contains("#")) {
86  this.contextMapper.put(keyPath,keyPath.substring(keyPath.lastIndexOf('#') + 1));
87  } else {
88  this.contextMapper.put(keyPath,keyPath.substring(keyPath.lastIndexOf('/') + 1));
89  }
90  }
91  String result="";
92  String[] splitted=keyPath.split(";");
93  int i=0;
94  for(i=0;i<splitted.length;i++) {
95  if (splitted[i].contains("#")) {
96  result+=splitted[i].substring(splitted[i].lastIndexOf('#') + 1);
97  } else {
98  result+=splitted[i].substring(splitted[i].lastIndexOf('/') + 1);
99  }
100  if(i<splitted.length-1) {
101  result+=".";
102  }
103  }
104  this.contextMapper.put(keyPath,result);
105  }

References ResultFormatter.contextMapper.

Referenced by LDAPIJSONFormatter.addKeyVal().

◆ writeAsStream()

void writeAsStream ( JSONObject  properties,
JSONObject  style,
JSONObject  geom,
JsonGenerator  jGenerator 
) throws IOException
63  {
64  for(String key:properties.keySet()) {
65  jGenerator.writeStringField(key, properties.get(key).toString());
66  }
67  jGenerator.writeEndObject();
68  if(!style.isEmpty()) {
69  jGenerator.writeObjectFieldStart("style");
70  for(String key:style.keySet()) {
71  jGenerator.writeStringField(key, style.get(key).toString());
72  }
73  jGenerator.writeEndObject();
74  }
75  jGenerator.writeObjectFieldStart("geometry");
76  jGenerator.writeStringField("type", geom.getString("type"));
77  jGenerator.writeFieldName("coordinates");
78  jGenerator.writeRaw(":"+geom.getJSONArray("coordinates").toString());
79  jGenerator.writeEndObject();
80  jGenerator.writeEndObject();
81  }

Member Data Documentation

◆ 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