GeoPubby
Version 0.1.0.0
|
The hypermedia interface to a specific resource. More...
Public Member Functions | |
boolean | isHosted () |
Is the resource itself hosted by Pubby, that is, is it in Pubby's web base namespace? (If not, then Pubby merely provides a hypermedia browsing interface for the resource, but cannot be said to host the resource itself.) More... | |
String | getAbsoluteIRI () |
String | getBrowsableURL () |
ResourceDescription | getResourceDescription () |
String | getPageURL () |
String | getDataURL () |
String | getValuesPageURL (Property property) |
String | getInverseValuesPageURL (Property property) |
String | getValuesDataURL (Property property) |
String | getInverseValuesDataURL (Property property) |
Static Public Member Functions | |
static HypermediaControls | createFromPubbyPath (String path, Configuration config) |
Creates a new hypermedia resource from a Pubby path representing a resource. More... | |
static HypermediaControls | createFromIRI (String absoluteIRI, Configuration config) |
Creates a new hypermedia resource from an absolute IRI. More... | |
Private Member Functions | |
HypermediaControls (String absoluteIRI, Configuration config) | |
String | getPubbyPath () |
A version of the resource's IRI suitable for use in constructing Pubby path URLs. More... | |
String | getPathURL (String urlPrefix, Property property) |
Private Attributes | |
final String | absoluteIRI |
final boolean | isHosted |
final Configuration | config |
The hypermedia interface to a specific resource.
The resource may be hosted by the server or merely made browsable by the server.
|
private |
References HypermediaControls.absoluteIRI, HypermediaControls.config, and Configuration.getWebApplicationBaseURI().
Referenced by HypermediaControls.createFromIRI().
|
static |
Creates a new hypermedia resource from an absolute IRI.
absoluteIRI | An IRI identifying the resource |
config | The server's configuration |
References HypermediaControls.absoluteIRI, HypermediaControls.config, HypermediaControls.HypermediaControls(), and Configuration.isBrowsable().
Referenced by HypermediaControls.createFromPubbyPath(), RootServlet.doGet(), ResourceDescription.ResourceProperty.getBrowsableURL(), and ResourceDescription.Value.getBrowsableURL().
|
static |
Creates a new hypermedia resource from a Pubby path representing a resource.
path | A Pubby path, either absolute or relative |
config | The server's configuration |
References HypermediaControls.config, HypermediaControls.createFromIRI(), Configuration.getWebApplicationBaseURI(), Configuration.getWebResourcePrefix(), and PubbyIRIEscaper.unescapeSpecialCharacters().
Referenced by Configuration.getControls().
String getAbsoluteIRI | ( | ) |
References HypermediaControls.absoluteIRI.
Referenced by BaseServlet.addDocumentMetadata(), DataURLServlet.addHighDegreePropertyLinks(), DataURLServlet.doGet(), MetadataConfiguration.parsePlaceholder(), and ResourceDescription.ResourceDescription().
String getBrowsableURL | ( | ) |
References HypermediaControls.absoluteIRI, HypermediaControls.getPageURL(), and HypermediaControls.isHosted.
Referenced by ResourceDescription.ResourceProperty.getBrowsableURL().
String getDataURL | ( | ) |
References HypermediaControls.config, HypermediaControls.getPubbyPath(), and Configuration.getWebApplicationBaseURI().
Referenced by DataURLServlet.doGet(), WebURIServlet.doGet(), PageURLServlet.doGet(), and MetadataConfiguration.parsePlaceholder().
String getInverseValuesDataURL | ( | Property | property | ) |
References HypermediaControls.getPathURL().
Referenced by DataURLServlet.addHighDegreePropertyLinks().
String getInverseValuesPageURL | ( | Property | property | ) |
References HypermediaControls.getPathURL().
Referenced by ResourceDescription.ResourceProperty.getValuesPageURL().
String getPageURL | ( | ) |
References HypermediaControls.config, HypermediaControls.getPubbyPath(), and Configuration.getWebApplicationBaseURI().
Referenced by WebURIServlet.doGet(), HypermediaControls.getBrowsableURL(), and ResourceDescription.Value.getBrowsableURL().
|
private |
References HypermediaControls.config, PubbyIRIEscaper.escapeSpecialCharacters(), Configuration.getPrefixes(), HypermediaControls.getPubbyPath(), and Configuration.getWebApplicationBaseURI().
Referenced by HypermediaControls.getInverseValuesDataURL(), HypermediaControls.getInverseValuesPageURL(), HypermediaControls.getValuesDataURL(), and HypermediaControls.getValuesPageURL().
|
private |
A version of the resource's IRI suitable for use in constructing Pubby path URLs.
If the resource is Pubby-hosted, this will be its IRI relative to the resource base (conf:webBase + conf:webResourcePrefix
). Otherwise, it will be its full absolute IRI with special characters escaped to make it safe in constructing paths.
References HypermediaControls.absoluteIRI, HypermediaControls.config, PubbyIRIEscaper.escapeSpecialCharacters(), Configuration.getWebApplicationBaseURI(), Configuration.getWebResourcePrefix(), and HypermediaControls.isHosted.
Referenced by HypermediaControls.getDataURL(), HypermediaControls.getPageURL(), and HypermediaControls.getPathURL().
ResourceDescription getResourceDescription | ( | ) |
References HypermediaControls.absoluteIRI, HypermediaControls.config, DataSource.describeResource(), Configuration.getDataSource(), DataSource.getHighIndegreeProperties(), and DataSource.getHighOutdegreeProperties().
Referenced by DataURLServlet.doGet(), and PageURLServlet.doGet().
String getValuesDataURL | ( | Property | property | ) |
References HypermediaControls.getPathURL().
Referenced by DataURLServlet.addHighDegreePropertyLinks().
String getValuesPageURL | ( | Property | property | ) |
References HypermediaControls.getPathURL().
Referenced by ResourceDescription.ResourceProperty.getValuesPageURL().
boolean isHosted | ( | ) |
Is the resource itself hosted by Pubby, that is, is it in Pubby's web base namespace? (If not, then Pubby merely provides a hypermedia browsing interface for the resource, but cannot be said to host the resource itself.)
References HypermediaControls.isHosted.
|
private |
|
private |
Referenced by HypermediaControls.createFromIRI(), HypermediaControls.createFromPubbyPath(), HypermediaControls.getDataURL(), HypermediaControls.getPageURL(), HypermediaControls.getPathURL(), HypermediaControls.getPubbyPath(), HypermediaControls.getResourceDescription(), and HypermediaControls.HypermediaControls().
|
private |