congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Session.export
Code IndexAdd Tabnine 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)

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

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • runOnUiThread (Activity)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Table (org.hibernate.mapping)
    A relational table
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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