Package org.wikier.trioo.jtrioo.rdf

Examples of org.wikier.trioo.jtrioo.rdf.RDFTerm


    //properties
    visit(metaResource.getProperties());
  }
 
  public void visit(CURIE rdftype) {
    RDFTerm subject;
    if (this.uri != null) {
      subject = new URIRef(this.uri);
    } else {
      subject = this.x;
    }
View Full Code Here


    this.query.addTriplePattern(new TriplePattern(subject, new AbbrevRdfType(), rdftype));
  }
 
  public void visit(Arc arc) {
    //FIXME: single/multi literal/object
    RDFTerm subject;
    if (this.uri != null) {
      subject = new URIRef(this.uri);
    } else {
      subject = this.x;
    }
View Full Code Here

      logger.error("No object found, insert query can't be generated!");
    }
  }
 
  public void visit(CURIE rdftype) {
    RDFTerm subject;
    if (this.uri != null) {
      subject = new URIRef(this.uri);
    } else {
      subject = this.s;
    }
View Full Code Here

      e.printStackTrace();
    }
  }

  private void generateTriple(Arc arc, Object obj) {
    RDFTerm subject;
    if (this.uri != null) {
      subject = new URIRef(this.uri);
    } else {
      subject = this.s;
    }
View Full Code Here

  @Override
  public void addTriplePattern(TriplePattern pattern) {
    super.addTriplePattern(pattern);
    BNode s = new BNode("v");
    RDFTerm p = pattern.getPredicate();
    RDFTerm o = pattern.getObject();
    this.construct.addPattern(s, p, o);
  }
View Full Code Here

  public void visit(From from) {
    this.append(from.toString());
  }
 
  public void visit(TriplePattern pattern) {
    RDFTerm s = pattern.getSubject();
    RDFTerm p = pattern.getPredicate();
    RDFTerm o = pattern.getObject();
    String triple = s + " " + p + " " + o;
    if (pattern.isOptional()) {
      triple = "OPTIONAL { " + triple + " }";
    }
    this.append("  " + triple + " . ");
View Full Code Here

TOP

Related Classes of org.wikier.trioo.jtrioo.rdf.RDFTerm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.