congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ReasonerRegistry.getFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
getFactory
method
in
org.apache.jena.reasoner.ReasonerRegistry

Best Java code snippets using org.apache.jena.reasoner.ReasonerRegistry.getFactory (Showing top 4 results out of 315)

origin: apache/jena

/**
 * Create and return a new instance of the reasoner identified by
 * the given uri.
 * @param uri the uri of the reasoner to be created, expressed as a simple string
 * @param configuration an optional set of configuration information encoded in RDF this
 * parameter can be null if no configuration information is required.
 * @return a reaoner instance
 * @throws ReasonerException if there is not such reasoner or if there is
 * some problem during instantiation
 */
public Reasoner create(String uri, Resource configuration) throws ReasonerException {
  ReasonerFactory factory = getFactory(uri);
  if (factory != null) {
    return factory.create(configuration);
  } else {
    throw new ReasonerException("Attempted to instantiate an unknown reasoner: " + uri);
  }
}
origin: org.apache.jena/jena-core

/**
 * Create and return a new instance of the reasoner identified by
 * the given uri.
 * @param uri the uri of the reasoner to be created, expressed as a simple string
 * @param configuration an optional set of configuration information encoded in RDF this
 * parameter can be null if no configuration information is required.
 * @return a reaoner instance
 * @throws ReasonerException if there is not such reasoner or if there is
 * some problem during instantiation
 */
public Reasoner create(String uri, Resource configuration) throws ReasonerException {
  ReasonerFactory factory = getFactory(uri);
  if (factory != null) {
    return factory.create(configuration);
  } else {
    throw new ReasonerException("Attempted to instantiate an unknown reasoner: " + uri);
  }
}
origin: apache/jena

/**
  Answer a ReasonerFactory which delivers reasoners with the given
  URL <code>reasonerURL</code>. If there is no such reasoner, throw
  an <code>UnknownreasonerException</code>.
*/
public static ReasonerFactory getReasonerFactoryByURL( Resource root, Resource reasonerURL )
  {
  String url = reasonerURL.getURI();
  ReasonerFactory factory = ReasonerRegistry.theRegistry().getFactory( url );
  if (factory == null) throw new UnknownReasonerException( root, reasonerURL );
  return factory;
  }
}
origin: org.apache.jena/jena-core

/**
  Answer a ReasonerFactory which delivers reasoners with the given
  URL <code>reasonerURL</code>. If there is no such reasoner, throw
  an <code>UnknownreasonerException</code>.
*/
public static ReasonerFactory getReasonerFactoryByURL( Resource root, Resource reasonerURL )
  {
  String url = reasonerURL.getURI();
  ReasonerFactory factory = ReasonerRegistry.theRegistry().getFactory( url );
  if (factory == null) throw new UnknownReasonerException( root, reasonerURL );
  return factory;
  }
}
org.apache.jena.reasonerReasonerRegistrygetFactory

Javadoc

Return the factory for the given reasoner.

Popular methods of ReasonerRegistry

  • getOWLMicroReasoner
    Prebuilt standard configuration a micro-OWL reasoner. This just supports property axioms, and class
  • getOWLReasoner
    Prebuilt standard configuration for the default OWL reasoner. This configuration is hybrid forward/b
  • getRDFSReasoner
    Return a prebuilt standard configuration for the default RDFS reasoner
  • makeDirect
    Return a property Node which represents the direct version of a transitively closed property. See ma
  • <init>
    Constructor is hidden - go via theRegistry
  • getTransitiveReasoner
    Return a prebuilt standard configuration for the default subclass/subproperty transitive closure rea
  • register
    Register a Reasoner.
  • theRegistry
    Return the single global instance of the registry

Popular in Java

  • Reactive rest calls using spring rest template
  • getExternalFilesDir (Context)
  • setRequestProperty (URLConnection)
  • getSharedPreferences (Context)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Collectors (java.util.stream)
  • ImageIO (javax.imageio)
  • Github Copilot alternatives
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