Tabnine Logo
ReasonerFactory.getCapabilities
Code IndexAdd Tabnine to your IDE (free)

How to use
getCapabilities
method
in
org.apache.jena.reasoner.ReasonerFactory

Best Java code snippets using org.apache.jena.reasoner.ReasonerFactory.getCapabilities (Showing top 20 results out of 315)

origin: apache/jena

/**
   Answer the capabilities of the underlying ReasonerFactory.
*/
@Override
public Model getCapabilities()
  { return factory.getCapabilities(); }

origin: org.apache.jena/jena-core

/**
   Answer the capabilities of the underlying ReasonerFactory.
*/
@Override
public Model getCapabilities()
  { return factory.getCapabilities(); }

origin: apache/jena

/**
 * Return a description of the capabilities of this reasoner encoded in
 * RDF. These capabilities may be static or may depend on configuration
 * information supplied at construction time. May be null if there are
 * no useful capabilities registered.
 */
@Override
public Model getReasonerCapabilities() {
  if (factory != null) {
    return factory.getCapabilities();
  } else {
    return null;
  }
}

origin: apache/jena

/**
 * Return a description of the capabilities of this reasoner encoded in
 * RDF. These capabilities may be static or may depend on configuration
 * information supplied at construction time. May be null if there are
 * no useful capabilities registered.
 */
@Override
public Model getReasonerCapabilities() {
  if (factory != null) {
    return factory.getCapabilities();
  } else {
    return null;
  }
}

origin: org.apache.jena/jena-core

@Override
public Model getCapabilities()
  { return rf.getCapabilities(); }
origin: org.apache.jena/jena-core

/**
 * Return a description of the capabilities of this reasoner encoded in
 * RDF. These capabilities may be static or may depend on configuration
 * information supplied at construction time. May be null if there are
 * no useful capabilities registered.
 */
@Override
public Model getReasonerCapabilities() {
  if (factory != null) {
    return factory.getCapabilities();
  } else {
    return null;
  }
}

origin: org.apache.jena/jena-core

/**
 * Return a description of the capabilities of this reasoner encoded in
 * RDF. These capabilities may be static or may depend on configuration
 * information supplied at construction time. May be null if there are
 * no useful capabilities registered.
 */
@Override
public Model getReasonerCapabilities() {
  if (factory != null) {
    return factory.getCapabilities();
  } else {
    return null;
  }
}

origin: apache/jena

@Override
public Model getCapabilities()
  { return r.getCapabilities(); }
origin: apache/jena

@Override
public Model getCapabilities()
  { return rf.getCapabilities(); }
origin: apache/jena

/**
 * Return a description of the capabilities of this reasoner encoded in
 * RDF. These capabilities may be static or may depend on configuration
 * information supplied at construction time. May be null if there are
 * no useful capabilities registered.
 */
@Override
public Model getReasonerCapabilities() {
  return TransitiveReasonerFactory.theInstance().getCapabilities();
}

origin: org.apache.jena/jena-core

/**
 * Return a description of the capabilities of this reasoner encoded in
 * RDF. These capabilities may be static or may depend on configuration
 * information supplied at construction time. May be null if there are
 * no useful capabilities registered.
 */
@Override
public Model getReasonerCapabilities() {
  return TransitiveReasonerFactory.theInstance().getCapabilities();
}

origin: apache/jena

/**
 * Determine whether the given property is recognized and treated specially
 * by this reasoner. This is a convenience packaging of a special case of getCapabilities.
 * @param property the property which we want to ask the reasoner about, given as a Node since
 * this is part of the SPI rather than API
 * @return true if the given property is handled specially by the reasoner.
 */
@Override
public boolean supportsProperty(Property property) {
  if (factory == null) return false;
  Model caps = factory.getCapabilities();
  Resource root = caps.getResource(factory.getURI());
  return caps.contains(root, ReasonerVocabulary.supportsP, property);
}

origin: org.apache.jena/jena-core

/**
 * Determine whether the given property is recognized and treated specially
 * by this reasoner. This is a convenience packaging of a special case of getCapabilities.
 * @param property the property which we want to ask the reasoner about, given as a Node since
 * this is part of the SPI rather than API
 * @return true if the given property is handled specially by the reasoner.
 */
@Override
public boolean supportsProperty(Property property) {
  if (factory == null) return false;
  Model caps = factory.getCapabilities();
  Resource root = caps.getResource(factory.getURI());
  return caps.contains(root, ReasonerVocabulary.supportsP, property);
}

