Class

net.sansa_stack.rdf.spark.model

DSTripleOperations

Related Doc: package model

Permalink

implicit class DSTripleOperations extends Logging

Adds all methods to Dataset[Triple] that allows to use TripleOps functions.

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

Instance Constructors

  1. new DSTripleOperations(triples: Dataset[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): Dataset[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 Dataset of triples containing this statement.

  5. def addAll(triple: Seq[Triple]): Dataset[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 Dataset 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[Node] = None, predicate: Option[Node] = None, object: Option[Node] = 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: Dataset[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.

  11. def containsAny(other: Dataset[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.

  12. def difference(other: Dataset[Triple]): Dataset[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

    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): Dataset[Triple]

    Permalink

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

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

    triple

    the triple to be checked

    returns

    Dataset of triples that match the given input

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

    Permalink

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

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

    subject

    the subject

    predicate

    the predicate

    object

    the object

    returns

    Dataset of triples

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

    Permalink
    Definition Classes
    AnyRef → Any
  19. def getTriples(): Dataset[Triple]

    Permalink

    Get triples.

    Get triples.

    returns

    Dataset[Triple] which contains list of the triples.

  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. def intersection(other: Dataset[Triple]): Dataset[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

    the other RDF graph

    returns

    the intersection of both RDF graphs

  22. final def isInstanceOf[T0]: Boolean

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  39. def remove(triple: Triple): Dataset[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 Dataset of triples without this statement.

  40. def removeAll(triple: Seq[Triple]): Dataset[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 Dataset of triples without these statements.

  41. def saveAsNTriplesFile(path: String): Unit

    Permalink

    Write N-Triples from a given Dataset of triples

    Write N-Triples from a given Dataset of triples

    path

    path to the file containing N-Triples

  42. def size(): Long

    Permalink

    Return the number of triples.

    Return the number of triples.

    returns

    the number of triples

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

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

    Permalink

    Convert an Dataset of triples into a DataFrame of triples.

    Convert an Dataset of triples into a DataFrame of triples.

    returns

    a DataFrame of triples.

  45. def toRDD(): RDD[Triple]

    Permalink

    Convert a Dataset of triples into RDD[Triple].

    Convert a Dataset of triples into RDD[Triple].

    returns

    a RDD of triples.

  46. def toString(): String

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

    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)

  48. def unionAll(others: Seq[Dataset[Triple]]): Dataset[Triple]

    Permalink

    Return the union all of RDF graphs.

    Return the union all of RDF graphs.

    others

    sequence of Dataset of other RDF graph

    returns

    graph (union of all)

  49. final def wait(): Unit

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

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

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

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped