Codota Logo
Session.export
Code IndexAdd Codota to your IDE (free)

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

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

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

  @GET
  @Produces(value = {RDF_XML, TURTLE, X_TURTLE})
  public Response asOntologyMixed(@PathParam(value = "id") String sessionId,
                  @PathParam("scopeid") String scopeid,
                  @DefaultValue("false") @QueryParam("merge") boolean merge,
                  @Context HttpHeaders headers) {
    session = sesMgr.getSession(sessionId);
    if (session == null) return Response.status(NOT_FOUND).build();
    ResponseBuilder rb;
    IRI prefix = IRI.create(getPublicBaseUri() + "ontonet/session/");
    // Export smaller graphs to OWLOntology due to the more human-readable rendering.
    if (merge) rb = Response.ok(session.export(ImmutableGraph.class, merge, prefix));
    else rb = Response.ok(session.export(OWLOntology.class, merge, prefix));
//        addCORSOrigin(servletContext, rb, headers);
    return rb.build();
  }

origin: apache/stanbol

  @GET
  @Produces(value = {APPLICATION_JSON, N3, N_TRIPLE, RDF_JSON})
  public Response asOntologyGraph(@PathParam(value = "id") String sessionId,
                  @PathParam("scopeid") String scopeid,
                  @DefaultValue("false") @QueryParam("merge") boolean merge,
                  @Context HttpHeaders headers) {
    session = sesMgr.getSession(sessionId);
    if (session == null) return Response.status(NOT_FOUND).build();
    IRI prefix = IRI.create(getPublicBaseUri() + "ontonet/session/");
    // Export to Clerezza ImmutableGraph, which can be rendered as JSON-LD.
    ResponseBuilder rb = Response.ok(session.export(ImmutableGraph.class, merge, prefix));
//        addCORSOrigin(servletContext, rb, headers);
    return rb.build();
  }

origin: apache/stanbol

  @GET
  @Produces(value = {MANCHESTER_OWL, FUNCTIONAL_OWL, OWL_XML, TEXT_PLAIN})
  public Response asOntologyOWL(@PathParam(value = "id") String sessionId,
                 @PathParam("scopeid") String scopeid,
                 @DefaultValue("false") @QueryParam("merge") boolean merge,
                 @Context HttpHeaders headers) {
    session = sesMgr.getSession(sessionId);
    if (session == null) return Response.status(NOT_FOUND).build();
    IRI prefix = IRI.create(getPublicBaseUri() + "ontonet/session/");
    // Export to OWLOntology, the only to support OWL formats.
    ResponseBuilder rb = Response.ok(session.export(OWLOntology.class, merge, prefix));
//        addCORSOrigin(servletContext, rb, headers);
    return rb.build();
  }

origin: apache/stanbol

final Set<OWLOntology> set = new HashSet<OWLOntology>();
set.add(scope.export(OWLOntology.class, true));
if (session != null) set.add(session.export(OWLOntology.class, true));
if (set.size() == 1) return set.iterator().next();
OWLOntologyMerger merger = new OWLOntologyMerger(new OWLOntologySetProvider() {
origin: apache/stanbol

OWLOntology ontology = session.export(OWLOntology.class, true);
log.debug("Refactoring recipe IRI is : " + engineConfiguration.getRecipeId());
org.apache.stanbol.ontologymanager.servicesapi.sessionSessionexport

Popular methods of Session

  • addOntology
  • getID
  • 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

  • Updating database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • JList (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now