
net.sansa_stack.inference.spark.data.model.TripleUtils.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.data.model
import org.apache.jena.graph.{Node, Triple}
object TripleUtils extends TripleUtils
/**
* @author Lorenz Buehmann
*/
class TripleUtils {
implicit class RichTriple(val triple: Triple) {
def s: Node = triple.getSubject
def p: Node = triple.getPredicate
def o: Node = triple.getObject
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy