Codota Logo
InfModel.write
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using com.hp.hpl.jena.rdf.model.InfModel.write (Showing top 3 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: stackoverflow.com

Reasoner reasoner = new GenericRuleReasoner( Rule.parseRules( rule ));
InfModel imodel = ModelFactory.createInfModel( reasoner, model );
imodel.write( System.out, "TTL" );
origin: stackoverflow.com

 public class tryNoBuiltin {

  public static void main(String[] args) throws OWLOntologyStorageException,
  OWLOntologyCreationException, IOException  {

    //Create a configuration model
    Resource configuration = ModelFactory.createDefaultModel().createResource();
    configuration.addProperty(ReasonerVocabulary.PROPruleMode, "hybrid");

    MyReasonerFactory MyReas = new MyReasonerFactory();
    GenericRuleReasoner reasonerRULE = (GenericRuleReasoner)MyReas.create(configuration);

    Model modelRULE= FileManager.get().loadModel("./prova_rules_M_rdf.owl");
    InfModel infModelRULE = ModelFactory.createInfModel(reasonerRULE, modelRULE);
    infModelRULE.prepare();

    //write down the result in RDFXML form
    infModelRULE.write(System.out);
  }

}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

  deductions.write(writer, outLang);
} else {
  infModel.write(writer, outLang);
com.hp.hpl.jena.rdf.modelInfModelwrite

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
  • validate
    Test the consistency of the underlying data. This normally tests the validity of the bound instance
  • getDeductionsModel
    Returns a derivations model. The rule reasoners typically create a graph containing those triples ad
  • 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

  • Finding current android device location
  • compareTo (BigDecimal)
  • getApplicationContext (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
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