Tabnine Logo
InfModel.write
Code IndexAdd Tabnine 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)

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

  • Parsing JSON documents to java classes using gson
  • startActivity (Activity)
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Option (scala)
  • 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