Tabnine Logo
ElementVisitorBase.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.jena.sparql.syntax.ElementVisitorBase
constructor

Best Java code snippets using org.apache.jena.sparql.syntax.ElementVisitorBase.<init> (Showing top 8 results out of 315)

origin: apache/jena

private RecursiveElementVisitor() { this.visitor = new ElementVisitorBase() ; }

origin: SmartDataAnalytics/jena-sparql-api

  /** The primitive operation to apply a transformation to an Op */
  protected Element applyTransformation(ApplyTransformVisitor transformApply, Element element,
                     ElementVisitor beforeVisitor, ElementVisitor afterVisitor) {
//        ElementWalker.walk(element, transformApply) ; // , beforeVisitor,
//                                                      // afterVisitor) ;
    beforeVisitor = beforeVisitor == null ? new ElementVisitorBase() : beforeVisitor;
    afterVisitor = afterVisitor == null ? new ElementVisitorBase() : afterVisitor;

    ElementWalker.walk(element, transformApply, beforeVisitor, afterVisitor);
    Element r = transformApply.result() ;
    return r ;
  }

origin: SmartDataAnalytics/DL-Learner

public static Set<Triple> getTriplePatterns(Query query){
  final Set<Triple> triplePatterns = Sets.newHashSet();
  
  ElementWalker.walk(query.getQueryPattern(), new ElementVisitorBase(){
    @Override
    public void visit(ElementTriplesBlock el) {
      Iterator<Triple> triples = el.patternElts();
      while (triples.hasNext()) {
        Triple triple = triples.next();
        triplePatterns.add(triple);
      }
    }
    
    @Override
    public void visit(ElementPathBlock el) {
      Iterator<TriplePath> triplePaths = el.patternElts();
      while (triplePaths.hasNext()) {
        TriplePath tp = triplePaths.next();
        if(tp.isTriple()) {
          Triple triple = tp.asTriple();
          triplePatterns.add(triple);
        }
      }
    }
  });
  return triplePatterns;
}

origin: SmartDataAnalytics/DL-Learner

final Set<Var> vars = new HashSet<>();
ElementWalker.walk(query.getQueryPattern(), new ElementVisitorBase(){
  @Override
  public void visit(ElementTriplesBlock el) {
origin: TopQuadrant/shacl

ElementVisitor elementVisitor = new RecursiveElementVisitor(new ElementVisitorBase()) {
origin: ch.epfl.bluebrain.nexus.org.topbraid/shacl

ElementVisitor elementVisitor = new RecursiveElementVisitor(new ElementVisitorBase()) {
origin: SmartDataAnalytics/DL-Learner

final Set<Triple> outgoingTriples = Sets.newHashSet();
ElementWalker.walk(query.getQueryPattern(), new ElementVisitorBase(){
  @Override
  public void visit(ElementTriplesBlock el) {
origin: SmartDataAnalytics/DL-Learner

final Set<Triple> outgoingTriples = Sets.newHashSet();
ElementWalker.walk(query.getQueryPattern(), new ElementVisitorBase(){
  @Override
  public void visit(ElementTriplesBlock el) {
org.apache.jena.sparql.syntaxElementVisitorBase<init>

Popular methods of ElementVisitorBase

    Popular in Java

    • Reading from database using SQL prepared statement
    • getApplicationContext (Context)
    • onCreateOptionsMenu (Activity)
    • runOnUiThread (Activity)
    • Runnable (java.lang)
      Represents a command that can be executed. Often used to run code in a different Thread.
    • Permission (java.security)
      Legacy security code; do not use.
    • Set (java.util)
      A Set is a data structure which does not allow duplicate elements.
    • Stack (java.util)
      Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
    • BlockingQueue (java.util.concurrent)
      A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
    • JOptionPane (javax.swing)
    • Top Vim 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