congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
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
  • putExtra (Intent)
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Collectors (java.util.stream)
  • ImageIO (javax.imageio)
  • Top 17 Free Sublime Text Plugins
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