@Service(value=java.lang.Object.class) @Property(name="javax.ws.rs", boolValue=true) public class SparqlEndpoint extends Object
Constructor and Description |
---|
SparqlEndpoint() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext componentContext)
The activate method is called when SCR activates the component configuration.
|
GraphNode |
getAvailableTripleCollectionUris(javax.ws.rs.core.UriInfo uriInfo) |
Object |
runFormQuery(String queryString,
UriRef defaultGraphUri,
String applyStyleSheet,
String serverSide,
String styleSheetUri)
|
Object |
runGetQuery(String queryString,
UriRef defaultGraphUri,
String styleSheetUri,
String serverSide)
|
protected void activate(org.osgi.service.component.ComponentContext componentContext)
componentContext
- public GraphNode getAvailableTripleCollectionUris(@Context javax.ws.rs.core.UriInfo uriInfo)
public Object runFormQuery(String queryString, UriRef defaultGraphUri, String applyStyleSheet, String serverSide, String styleSheetUri)
Graph
or a DOMSource
. A Graph
is
returned if a CONSTRUCT or a DESCRIBE sparql query was submitted and
successfully carried out. A DOMSource
is returned if an ASK or a
SELECT sparql query was submitted and successfully carried out. The query
is performed against a specified graph with the URI
defaultGrapfUri
public Object runGetQuery(String queryString, UriRef defaultGraphUri, String styleSheetUri, String serverSide)
Graph
or a DOMSource
. A Graph
is
returned if a CONSTRUCT or a DESCRIBE sparql query was submitted and
successfully carried out. A DOMSource
is returned if an ASK or a
SELECT sparql query was submitted and successfully carried out. The query
is performed against a specified graph with the URI
defaultGrapfUri
queryString
- defaultGraphUri
- styleSheetUri
- serverSide
- Copyright © 2014 The Apache Software Foundation. All Rights Reserved.