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 void
addTriple(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 boolean
containsTriple(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:ObjectSetBase
Implementation specific derived methods must assert a triple with the given parameters in the per-test context graph contains.- Specified by:
addTriple
in 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:ObjectSetBase
Implementation specific derived methods must check whether the per-test context graph contains a triple with the given parameters.- Specified by:
containsTriple
in 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:ObjectSetBase
Implementation specific derived methods must create a new PredicateObjectSet over a fresh, per-test context graph.- Specified by:
createNewSetForTest
in 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:ObjectSetBase
Implementation specific derived methods must create a new PredicateObjectSet over the existing, per-test context graph.- Specified by:
createOtherSetOverSameGraph
in 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
-
-