origin: apache/jena

/**
 * Determine whether the given property is recognized and treated specially
 * by this reasoner. This is a convenience packaging of a special case of getCapabilities.
 * @param property the property which we want to ask the reasoner about, given as a Node since
 * this is part of the SPI rather than API
 * @return true if the given property is handled specially by the reasoner.
 */
@Override
public boolean supportsProperty(Property property) {
  if (factory == null) return false;
  Model caps = factory.getCapabilities();
  Resource root = caps.getResource(factory.getURI());
  return caps.contains(root, ReasonerVocabulary.supportsP, property);
}

origin: apache/jena

/**
 * Determine whether the given property is recognized and treated specially
 * by this reasoner. This is a convenience packaging of a special case of getCapabilities.
 * @param property the property which we want to ask the reasoner about, given as a Node since
 * this is part of the SPI rather than API
 * @return true if the given property is handled specially by the reasoner.
 */
@Override
public boolean supportsProperty(Property property) {
  if (factory == null) return false;
  Model caps = factory.getCapabilities();
  Resource root = caps.getResource(factory.getURI());
  return caps.contains(root, ReasonerVocabulary.supportsP, property);
}

origin: org.apache.jena/jena-core

/**
 * Register a Reasoner.
 * @param factory an factory that can be used to create instances of the reasoner
 */
public void register(ReasonerFactory factory) {
  reasonerFactories.put(factory.getURI(), factory);
  Model description = factory.getCapabilities();
  if (description != null) {
    allDescriptions.add(description);
  }
  allDescriptions.createResource(factory.getURI())
          .addProperty(RDF.type, ReasonerVocabulary.ReasonerClass);
}
origin: apache/jena

/**
 * Register a Reasoner.
 * @param factory an factory that can be used to create instances of the reasoner
 */
public void register(ReasonerFactory factory) {
  reasonerFactories.put(factory.getURI(), factory);
  Model description = factory.getCapabilities();
  if (description != null) {
    allDescriptions.add(description);
  }
  allDescriptions.createResource(factory.getURI())
          .addProperty(RDF.type, ReasonerVocabulary.ReasonerClass);
}
origin: apache/jena

/**
 * Determine whether the given property is recognized and treated specially
 * by this reasoner. This is a convenience packaging of a special case of getCapabilities.
 * @param property the property which we want to ask the reasoner about, given as a Node since
 * this is part of the SPI rather than API
 * @return true if the given property is handled specially by the reasoner.
 */
@Override
public boolean supportsProperty(Property property) {
  ReasonerFactory rf = TransitiveReasonerFactory.theInstance();
  Model caps = rf.getCapabilities();
  Resource root = caps.getResource(rf.getURI());
  return caps.contains(root, ReasonerVocabulary.supportsP, property);
}
 
origin: apache/jena

public void testRuleReasonerWrapper()
  {
  MockFactory mock = new MockFactory();
  ReasonerFactory wrapped = wrap( mock );
  assertEquals( MockFactory.capabilities, wrapped.getCapabilities() );
  assertEquals( MockFactory.uri, wrapped.getURI() );
  assertEquals( MockFactory.reasoner, wrapped.create( null ) );
  assertEquals( Arrays.asList( new Object[] {"capabilities", "uri", "create"} ),  mock.done );
  }

origin: org.apache.jena/jena-core

public void testRuleReasonerWrapper()
  {
  MockFactory mock = new MockFactory();
  ReasonerFactory wrapped = wrap( mock );
  assertEquals( MockFactory.capabilities, wrapped.getCapabilities() );
  assertEquals( MockFactory.uri, wrapped.getURI() );
  assertEquals( MockFactory.reasoner, wrapped.create( null ) );
  assertEquals( Arrays.asList( new Object[] {"capabilities", "uri", "create"} ),  mock.done );
  }

org.apache.jena.reasonerReasonerFactorygetCapabilities

Javadoc

Return a description of the capabilities of this reasoner encoded in RDF. These capabilities may be static or may depend on configuration information supplied at construction time. May be null if there are no useful capabilities registered.

Popular methods of ReasonerFactory

  • create
    Constructor method that builds an instance of the associated Reasoner
  • getURI
    Return the URI labelling this type of reasoner

Popular in Java

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top PhpStorm 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