Object

net.sansa_stack.rdf.spark.model.df

TripleOps

Related Doc: package df

Permalink

object TripleOps

Spark/DataFrame based implementation of DataFrame of triples.

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

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(triples: DataFrame, triple: Triple): DataFrame

    Permalink

    Add a statement to the current RDF graph.

    Add a statement to the current RDF graph.

    triples

    DataFrame of RDF graph

    triple

    the triple to be added.

    returns

    new DataFrame of triples containing this statement.

  5. def addAll(triples: DataFrame, 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.

    triples

    DataFrame of 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(triples: DataFrame, triple: Triple): Boolean

    Permalink

    Determine if a triple is present in this RDF graph.

    Determine if a triple is present in this RDF graph.

    triples

    DataFrame of triples

    triple

    the triple to be checked

    returns

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

  9. def contains(triples: DataFrame, 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.

    triples

    DataFrame of triples

    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(triples: DataFrame, 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.

    triples

    DataFrame of triples

    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(triples: DataFrame, 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.

    triples

    DataFrame of triples

    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(triples: DataFrame, 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.

    triples

    DataFrame of 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(triples: DataFrame, 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.

    triples

    DataFrame of triples

    triple

    the triple to be checked

    returns

    DataFrame of triples that match the given input

  17. def find(triples: DataFrame, 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.

    triples

    DataFrame of triples

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

    Permalink

    Get objects.

    Get objects.

    triples

    DataFrame of triples.

    returns

    DataFrame which contains list of the objects.

  20. def getPredicates(triples: DataFrame): DataFrame

    Permalink

    Get predicates.

    Get predicates.

    triples

    DataFrame of triples.

    returns

    DataFrame which contains list of the predicates.

  21. def getSQL(subject: Option[String] = None, predicate: Option[String] = None, object: Option[String] = None): String

    Permalink

    Generate the translated SQL statement from the triple pattern.

    Generate the translated SQL statement from the triple pattern.

    subject

    the subject

    predicate

    the predicate

    object

    the object

    returns

    the translated SQL statement as a string

  22. def getSubjects(triples: DataFrame): DataFrame

    Permalink

    Get subjects.

    Get subjects.

    triples

    DataFrame of triples.

    returns

    DataFrame which contains list of the subjects.

  23. def getTriples(triples: DataFrame): DataFrame

    Permalink

    Get triples.

    Get triples.

    triples

    DataFrame of triples.

    returns

    DataFrame which contains list of the triples.

  24. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  25. def intersection(triples: DataFrame, 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.

    triples

    DataFrame of RDF graph

    other

    the other RDF graph

    returns

    the intersection of both RDF graphs

  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  30. def remove(triples: DataFrame, 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.

    triples

    DataFrame of RDF graph

    triple

    the statement to be removed.

    returns

    new DataFrame of triples without this statement.

  31. def removeAll(triples: DataFrame, 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.

    triples

    DataFrame of RDF graph

    triple

    the list of statements to be removed.

    returns

    new DataFrame of triples without these statements.

  32. def saveAsNTriplesFile(triples: DataFrame, path: String): Unit

    Permalink

    Write N-Triples from a given DataFrame of triples

    Write N-Triples from a given DataFrame of triples

    triples

    DataFrame of RDF graph

    path

    path to the file containing N-Triples

  33. def size(triples: DataFrame): Long

    Permalink

    Return the number of triples.

    Return the number of triples.

    triples

    DataFrame of triples

    returns

    the number of triples

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

    Permalink
    Definition Classes
    AnyRef
  35. def toDS(triples: DataFrame): Dataset[Triple]

    Permalink

    Convert a DataFrame of Triple into a Dataset of Triple.

    Convert a DataFrame of Triple into a Dataset of Triple.

    triples

    DataFrame of triples.

    returns

    a Dataset of triples.

  36. def toRDD(triples: DataFrame): RDD[Triple]

    Permalink

    Convert a DataFrame into a RDD[Triple].

    Convert a DataFrame into a RDD[Triple].

    triples

    DataFrame of triples (as string).

    returns

    a RDD of triples.

  37. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  38. def union(triples: DataFrame, other: DataFrame): DataFrame

    Permalink

    Return the union of this RDF graph and another one.

    Return the union of this RDF graph and another one.

    triples

    DataFrame of RDF graph

    other

    the other RDF graph

    returns

    graph (union of both)

  39. def unionAll(triples: DataFrame, others: Seq[DataFrame]): DataFrame

    Permalink

    Return the union all of RDF graphs.

    Return the union all of RDF graphs.

    triples

    DataFrame of RDF graph

    others

    sequence of DataFrames of other RDF graph

    returns

    graph (union of all)

  40. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped