Class FrictionlessDataPackage
- java.lang.Object
-
- org.intermine.webservice.server.query.result.FrictionlessDataPackage
-
public class FrictionlessDataPackage extends java.lang.Object
Exports Frictionless Data Package if the parameter exportDataPackage is true. Summarises details about columns, data sources, primary keys.- Author:
- Nikhil Vats
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
DATAPACKAGE_FILENAME
protected java.util.LinkedHashMap<java.lang.String,java.lang.Object>
dataPackageAttributes
-
Constructor Summary
Constructors Constructor Description FrictionlessDataPackage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
exportDataPackage(PathQuery pq, javax.servlet.http.HttpServletRequest request, PathQueryExecutor executor, java.lang.String format)
static java.util.List<java.lang.String>
getAlteredViews(PathQuery pq)
Get the views for the transformed query.static PathQuery
processQuery(PathQuery beforeChanges)
Transform a query from a standard one into one that conforms to the requirements of JSON objects.
-
-
-
Field Detail
-
dataPackageAttributes
protected java.util.LinkedHashMap<java.lang.String,java.lang.Object> dataPackageAttributes
-
DATAPACKAGE_FILENAME
protected static final java.lang.String DATAPACKAGE_FILENAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
exportDataPackage
protected void exportDataPackage(PathQuery pq, javax.servlet.http.HttpServletRequest request, PathQueryExecutor executor, java.lang.String format)
- Parameters:
pq
- pathquery to export data package forrequest
- the servlet requestexecutor
- the path query executorformat
- format of the results file
-
processQuery
public static PathQuery processQuery(PathQuery beforeChanges)
Transform a query from a standard one into one that conforms to the requirements of JSON objects.- Parameters:
beforeChanges
- The query to transform.- Returns:
- A transformed query.
-
getAlteredViews
public static java.util.List<java.lang.String> getAlteredViews(PathQuery pq)
Get the views for the transformed query.- Parameters:
pq
- The original query.- Returns:
- Its new views.
-
-