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

How to use
validate
method
in
com.hp.hpl.jena.rdf.model.InfModel

Best Java code snippets using com.hp.hpl.jena.rdf.model.InfModel.validate (Showing top 8 results out of 315)

origin: apache/stanbol

/**
 * Consistency check: whether this RDF is consistent or not
 * 
 * @param data
 * @return
 */
@Override
public boolean isConsistent(Model data) {
  log.debug(" isConsistent(Model data)");
  return isConsistent(run(data).validate());
}
origin: org.apache.stanbol/org.apache.stanbol.reasoners.jena

/**
 * Consistency check: whether this RDF is consistent or not
 * 
 * @param data
 * @return
 */
@Override
public boolean isConsistent(Model data) {
  log.debug(" isConsistent(Model data)");
  return isConsistent(run(data).validate());
}
origin: org.apache.stanbol/org.apache.stanbol.reasoners.jena

/**
 * Consistency check: whether this RDF is consistent or not
 * 
 * We decide to apply a strict meaning of consistency. The alternative would be to use isValid() method,
 * which tolerates classes that can't be instantiated
 * 
 * @param data
 * @param rules
 * @return
 */
@Override
public boolean isConsistent(Model data, List<Rule> rules) {
  log.debug(" isConsistent(Model data, List<Rule> rules)");
  return isConsistent(run(data, rules).validate());
}
origin: apache/stanbol

/**
 * Consistency check: whether this RDF is consistent or not
 * 
 * We decide to apply a strict meaning of consistency. The alternative would be to use isValid() method,
 * which tolerates classes that can't be instantiated
 * 
 * @param data
 * @param rules
 * @return
 */
@Override
public boolean isConsistent(Model data, List<Rule> rules) {
  log.debug(" isConsistent(Model data, List<Rule> rules)");
  return isConsistent(run(data, rules).validate());
}
origin: DSpace/DSpace

ValidityReport reports = inf.validate();
if (!reports.isValid()) {
  StringBuilder sb = new StringBuilder();
origin: net.exogeni.orca/ndl

public void validateModelWithRules(String fName) {
  System.out.println("Using rule file " + fName);
  ClassLoader cl = NdlCommons.class.getProtectionDomain().getClassLoader();
  URL url = cl.getResource("net/exogeni/orca/ndl/rules/" + fName);
  List<Rule> rules = Rule.rulesFromURL(url.toString());
  GenericRuleReasoner reasoner = new GenericRuleReasoner(rules);
  reasoner.setOWLTranslation(true);
  reasoner.setTransitiveClosureCaching(true);
  InfModel testModel = ModelFactory.createInfModel(reasoner, requestModel);
  getValidityOutput(testModel.validate());
}
origin: net.exogeni.orca/ndl

  ValidityReport rep = model.validate();
ValidityReport rep = model.validate();
origin: net.exogeni.orca/ndl

public static void testData(String dataF, String schemaF) {
  Model schema = FileManager.get().loadModel(schemaF);
  Reasoner reasoner = ReasonerRegistry.getOWLReasoner();
  reasoner.bindSchema(schema);
  Model data = FileManager.get().loadModel(dataF);
  InfModel model = ModelFactory.createInfModel(reasoner, data);
  ValidityReport rep = model.validate();
  getValidityOutput(rep);
  Resource res = model.getResource("http://www.semanticweb.org/ontologies/2013/8/untitled-ontology-45#Image1");
  System.out.println("Image types:");
  printStatements(model, res, RDF.type, null);
}
com.hp.hpl.jena.rdf.modelInfModelvalidate

Javadoc

Test the consistency of the underlying data. This normally tests the validity of the bound instance data against the bound schema data.

Logically inconsistent models will be indicated by a ValidityReport which reports isValid() as false. Additional non.error problems, such as uninstantiatable classes, may be reported as warnings.

Popular methods of InfModel

  • prepare
    Perform any initial processing and caching. This call is optional. Most engines either have negligab
  • listStatements
    Find all the statements matching a pattern.Return an iterator over all the statements in a model tha
  • getDeductionsModel
    Returns a derivations model. The rule reasoners typically create a graph containing those triples ad
  • write
  • asStatement
  • contains
  • getDerivation
    Return the derivation of the given statement (which should be the result of some previous list opera
  • getGraph
  • getResource
  • remove
  • setNsPrefixes
  • setNsPrefixes

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • startActivity (Activity)
  • putExtra (Intent)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JLabel (javax.swing)
  • JTable (javax.swing)
  • Top Vim 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