Tabnine Logo
NodeFormatter.format
Code IndexAdd Tabnine to your IDE (free)

How to use
format
method
in
org.apache.jena.riot.out.NodeFormatter

Best Java code snippets using org.apache.jena.riot.out.NodeFormatter.format (Showing top 18 results out of 315)

origin: apache/jena

protected final void writeNode(Node node) {
  nodeFmt.format(out, node) ;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

private void format(Node n)
{
  nodeFmt.format(out, n) ;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

protected final void writeNode(Node node)
{
  nodeFmt.format(out, node) ;
}
origin: apache/jena

private void format(Node n) {
  nodeFmt.format(out, n) ;
}
origin: apache/jena

/**
 * Writes a Node
 * 
 * @param n
 *            Node
 */
protected void writeNode(Node n) {
  this.getNodeFormatter().format(this.writer, n);
}
origin: org.apache.jena/jena-elephas-io

/**
 * Writes a Node
 * 
 * @param n
 *            Node
 */
protected void writeNode(Node n) {
  this.getNodeFormatter().format(this.writer, n);
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

public static void serialize(IndentedWriter w, Node n, String base, PrefixMap prefixMap)
{
  if ( prefixMap == null )
    prefixMap = dftPrefixMap ;
  NodeFormatter formatter = new NodeFormatterTTL(base, prefixMap) ;
  formatter.format(w, n) ;
}

origin: apache/jena

@Override
public void send(Triple triple) {
  Node s = triple.getSubject() ;
  Node p = triple.getPredicate() ;
  Node o = triple.getObject() ;
  nodeFmt.format(out, s) ;
  out.print(" ") ;
  nodeFmt.format(out, p) ;
  out.print(" ") ;
  nodeFmt.format(out, o) ;
  out.print(" .\n") ;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

@Override
public void send(Triple triple)
{
    Node s = triple.getSubject() ;
    Node p = triple.getPredicate() ;
    Node o = triple.getObject() ;
    nodeFmt.format(out, s) ;
    out.print(" ") ;
    nodeFmt.format(out, p) ;
    out.print(" ") ;
    nodeFmt.format(out, o) ;
    out.print(" .\n") ;
}
origin: apache/jena

@Override
public void send(Quad quad)
{
  Node s = quad.getSubject() ;
  Node p = quad.getPredicate() ;
  Node o = quad.getObject() ;
  Node g = quad.getGraph() ;
  nodeFmt.format(out, s) ;
  out.print(" ") ;
  nodeFmt.format(out, p) ;
  out.print(" ") ;
  nodeFmt.format(out, o) ;
  if ( outputGraphSlot(g) ) 
  {
    out.print(" ") ;
    nodeFmt.format(out, g) ;
  }
  out.print(" .\n") ;
}

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

@Override
public void send(Quad quad)
{
  Node s = quad.getSubject() ;
  Node p = quad.getPredicate() ;
  Node o = quad.getObject() ;
  Node g = quad.getGraph() ;
  nodeFmt.format(out, s) ;
  out.print(" ") ;
  nodeFmt.format(out, p) ;
  out.print(" ") ;
  nodeFmt.format(out, o) ;
  if ( outputGraphSlot(g) ) 
  {
    out.print(" ") ;
    nodeFmt.format(out, g) ;
  }
  out.print(" .\n") ;
}

origin: apache/jena

public static void serialize(IndentedWriter w, Node n, String base, PrefixMap prefixMap)
{
  NodeFormatter formatter ;
  if ( base == null && prefixMap == null )
    formatter = plainFormatter ;
  else 
    formatter = new NodeFormatterTTL(base, prefixMap) ;
  formatter.format(w, n) ;
}

origin: org.apache.jena/jena-elephas-io

@Override
public void write(TKey key, T value) {
  log.debug("write({}={})", key, value);
  Node[] ns = this.getNodes(value);
  String sep = this.getSeparator();
  NodeFormatter formatter = this.getNodeFormatter();
  for (int i = 0; i < ns.length; i++) {
    formatter.format(this.writer, ns[i]);
    this.writer.print(sep);
  }
  this.writer.println(this.getTerminator());
  this.writer.flush();
}
origin: apache/jena

@Override
public void write(TKey key, T value) {
  log.debug("write({}={})", key, value);
  Node[] ns = this.getNodes(value);
  String sep = this.getSeparator();
  NodeFormatter formatter = this.getNodeFormatter();
  for (int i = 0; i < ns.length; i++) {
    formatter.format(this.writer, ns[i]);
    this.writer.print(sep);
  }
  this.writer.println(this.getTerminator());
  this.writer.flush();
}
origin: apache/jena

public static void test(NodeFormatter nodeFormatter, Node n , String str)
{
  StringWriterI sw = new StringWriterI() ;
  nodeFormatter.format(sw, n) ;
  String str2 = sw.toString() ;
  assertEquals(str, str2) ;
}
origin: apache/jena

if ( n != null ) {
  formatter.format(w, n);
origin: apache/jena

nodeFormatter.format(bw, n) ;
bw.write(" ") ;
origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

nodeFormatter.format(bw, n) ;
bw.write(" ") ;
org.apache.jena.riot.outNodeFormatterformat

Javadoc

Node is guaranteed to be a blank node

Popular methods of NodeFormatter

  • formatURI
    Node is guaranteed to be a URI node
  • formatLiteral
    Node is guaranteed to be a literal

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • getSystemService (Context)
  • requestLocationUpdates (LocationManager)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Join (org.hibernate.mapping)
  • Top Sublime Text 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