Tabnine Logo
Session.getID
Code IndexAdd Tabnine to your IDE (free)

How to use
getID
method
in
org.apache.stanbol.ontologymanager.servicesapi.session.Session

Best Java code snippets using org.apache.stanbol.ontologymanager.servicesapi.session.Session.getID (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: org.apache.stanbol/org.apache.stanbol.ontologymanager.multiplexer.clerezza

protected synchronized void addSession(Session session) {
  sessionsByID.put(session.getID(), session);
}
origin: apache/stanbol

protected synchronized void addSession(Session session) {
  sessionsByID.put(session.getID(), session);
}
origin: org.apache.stanbol/org.apache.stanbol.ontologymanager.multiplexer.clerezza

protected synchronized void removeSession(Session session) {
  String id = session.getID();
  Session s2 = sessionsByID.get(id);
  if (session == s2) sessionsByID.remove(id);
}
origin: apache/stanbol

protected synchronized void removeSession(Session session) {
  String id = session.getID();
  Session s2 = sessionsByID.get(id);
  if (session == s2) sessionsByID.remove(id);
}
origin: apache/stanbol

private IRI getIRIforSession(Session session) {
  // Use the Stanbol-internal namespace, so that the whole configuration can be ported.
  return new IRI(_NS_STANBOL_INTERNAL + Session.shortName + "/" + session.getID());
}
origin: org.apache.stanbol/org.apache.stanbol.ontologymanager.multiplexer.clerezza

private IRI getIRIforSession(Session session) {
  // Use the Stanbol-internal namespace, so that the whole configuration can be ported.
  return new IRI(_NS_STANBOL_INTERNAL + Session.shortName + "/" + session.getID());
}
origin: apache/stanbol

  @POST
  public Response createSessionWithAutomaticId(@Context UriInfo uriInfo, @Context HttpHeaders headers) {
    Session s;
    try {
      s = sessionManager.createSession();
    } catch (SessionLimitException e) {
      throw new WebApplicationException(e, FORBIDDEN);
    }
    String uri = uriInfo.getRequestUri().toString();
    while (uri.endsWith("/"))
      uri = uri.substring(0, uri.length() - 1);
    uri += "/" + s.getID();
    ResponseBuilder rb = Response.created(URI.create(uri));
//        addCORSOrigin(servletContext, rb, headers);
    return rb.build();
  }

origin: org.apache.stanbol/org.apache.stanbol.ontologymanager.multiplexer.clerezza

  log.error("-- has incompatible types in the meta-graph.");
} else {
  log.debug("Removing all triples for session \"{}\".", session.getID());
  Iterator<Triple> it;
  for (it = meta.filter(null, null, sessionur); it.hasNext();)
origin: apache/stanbol

  log.error("-- has incompatible types in the meta-graph.");
} else {
  log.debug("Removing all triples for session \"{}\".", session.getID());
  Iterator<Triple> it;
  for (it = meta.filter(null, null, sessionur); it.hasNext();)
origin: apache/stanbol

log.debug("SUCCESS add ontology to session {}.", session.getID());
log.debug("Storage key : {}", key);
origin: apache/stanbol

                                     + session.getID() + "/"
                                     + uri));
  else rb = Response.seeOther(URI.create("/ontonet/session/" + session.getID()));
} else if (rb == null) rb = Response.status(INTERNAL_SERVER_ERROR);
for (String key : keys)
  session.addOntology(new StoredOntologySource(OntologyUtils.decode(key)));
rb = Response.seeOther(URI.create("/ontonet/session/" + session.getID()));
    log.info("Appending scope \"{}\" to session \"{}\".", scid, session.getID());
    session.attachScope(scid);
    log.info("Appended scope \"{}\".", scid);
rb = Response.seeOther(URI.create("/ontonet/session/" + session.getID()));
origin: apache/stanbol

    "Failed to create OntoNet session. The Refactor Engine requires its own new session to execute.");
log.debug("Refactor enhancement job will run in session '{}'.", session.getID());
  sessionManager.destroySession(session.getID());
org.apache.stanbol.ontologymanager.servicesapi.sessionSessiongetID

Popular methods of Session

  • addOntology
  • export
  • attachScope
    Instructs the session to reference the supplied ontology scope. This way, whenever session data are
  • detachScope
    Instructs the session to no longer reference the supplied ontology scope. If a scope with the suppli
  • getAttachedScopes
    Gets the identifiers of the scopes currently attached to this session.
  • listManagedOntologies
  • addOntologyCollectorListener
  • addSessionListener
  • close
    Closes this Session irreversibly. Most likely includes setting the state to ZOMBIE.
  • getOntology
  • getSessionState
    Returns the current state of this KReS session.
  • hasOntology
  • getSessionState,
  • hasOntology,
  • removeOntology,
  • setActive,
  • setConnectivityPolicy

Popular in Java

  • Creating JSON documents from java classes using gson
  • requestLocationUpdates (LocationManager)
  • notifyDataSetChanged (ArrayAdapter)
  • setRequestProperty (URLConnection)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now