GeoPubby
Version 0.1.0.0
|
A servlet for serving an RDF document describing resources related to a given resource via a given property. More...
Public Member Functions | |
boolean | doGet (HypermediaControls controller, Property predicate, boolean isInverse, HttpServletRequest request, HttpServletResponse response, Configuration config) throws IOException |
String | getDocumentTitle (String resourceLabel, String propertyLabel, boolean isInverse) |
boolean | doGet (String relativeURI, HttpServletRequest request, HttpServletResponse response, Configuration config) throws IOException, ServletException |
void | doGet (HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException |
void | init () throws ServletException |
Protected Member Functions | |
void | addDocumentMetadata (Model model, HypermediaControls controller, String documentURL, String title) |
void | addPageMetadata (Context context, HypermediaControls controller, PrefixMapping prefixes) |
void | send404 (HttpServletResponse response, String resourceURI) throws IOException |
void | sendInitialization500 (HttpServletResponse response, String message) throws IOException |
String | addQueryString (String dataURL, HttpServletRequest request) |
Private Attributes | |
Configuration | config |
String | initError |
Static Private Attributes | |
static final long | serialVersionUID = -7927775670218866340L |
static Pattern | prefixedNamePattern = Pattern.compile("(-?)([^!:/]*):([^:/]*)/(.*)") |
static Pattern | fullIRIPattern = Pattern.compile("(-?)!(.*?)///(.*)") |
A servlet for serving an RDF document describing resources related to a given resource via a given property.
The property can be a forward or backward arc.
|
protectedinherited |
References MetadataConfiguration.addCustomMetadata(), MetadataConfiguration.addMetadataFromTemplate(), ModelUtil.addNSIfUndefined(), BaseServlet.config, HypermediaControls.getAbsoluteIRI(), and Configuration.getDatasets().
Referenced by ValuesDataURLServlet.doGet(), and DataURLServlet.doGet().
|
protectedinherited |
References MetadataConfiguration.addMetadataFromTemplate(), BaseServlet.config, and Configuration.getDatasets().
Referenced by ValuesURLServlet.doGet(), and PageURLServlet.doGet().
|
protectedinherited |
Referenced by ValuesDataURLServlet.doGet(), and DataURLServlet.doGet().
|
inherited |
References BaseServlet.config, BaseServlet.doGet(), ServletContextInitializer.ERROR_MESSAGE, ServletContextInitializer.initConfiguration(), BaseServlet.initError, BaseServlet.send404(), BaseServlet.sendInitialization500(), and ServletContextInitializer.SERVER_CONFIGURATION.
boolean doGet | ( | HypermediaControls | controller, |
Property | predicate, | ||
boolean | isInverse, | ||
HttpServletRequest | request, | ||
HttpServletResponse | response, | ||
Configuration | config | ||
) | throws IOException |
Reimplemented from ValuesBaseServlet.
References BaseServlet.addDocumentMetadata(), BaseServlet.addQueryString(), BaseServlet.config, Configuration.getDataSource(), ValuesDataURLServlet.getDocumentTitle(), ResourceDescription.getProperty(), ResourceDescription.getTitle(), DataSource.listPropertyValues(), and ModelResponse.serve().
|
inherited |
Reimplemented from BaseServlet.
References BaseServlet.config, ValuesBaseServlet.doGet(), ValuesBaseServlet.fullIRIPattern, Configuration.getControls(), Configuration.getPrefixes(), ValuesBaseServlet.prefixedNamePattern, IRIEncoder.toIRI(), and PubbyIRIEscaper.unescapeSpecialCharacters().
String getDocumentTitle | ( | String | resourceLabel, |
String | propertyLabel, | ||
boolean | isInverse | ||
) |
Referenced by ValuesDataURLServlet.doGet().
|
inherited |
|
protectedinherited |
References BaseServlet.config, Configuration.getProjectLink(), Configuration.getProjectName(), and Configuration.getWebApplicationBaseURI().
Referenced by BaseServlet.doGet().
|
protectedinherited |
Referenced by BaseServlet.doGet().
|
privateinherited |
Referenced by BaseServlet.addDocumentMetadata(), BaseServlet.addPageMetadata(), BaseServlet.doGet(), ValuesDataURLServlet.doGet(), ValuesURLServlet.doGet(), DataURLServlet.doGet(), RootServlet.doGet(), SearchServlet.doGet(), ValuesBaseServlet.doGet(), WebURIServlet.doGet(), GeoBrowserServlet.doGet(), PageURLServlet.doGet(), BaseServlet.init(), and BaseServlet.send404().
|
staticprivateinherited |
Referenced by ValuesBaseServlet.doGet().
|
privateinherited |
Referenced by BaseServlet.doGet(), and BaseServlet.init().
|
staticprivateinherited |
Referenced by ValuesBaseServlet.doGet().
|
staticprivate |