| Package | Description |
|---|---|
| org.aksw.sparqlify.core.algorithms | |
| org.aksw.sparqlify.core.cast | |
| org.aksw.sparqlify.core.interfaces | |
| org.aksw.sparqlify.util |
| Modifier and Type | Method and Description |
|---|---|
ExprSqlRewrite |
MappingOpsImpl.rewrite(com.hp.hpl.jena.sdb.core.Gensym gensym,
com.hp.hpl.jena.sparql.expr.aggregate.AggCount agg) |
static ExprSqlRewrite |
MappingOpsImpl.rewrite(Mapping mapping,
com.hp.hpl.jena.sparql.expr.aggregate.Aggregator agg,
com.hp.hpl.jena.sdb.core.Generator generator,
TypeSystem typeSystem,
SqlTranslator sqlTranslator)
TODO: Without the toDouble coercion, SUM(int) will be discarded
even after already been found out as a candidate.
|
ExprSqlRewrite |
MappingOpsImpl.rewriteOld(com.hp.hpl.jena.sdb.core.Gensym gensym,
com.hp.hpl.jena.sparql.expr.aggregate.Aggregator agg)
Returns a pair comprised of:
- A SPARQL expression that references the SQL column of the aggregater
- A projection
// Ignore: the typeMap is implied by the projection - A type map
|
ExprSqlRewrite |
SqlTranslatorImpl.translate(com.hp.hpl.jena.sparql.expr.Expr expr,
Map<com.hp.hpl.jena.sparql.core.Var,com.hp.hpl.jena.sparql.expr.Expr> binding,
Map<String,TypeToken> typeMap)
Deprecated.
|
ExprSqlRewrite |
MappingOpsImpl.unifyAlternatives(com.hp.hpl.jena.sparql.expr.Expr e,
Mapping source)
Two variants:
- create a case-block for each expression
- create a union - but with the union we would eval the expression over and over again
- so we go with the case block
|
| Modifier and Type | Method and Description |
|---|---|
ExprSqlRewrite |
TypedExprTransformer.rewrite(com.hp.hpl.jena.sparql.expr.Expr expr,
Map<String,TypeToken> typeMap) |
ExprSqlRewrite |
TypedExprTransformerImpl.rewrite(com.hp.hpl.jena.sparql.expr.Expr expr,
Map<String,TypeToken> typeMap) |
ExprSqlRewrite |
TypedExprTransformerImpl.rewriteOld(com.hp.hpl.jena.sparql.expr.Expr expr,
Map<String,TypeToken> typeMap) |
| Modifier and Type | Method and Description |
|---|---|
ExprSqlRewrite |
SqlTranslator.translate(com.hp.hpl.jena.sparql.expr.Expr sparqlExpr,
Map<com.hp.hpl.jena.sparql.core.Var,com.hp.hpl.jena.sparql.expr.Expr> binding,
Map<String,TypeToken> typeMap)
We use the same Expr object for translating expressions.
|
| Modifier and Type | Method and Description |
|---|---|
ExprSqlRewrite |
SqlTranslatorImpl2.translate(com.hp.hpl.jena.sparql.expr.Expr sparqlExpr,
Map<com.hp.hpl.jena.sparql.core.Var,com.hp.hpl.jena.sparql.expr.Expr> binding,
Map<String,TypeToken> typeMap)
TODO: There are two use cases:
a) Rewrite an expression completely to SQL -> result is an SqlExpr object
b) Partially rewrite an expression to SQL -> result is an SqlExprRewrite object
I think the interface should return the SqlExprRewrite and
a static helper function then extracts the SqlExpr from it
|
| Modifier and Type | Method and Description |
|---|---|
static SqlExpr |
SqlTranslatorImpl2.asSqlExpr(ExprSqlRewrite rewrite)
Assumes that the rewrite's root expression is of type E_RdfTerm.
|
static SqlExpr |
SqlTranslatorImpl2.asSqlExprOld(ExprSqlRewrite rewrite) |
Copyright © 2014. All Rights Reserved.