implicit class TripleOperations extends AnyRef
Adds all methods to DataSet that allows to use TripleOps functions.
- Alphabetic
- By Inheritance
- TripleOperations
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new TripleOperations(triples: DataSet[Triple])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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.
-
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.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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
-
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
-
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.
-
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.
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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.
-
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.
-
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.
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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
-
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
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getObjects(): DataSet[Node]
Get objects.
Get objects.
- returns
DataSet[Node] which contains list of the objects.
-
def
getPredicates(): DataSet[Node]
Get predicates.
Get predicates.
- returns
DataSet[Node] which contains list of the predicates.
-
def
getSubjects(): DataSet[Node]
Get subjects.
Get subjects.
- returns
DataSet[Node] which contains list of the subjects.
-
def
getTriples(): DataSet[Triple]
Get triples.
Get triples.
- returns
DataSet[Triple] which contains list of the triples.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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.
-
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.
-
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
-
def
size(): Long
Return the number of triples.
Return the number of triples.
- returns
the number of triples
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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)
-
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)
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()