Class

net.sansa_stack.rdf.spark.model

DFTripleOperations

Related Doc: package model

Permalink

implicit class DFTripleOperations extends Logging

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

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

Instance Constructors

  1. new DFTripleOperations(triples: DataFrame)

    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): DataFrame

    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 DataFrame of triples containing this statement.

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

    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 DataFrame of triples containing this list of statements.

  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: Option[String] = None, predicate: Option[String] = None, object: Option[String] = None): 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 containsAll(other: DataFrame): 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.

  11. def containsAny(other: DataFrame): 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.

  12. def difference(other: DataFrame): DataFrame

    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

    the other RDF graph

    returns

    the difference of both RDF graphs

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

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

    Permalink

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

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

    triple

    the triple to be checked

    returns

    DataFrame of triples that match the given input

  17. def find(subject: Option[String] = None, predicate: Option[String] = None, object: Option[String] = None): DataFrame

    Permalink

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

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

    subject

    the subject

    predicate

    the predicate

    object

    the object

    returns

    DataFrame of triples

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

    Permalink
    Definition Classes
    AnyRef → Any
  19. def getObjects(): DataFrame

    Permalink

    Get objects.

    Get objects.

    returns

    DataFrame which contains list of the objects.

  20. def getPredicates(): DataFrame

    Permalink

    Get predicates.

    Get predicates.

    returns

    DataFrame which contains list of the predicates.

  21. def getSubjects(): DataFrame

    Permalink

    Get subjects.

    Get subjects.

    returns

    DataFrame which contains list of the subjects.

  22. def getTriples(): DataFrame

    Permalink

    Get triples.

    Get triples.

    returns

    RDD[Triple] which contains list of the triples.

  23. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  24. def intersection(other: DataFrame): DataFrame

    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

    the other RDF graph

    returns

    the intersection of both RDF graphs

  25. final def isInstanceOf[T0]: Boolean

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  42. def remove(triple: Triple): DataFrame

    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 DataFrame of triples without this statement.

  43. def removeAll(triple: Seq[Triple]): DataFrame

    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 DataFrame of triples without these statements.

  44. def saveAsNTriplesFile(path: String): Unit

    Permalink

    Write N-Triples from a given DataFrame of triples

    Write N-Triples from a given DataFrame of triples

    path

    path to the file containing N-Triples

  45. def size(): Long

    Permalink

    Return the number of triples.

    Return the number of triples.

    returns

    the number of triples

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

    Permalink
    Definition Classes
    AnyRef
  47. def toDS(): Dataset[Triple]

    Permalink

    Convert an DataFrame of triples into a Dataset of Triple.

    Convert an DataFrame of triples into a Dataset of Triple.

    returns

    a Dataset of triples.

  48. def toRDD(): RDD[Triple]

    Permalink

    Convert a DataFrame of triples into RDD[Triple].

    Convert a DataFrame of triples into RDD[Triple].

    returns

    a DataFrame of triples.

  49. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  50. def union(other: DataFrame): DataFrame

    Permalink

    Return the union of this RDF graph and another one.

    Return the union of this RDF graph and another one.

    other

    the other RDF graph

    returns

    graph (union of both)

  51. def unionAll(others: Seq[DataFrame]): DataFrame

    Permalink

    Return the union all of RDF graphs.

    Return the union all of RDF graphs.

    others

    sequence of DataFrames of other RDF graph

    returns

    graph (union of all)

  52. final def wait(): Unit

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

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

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

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped