
net.sansa_stack.inference.spark.rules.plan.SQLQuery.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sansa-inference-spark_2.12 Show documentation
Show all versions of sansa-inference-spark_2.12 Show documentation
Apache Spark based inference layer for RDF and OWL
The newest version!
package net.sansa_stack.inference.spark.rules.plan
import scala.collection.mutable
import org.apache.jena.graph.{Node, Triple}
import net.sansa_stack.inference.utils.RuleUtils
/**
* @author Lorenz Buehmann
*/
class SQLQuery(triple: Triple) {
val selectedVars = mutable.Set[Node]()
def selectableVariables: List[Node] = RuleUtils.varsOf(triple)
def select(variable: Node): Unit = selectedVars += variable
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy