Class

net.sansa_stack.rdf.spark.model

TripleOperations

Related Doc: package model

Permalink

implicit class TripleOperations extends Logging

Adds all methods to RDD that allows to use TripleOps functions.

Linear Supertypes
Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TripleOperations
  2. Logging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TripleOperations(triples: RDD[Triple])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def add(triple: Triple): RDD[Triple]

    Permalink

    Add a statement to the current RDF graph.

    Add a statement to the current RDF graph.

    triple

    the triple to be added.

    returns

    new RDD of triples containing this statement.

    See also

    net.sansa_stack.rdf.spark.model.rdd.TripleOps.add

  5. def addAll(triple: Seq[Triple]): RDD[Triple]

    Permalink

    Add a list of statements to the current RDF graph.

    Add a list of statements to the current RDF graph.

    triple

    the list of triples to be added.

    returns

    new RDD of triples containing this list of statements.

    See also

    net.sansa_stack.rdf.spark.model.rdd.TripleOps.addAll

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def contains(triple: Triple): Boolean

    Permalink

    Determine if a triple is present in this RDF graph.

    Determine if a triple is present in this RDF graph.

    triple

    the triple to be checked

    returns

    true if the statement s is in this RDF graph, false otherwise

  9. def contains(subject: Some[Node], predicate: Some[Node], object: Some[Node]): Boolean

    Permalink

    Determine whether this RDF graph contains any triples with a given (subject, predicate, object) pattern.

    Determine whether this RDF graph contains any triples with a given (subject, predicate, object) pattern.

    subject

    the subject (None for any)

    predicate

    the predicate (None for any)

    object

    the object (None for any)

    returns

    true if there exists within this RDF graph a triple with (S, P, O) pattern, false otherwise

  10. def contains(subject: Some[Node], predicate: Some[Node]): Boolean

    Permalink

    Determine whether this RDF graph contains any triples with a given subject and predicate.

    Determine whether this RDF graph contains any triples with a given subject and predicate.

    subject

    the subject (None for any)

    predicate

    the predicate (Node for any)

    returns

    true if there exists within this RDF graph a triple with subject and predicate, false otherwise

  11. def containsAll(other: RDD[Triple]): Boolean

    Permalink

    Determine if all of the statements in an RDF graph are also contained in this RDF graph.

    Determine if all of the statements in an RDF graph are also contained in this RDF graph.

    other

    the other RDF graph containing the statements to be tested

    returns

    true if all of the statements in RDF graph are also contained in this RDF graph and false otherwise.

  12. def containsAny(other: RDD[Triple]): Boolean

    Permalink

    Determine if any of the triples in an RDF graph are also contained in this RDF graph.

    Determine if any of the triples in an RDF graph are also contained in this RDF graph.

    other

    the other RDF graph containing the statements to be tested

    returns

    true if any of the statements in RDF graph are also contained in this RDF graph and false otherwise.

  13. def difference(other: RDD[Triple]): RDD[Triple]

    Permalink

    Returns a new RDF graph that contains the difference between the current RDF graph and the given RDF graph.

    Returns a new RDF graph that contains the difference between the current RDF graph and the given RDF graph.

    other

    of the other RDF graph

    returns

    the difference of both RDF graphs

    See also

    net.sansa_stack.rdf.spark.model.rdd.TripleOps.difference

  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def filterObjects(func: (Node) ⇒ Boolean): RDD[Triple]

    Permalink

    Filter out the objects from a given RDD[Triple], based on a specific function @func .

    Filter out the objects from a given RDD[Triple], based on a specific function @func .

    func

    a partial funtion.

    returns

    RDD[Triple] a subset of the given RDD.

    See also

    net.sansa_stack.rdf.spark.model.rdd.TripleOps.filterObjects

  17. def filterPredicates(func: (Node) ⇒ Boolean): RDD[Triple]

    Permalink

    Filter out the predicates from a given RDD[Triple], based on a specific function @func .

    Filter out the predicates from a given RDD[Triple], based on a specific function @func .

    func

    a partial funtion.

    returns

    RDD[Triple] a subset of the given RDD.

    See also

    net.sansa_stack.rdf.spark.model.rdd.TripleOps.filterPredicates

  18. def filterSubjects(func: (Node) ⇒ Boolean): RDD[Triple]

    Permalink

    Filter out the subject from a given RDD[Triple], based on a specific function @func .

    Filter out the subject from a given RDD[Triple], based on a specific function @func .

    func

    a partial funtion.

    returns

    RDD[Triple] a subset of the given RDD.

    See also

    net.sansa_stack.rdf.spark.model.rdd.TripleOps.filterSubjects

  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def find(triple: Triple): RDD[Triple]

    Permalink

    Returns an RDD of triples that match with the given input.

    Returns an RDD of triples that match with the given input.

    triple

    the triple to be checked

    returns

    RDD of triples that match the given input

    See also

    net.sansa_stack.rdf.spark.model.rdd.TripleOps.find

  21. def find(subject: Option[Node] = None, predicate: Option[Node] = None, object: Option[Node] = None): RDD[Triple]

    Permalink

    Returns an RDD of triples that match with the given input.

    Returns an RDD of triples that match with the given input.

    subject

    the subject

    predicate

    the predicate

    object

    the object

    returns

    RDD of triples

    See also

    net.sansa_stack.rdf.spark.model.rdd.TripleOps.find

  22. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  23. def getObjects(): RDD[Node]

    Permalink

    Get objects.

    Get objects.

    returns

    RDD[Node] which contains list of the objects.

    See also

    net.sansa_stack.rdf.spark.model.rdd.TripleOps.getObjects

  24. def getPredicates(): RDD[Node]

    Permalink

    Get predicates.

    Get predicates.

    returns

    RDD[Node] which contains list of the predicates.

    See also

    net.sansa_stack.rdf.spark.model.rdd.TripleOps.getPredicates

  25. def getSubjects(): RDD[Node]

    Permalink

    Get subjects.

    Get subjects.

    returns

    RDD[Node] which contains list of the subjects.

    See also

    net.sansa_stack.rdf.spark.model.rdd.TripleOps.getSubjects

  26. def getTriples(): RDD[Triple]

    Permalink

    Get triples.

    Get triples.

    returns

    RDD[Triple] which contains list of the triples.

  27. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  28. def intersection(other: RDD[Triple]): RDD[Triple]

    Permalink

    Returns a new RDF graph that contains the intersection of the current RDF graph with the given RDF graph.

    Returns a new RDF graph that contains the intersection of the current RDF graph with the given RDF graph.

    other

    of the other RDF graph

    returns

    the intersection of both RDF graphs

    See also

    net.sansa_stack.rdf.spark.model.rdd.TripleOps.intersection

  29. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  30. def isTraceEnabled(): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  31. def log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  32. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  33. def logDebug(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  34. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  35. def logError(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  36. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  37. def logInfo(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  38. def logName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  39. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  40. def logTrace(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  41. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  42. def logWarning(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  43. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  44. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  45. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  46. def remove(triple: Triple): RDD[Triple]

    Permalink

    Removes a statement from the current RDF graph.

    Removes a statement from the current RDF graph. The statement with the same subject, predicate and object as that supplied will be removed from the model.

    triple

    the statement to be removed.

    returns

    new RDD of triples without this statement.

    See also

    net.sansa_stack.rdf.spark.model.rdd.TripleOps.remove

  47. def removeAll(triple: Seq[Triple]): RDD[Triple]

    Permalink

    Removes all the statements from the current RDF graph.

    Removes all the statements from the current RDF graph. The statements with the same subject, predicate and object as those supplied will be removed from the model.

    triple

    the list of statements to be removed.

    returns

    new RDD of triples without these statements.

    See also

    net.sansa_stack.rdf.spark.model.rdd.TripleOps.removeAll

  48. def saveAsNTriplesFile(path: String): Unit

    Permalink

    Write N-Triples from a given RDD of triples

    Write N-Triples from a given RDD of triples

    path

    path to the file containing N-Triples

    See also

    net.sansa_stack.rdf.spark.model.rdd.TripleOps.saveAsNTriplesFile

  49. def size(): Long

    Permalink

    Return the number of triples.

    Return the number of triples.

    returns

    the number of triples

    See also

    net.sansa_stack.rdf.spark.model.rdd.TripleOps.size

  50. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  51. def toDF(): DataFrame

    Permalink

    Convert a RDD[Triple] into a DataFrame.

    Convert a RDD[Triple] into a DataFrame.

    returns

    a DataFrame of triples.

    See also

    net.sansa_stack.rdf.spark.model.rdd.TripleOps.toDF

  52. def toDS(): Dataset[Triple]

    Permalink

    Convert an RDD of Triple into a Dataset of Triple.

    Convert an RDD of Triple into a Dataset of Triple.

    returns

    a Dataset of triples.

    See also

    net.sansa_stack.rdf.spark.model.rdd.TripleOps.toDS

  53. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  54. def union(other: RDD[Triple]): RDD[Triple]

    Permalink

    Return the union of this RDF graph and another one.

    Return the union of this RDF graph and another one.

    other

    of the other RDF graph

    returns

    graph (union of both)

    See also

    net.sansa_stack.rdf.spark.model.rdd.TripleOps.union

  55. def unionAll(others: Seq[RDD[Triple]]): RDD[Triple]

    Permalink

    Return the union all of RDF graphs.

    Return the union all of RDF graphs.

    returns

    graph (union of all)

    See also

    net.sansa_stack.rdf.spark.model.rdd.TripleOps.unionAll

  56. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped