org.apache.stanbol.entityhub.jersey.resource.reconcile
Class BaseGoogleRefineReconcileResource
java.lang.Object
org.apache.stanbol.commons.web.base.resource.BaseStanbolResource
org.apache.stanbol.entityhub.jersey.resource.reconcile.BaseGoogleRefineReconcileResource
- Direct Known Subclasses:
- EntityhubReconcileResource, ReferencedSiteReconcileResource, SiteManagerReconcileResource
public abstract class BaseGoogleRefineReconcileResource
- extends org.apache.stanbol.commons.web.base.resource.BaseStanbolResource
Implementation of the
Google Refine Reconciliation API
This base class is used to support this API for the Entityhub, ReferencedSites
and the ReferencedSiteManager.
- Author:
- Rupert Westenthaler
| Nested classes/interfaces inherited from class org.apache.stanbol.commons.web.base.resource.BaseStanbolResource |
org.apache.stanbol.commons.web.base.resource.BaseStanbolResource.MenuItem |
|
Field Summary |
protected org.apache.stanbol.commons.namespaceprefix.NamespacePrefixService |
nsPrefixService
|
| Fields inherited from class org.apache.stanbol.commons.web.base.resource.BaseStanbolResource |
LINK_RESOURCES, NAVIGATION_LINKS, ROOT_URL, SCRIPT_RESOURCES, servletContext, STATIC_RESOURCES_ROOT_URL, SYSTEM_CONSOLE, uriInfo |
|
Method Summary |
protected abstract org.apache.stanbol.entityhub.servicesapi.query.FieldQuery |
createFieldQuery()
Creates a new FieldQuery |
protected abstract String |
getSiteName()
Getter for the name of the Site as used for logging |
javax.ws.rs.core.Response |
handleCorsPreflight(javax.ws.rs.core.HttpHeaders headers)
|
protected abstract org.apache.stanbol.entityhub.servicesapi.query.QueryResultList<org.apache.stanbol.entityhub.servicesapi.model.Representation> |
performQuery(org.apache.stanbol.entityhub.servicesapi.query.FieldQuery query)
|
javax.ws.rs.core.Response |
query(String query,
String queries,
String callback,
javax.ws.rs.core.HttpHeaders header)
|
javax.ws.rs.core.Response |
queryPOST(String query,
String queries,
String callback,
javax.ws.rs.core.HttpHeaders header)
|
protected javax.ws.rs.core.Response |
sendMetadata(String callback,
javax.ws.rs.core.HttpHeaders header)
Called on requests for the Metadata for the Reconciliation service |
| Methods inherited from class org.apache.stanbol.commons.web.base.resource.BaseStanbolResource |
getConsoleBaseUri, getMainMenuItems, getNavigationLinks, getPublicBaseUri, getRegisteredLinkResources, getRegisteredScriptResources, getRequestUri, getRootUrl, getStaticRootUrl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nsPrefixService
protected final org.apache.stanbol.commons.namespaceprefix.NamespacePrefixService nsPrefixService
BaseGoogleRefineReconcileResource
protected BaseGoogleRefineReconcileResource(javax.servlet.ServletContext context)
handleCorsPreflight
public final javax.ws.rs.core.Response handleCorsPreflight(@Context
javax.ws.rs.core.HttpHeaders headers)
queryPOST
public final javax.ws.rs.core.Response queryPOST(String query,
String queries,
String callback,
@Context
javax.ws.rs.core.HttpHeaders header)
throws javax.ws.rs.WebApplicationException
- Throws:
javax.ws.rs.WebApplicationException
query
public final javax.ws.rs.core.Response query(String query,
String queries,
String callback,
@Context
javax.ws.rs.core.HttpHeaders header)
throws javax.ws.rs.WebApplicationException
- Throws:
javax.ws.rs.WebApplicationException
performQuery
protected abstract org.apache.stanbol.entityhub.servicesapi.query.QueryResultList<org.apache.stanbol.entityhub.servicesapi.model.Representation> performQuery(org.apache.stanbol.entityhub.servicesapi.query.FieldQuery query)
throws org.apache.stanbol.entityhub.servicesapi.EntityhubException
- Parameters:
query -
- Returns:
-
- Throws:
org.apache.stanbol.entityhub.servicesapi.site.SiteException
org.apache.stanbol.entityhub.servicesapi.EntityhubException
getSiteName
protected abstract String getSiteName()
- Getter for the name of the Site as used for logging
- Returns:
createFieldQuery
protected abstract org.apache.stanbol.entityhub.servicesapi.query.FieldQuery createFieldQuery()
- Creates a new FieldQuery
- Returns:
sendMetadata
protected javax.ws.rs.core.Response sendMetadata(String callback,
javax.ws.rs.core.HttpHeaders header)
throws org.codehaus.jettison.json.JSONException
- Called on requests for the Metadata for the Reconciliation service
- Parameters:
callback - header -
- Returns:
-
- Throws:
org.codehaus.jettison.json.JSONException
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.