Class BlankNode
- java.lang.Object
-
- io.github.webbasedwodt.model.ontology.BlankNode
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlankNodeaddPredicate(org.apache.commons.lang3.tuple.Pair<Property,Node> predicate)Add a predicate to the BlankNode.java.util.List<org.apache.commons.lang3.tuple.Pair<Property,Node>>getPredicates()Get the predicates inside the Blank node.java.util.Optional<java.lang.String>getUri()Get the URI of the Resource.
-
-
-
Method Detail
-
addPredicate
public BlankNode addPredicate(org.apache.commons.lang3.tuple.Pair<Property,Node> predicate)
Add a predicate to the BlankNode. Note that this is an immutable data structure, so it returns a new [BlankNode].- Parameters:
predicate- the predicate to add- Returns:
- the modified version of the Blank Node
-
getPredicates
public java.util.List<org.apache.commons.lang3.tuple.Pair<Property,Node>> getPredicates()
Get the predicates inside the Blank node.- Returns:
- the list of predicates
-
-