Tabnine Logo
RIOT.init
Code IndexAdd Tabnine to your IDE (free)

How to use
init
method
in
org.apache.jena.riot.RIOT

Best Java code snippets using org.apache.jena.riot.RIOT.init (Showing top 6 results out of 315)

origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

  /** @deprecated Use org.apache.jena.riot.RIOT#init() */
  @Deprecated
  public static void init() { org.apache.jena.riot.RIOT.init() ; }
}
origin: apache/jena

@Override
public void start() {
  RIOT.init();
  SerializerRDF.init();
}
origin: org.semweb4j/rdf2go.impl.jena

public ModelSetImplJena(com.hp.hpl.jena.query.Dataset dataset) {
  this.dataset = dataset;
  this.lock = this.dataset.getLock();
  org.apache.jena.riot.RIOT.init(); //wires RIOT readers/writers into Jena
}
origin: org.semweb4j/rdf2go.impl.jena

public ModelImplJena(URI contextURI, com.hp.hpl.jena.rdf.model.Model jenaModel,
    Reasoning reasoning) {
  this.contextURI = contextURI;
  this.reasoning = reasoning;
  // re-use
  this.jenaModel = jenaModel;
  
  //wires RIOT readers/writers into Jena
  org.apache.jena.riot.RIOT.init();
  // Fix for Jena lowercase language name "N-Triples":
  RDFReaderFImpl.setBaseReaderClassName("N-Triples", com.hp.hpl.jena.rdf.model.impl.NTripleReader.class.getName()) ;
  RDFWriterFImpl.setBaseWriterClassName("N-Triples", com.hp.hpl.jena.rdf.model.impl.NTripleWriter.class.getName());
  
  applyReasoning(reasoning);
}
 
origin: castagna/jena-examples

public static void main(String[] args) {
  InputStream in = Utils.getResourceAsStream("data/data.ttl");
  
  RIOT.init() ;
  Model model = ModelFactory.createDefaultModel(); // creates an in-memory Jena Model
  model.read(in, null, "TURTLE"); // parses an InputStream assuming RDF in Turtle format
  
  // Write the Jena Model in Turtle, RDF/XML and N-Triples format
  System.out.println("\n---- Turtle ----");
  model.write(System.out, "TURTLE");
  System.out.println("\n---- RDF/XML ----");
  model.write(System.out, "RDF/XML");
  System.out.println("\n---- RDF/XML Abbreviated ----");
  model.write(System.out, "RDF/XML-ABBREV");
  System.out.println("\n---- N-Triples ----");
  model.write(System.out, "N-TRIPLES");
  System.out.println("\n---- RDF/JSON ----");
  model.write(System.out, "RDF/JSON");
}

origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

/** Ensure things have started - applications do not need call this.
 * The method is public so any part of ARQ can call it.
 * Note the final static initializer call 
 */

public static void init()
{ 
  if ( initialized )
    return ;
  synchronized(initLock)
  {
    if ( initialized )
      return ;
    initialized = true ;
    globalContext = defaultSettings() ;
    RIOT.init() ;
    StageBuilder.init() ;
    ARQMgt.init() ;         // After context and after PATH/NAME/VERSION/BUILD_DATE are set
    MappingRegistry.addPrefixMapping(ARQ.arqSymbolPrefix, ARQ.arqParamNS) ;
    
    // This is the pattern for any subsystem to register. 
    SystemInfo sysInfo = new SystemInfo(ARQ.arqIRI, ARQ.PATH, ARQ.VERSION, ARQ.BUILD_DATE) ;
    SystemARQ.registerSubSystem(sysInfo) ;
    // Register RIOT details here, not earlier, to avoid
    // initialization loops with RIOT.init() called directly.
    RIOT.register() ;
  }
}

org.apache.jena.riotRIOTinit

Popular methods of RIOT

  • getBuildDate
  • getContext
  • getVersion
  • register
  • setStrictMode

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • onCreateOptionsMenu (Activity)
  • compareTo (BigDecimal)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JList (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • 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