Packages

c

net.sansa_stack.rdf.flink.model

TripleOperations

implicit class TripleOperations extends AnyRef

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

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

Instance Constructors

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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def add(triple: Triple): DataSet[Triple]

    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]

    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
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. def contains(triple: Triple): Boolean

    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

    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

    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

    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]

    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
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  15. def filterObjects(func: (Node) ⇒ Boolean): DataSet[Triple]

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

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

    func

    a partial funtion.

    returns

    DataSet[Triple] a subset of the given DataSet.

  16. def filterPredicates(func: (Node) ⇒ Boolean): DataSet[Triple]

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

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

    func

    a partial funtion.

    returns

    DataSet[Triple] a subset of the given DataSet.

  17. def filterSubjects(func: (Node) ⇒ Boolean): DataSet[Triple]

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

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

    func

    a partial funtion.

    returns

    DataSet[Triple] a subset of the given DataSet.

  18. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def find(triple: Triple): DataSet[Triple]

    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

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

    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

  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def getObjects(): DataSet[Node]

    Get objects.

    Get objects.

    returns

    DataSet[Node] which contains list of the objects.

  23. def getPredicates(): DataSet[Node]

    Get predicates.

    Get predicates.

    returns

    DataSet[Node] which contains list of the predicates.

  24. def getSubjects(): DataSet[Node]

    Get subjects.

    Get subjects.

    returns

    DataSet[Node] which contains list of the subjects.

  25. def getTriples(): DataSet[Triple]

    Get triples.

    Get triples.

    returns

    DataSet[Triple] which contains list of the triples.

  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. def intersect(other: DataSet[Triple]): DataSet[Triple]

    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

  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. def remove(triple: Triple): DataSet[Triple]

    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.

  33. def removeAll(triple: Seq[Triple]): DataSet[Triple]

    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.

  34. def saveAsNTriplesFile(path: String): Unit

    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

  35. def size(): Long

    Return the number of triples.

    Return the number of triples.

    returns

    the number of triples

  36. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  37. def toString(): String
    Definition Classes
    AnyRef → Any
  38. def union(other: DataSet[Triple]): DataSet[Triple]

    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)

  39. def unionAll(others: Seq[DataSet[Triple]]): DataSet[Triple]

    Return the union all of RDF graphs.

    Return the union all of RDF graphs.

    others

    sequence of DataSets of other RDF graph

    returns

    graph (union of all)

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

Inherited from AnyRef

Inherited from Any

Ungrouped