Codota Logo
InfModel.validate
Code IndexAdd Codota 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)

  • Common ways to obtain InfModel
private void myMethod () {
InfModel i =
  • Codota IconReasoner reasoner;Model model;ModelFactory.createInfModel(reasoner, model)
  • Smart code suggestions by Codota
}
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

  • Making http requests using okhttp
  • getContentResolver (Context)
  • orElseThrow (Optional)
  • onCreateOptionsMenu (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • JCheckBox (javax.swing)
  • Join (org.hibernate.mapping)
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now