Class CommonsObjectSetBase
- java.lang.Object
-
- com.inrupt.rdf.wrapping.test.base.ObjectSetBase
-
- com.inrupt.rdf.wrapping.test.commons.CommonsObjectSetBase
-
public class CommonsObjectSetBase extends ObjectSetBase
-
-
Constructor Summary
Constructors Constructor Description CommonsObjectSetBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddTriple(String subject, String predicate, String object)Implementation specific derived methods must assert a triple with the given parameters in the per-test context graph contains.protected booleancontainsTriple(String subject, String predicate, String object)Implementation specific derived methods must check whether the per-test context graph contains a triple with the given parameters.protected Set<String>createNewSetForTest(String subject, String predicate)Implementation specific derived methods must create a new PredicateObjectSet over a fresh, per-test context graph.protected Set<String>createOtherSetOverSameGraph(String subject, String predicate)Implementation specific derived methods must create a new PredicateObjectSet over the existing, per-test context graph.
-
-
-
Method Detail
-
addTriple
protected void addTriple(String subject, String predicate, String object)
Description copied from class:ObjectSetBaseImplementation specific derived methods must assert a triple with the given parameters in the per-test context graph contains.- Specified by:
addTriplein classObjectSetBase- Parameters:
subject- the IRI string for the subject IRI node to be addedpredicate- the IRI string for the predicate IRI node to be addedobject- the lexical form for the object literal node to be added
-
containsTriple
protected boolean containsTriple(String subject, String predicate, String object)
Description copied from class:ObjectSetBaseImplementation specific derived methods must check whether the per-test context graph contains a triple with the given parameters.- Specified by:
containsTriplein classObjectSetBase- Parameters:
subject- the IRI string for the subject IRI node to be checkedpredicate- the IRI string for the predicate IRI node to be checkedobject- the lexical form for the object literal node to be checked
-
createNewSetForTest
protected Set<String> createNewSetForTest(String subject, String predicate)
Description copied from class:ObjectSetBaseImplementation specific derived methods must create a new PredicateObjectSet over a fresh, per-test context graph.- Specified by:
createNewSetForTestin classObjectSetBase- Parameters:
subject- the IRI string for the subject IRI node to be checkedpredicate- the IRI string for the predicate IRI node to be checked
-
createOtherSetOverSameGraph
protected Set<String> createOtherSetOverSameGraph(String subject, String predicate)
Description copied from class:ObjectSetBaseImplementation specific derived methods must create a new PredicateObjectSet over the existing, per-test context graph.- Specified by:
createOtherSetOverSameGraphin classObjectSetBase- Parameters:
subject- the IRI string for the subject IRI node to be checkedpredicate- the IRI string for the predicate IRI node to be checked
-
-