org.apache.jena.sparql.core.Prologue Java Examples

The following examples show how to use org.apache.jena.sparql.core.Prologue. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SPARQLExtQuerySerializer.java    From sparql-generate with Apache License 2.0 5 votes vote down vote up
@Override
public void visitPrologue(Prologue prologue) {
    int row1 = out.getRow();
    PrologueSerializer.output(out, prologue);
    int row2 = out.getRow();
    if (row1 != row2) {
        out.newline();
    }
}
 
Example #2
Source File: SelectQueryPartialCopyVisitor.java    From sparql-generate with Apache License 2.0 4 votes vote down vote up
@Override
public void visitPrologue(final Prologue prologue) {
    output.setPrefixMapping(prologue.getPrefixMapping());
    String b = prologue.getBaseURI();
    output.setBaseURI(b);
}
 
Example #3
Source File: TarqlQuery.java    From tarql with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public Prologue getPrologue() {
	return prologue;
}
 
Example #4
Source File: TarqlQuery.java    From tarql with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public void setPrologue(Prologue prologue) {
	this.prologue = prologue;
}
 
Example #5
Source File: TarqlQuery.java    From tarql with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public TarqlQuery() {
	setPrologue(new Prologue());
}
 
Example #6
Source File: RuleSystemToUnionQuery.java    From quetzal with Eclipse Public License 2.0 4 votes vote down vote up
public QueryWithRepeatedResultVars(Prologue prologue) {
	super(prologue);
	projectVars = new QWRRV_VarExprList();
}
 
Example #7
Source File: SPARQLExt.java    From sparql-generate with Apache License 2.0 4 votes vote down vote up
@Override
public QueryVisitor create(Syntax syntax, Prologue prologue, IndentedWriter writer) {
    SerializationContext context = new SerializationContext(prologue, new NodeToLabelMapBNode("bn", false));
    return new SPARQLExtQuerySerializer(writer, context);
}
 
Example #8
Source File: SPARQLExtParserBase.java    From sparql-generate with Apache License 2.0 4 votes vote down vote up
@Override
protected Query newSubQuery(Prologue progloue) {
    return new SPARQLExtQuery(getPrologue());
}
 
Example #9
Source File: SelectExtractionVisitor.java    From sparql-generate with Apache License 2.0 4 votes vote down vote up
@Override
public void visitPrologue(final Prologue prologue) {
    output.setPrefixMapping(input.getPrefixMapping());
    String b = input.getBaseURI();
    output.setBaseURI(b);
}
 
Example #10
Source File: SPARQLExtQueryVisitorDelegate.java    From sparql-generate with Apache License 2.0 4 votes vote down vote up
@Override
public void visitPrologue(Prologue prologue) {
    delegate.visitPrologue(prologue);
}
 
Example #11
Source File: SPARQLExtQuery.java    From sparql-generate with Apache License 2.0 4 votes vote down vote up
/**
 * Creates a new empty query with the given prologue.
 */
public SPARQLExtQuery(Prologue prologue) {
	this();
	usePrologueFrom(prologue);
}
 
Example #12
Source File: SPARQLExtQueryCompare.java    From sparql-generate with Apache License 2.0 4 votes vote down vote up
@Override
public void visitPrologue(Prologue query1) {
    qc.visitPrologue(query1);
}
 
Example #13
Source File: QueryXExprNormalizer.java    From sparql-generate with Apache License 2.0 4 votes vote down vote up
@Override
public void visitPrologue(Prologue prologue) {
}
 
Example #14
Source File: QueryAggregatesNormalizer.java    From sparql-generate with Apache License 2.0 4 votes vote down vote up
@Override
public void visitPrologue(Prologue prologue) {
}
 
Example #15
Source File: SPARQLStar.java    From RDFstarTools with Apache License 2.0 4 votes vote down vote up
@Override
      public QueryVisitor create(Syntax syntax, Prologue prologue, IndentedWriter writer) {
	return wrappedFactory.create(syntax, prologue, writer);
}
 
Example #16
Source File: ResultSetWritersSPARQLStar.java    From RDFstarTools with Apache License 2.0 4 votes vote down vote up
protected TextOutput createTextOutput() {
	final SerializationContext sc = new SerializationContext( (Prologue)null );
    return new TextOutputStar( sc );
}
 
Example #17
Source File: TextOutputStar.java    From RDFstarTools with Apache License 2.0 votes vote down vote up
public TextOutputStar(Prologue prologue) { super(prologue); }