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

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

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

origin: org.apache.jena/jena-core

/**
   Answer the URI of the underlying ReasonerFactory. 
*/
@Override
public String getURI()
  { return factory.getURI(); }
}
origin: apache/jena

/**
   Answer the URI of the underlying ReasonerFactory. 
*/
@Override
public String getURI()
  { return factory.getURI(); }
}
origin: org.apache.jena/jena-core

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

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

@Override
public String getURI()
  { return r.getURI(); }
};
origin: org.apache.jena/jena-core

@Override
public String getURI()
  { return rf.getURI(); }
};
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: 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: 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: 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: 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) {
  ReasonerFactory rf = TransitiveReasonerFactory.theInstance();
  Model caps = rf.getCapabilities();
  Resource root = caps.getResource(rf.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) {
  ReasonerFactory rf = TransitiveReasonerFactory.theInstance();
  Model caps = rf.getCapabilities();
  Resource root = caps.getResource(rf.getURI());
  return caps.contains(root, ReasonerVocabulary.supportsP, property);
}
 
origin: SmartDataAnalytics/DL-Learner

Model model = RDFDataMgr.loadModel(owl_file.getURL().getFile());
logger.debug(sparql_debug, "file reasoning: " + ((owl_file.getReasoning() == null || owl_file.getReasoning().getReasonerFactory() == null) ? "(none)"
    : owl_file.getReasoning().getReasonerFactory().getURI()));
ks = new LocalModelBasedSparqlEndpointKS(model, owl_file.getReasoning());
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 );
  }

origin: apache/jena

Assert.assertTrue("Test: " + test + "\n" +  reasonerF.getURI() + "\n" + description, correct);
org.apache.jena.reasonerReasonerFactorygetURI

Javadoc

Return the URI labelling this type of reasoner

Popular methods of ReasonerFactory

  • create
    Constructor method that builds an instance of the associated Reasoner
  • getCapabilities
    Return a description of the capabilities of this reasoner encoded in RDF. These capabilities may be

Popular in Java

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getResourceAsStream (ClassLoader)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Collectors (java.util.stream)
  • JLabel (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Best IntelliJ 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