public class GraphPatterns extends Object
Modifier and Type | Method and Description |
---|---|
static GraphPatternNotTriples |
and(GraphPattern... patterns)
Create a group graph pattern containing the given graph patterns
|
static GraphPatternNotTriples |
filterExists(boolean exists,
GraphPattern... patterns) |
static GraphPatternNotTriples |
filterExists(GraphPattern... patterns) |
static GraphPatternNotTriples |
filterNotExists(GraphPattern... patterns) |
static GraphPatternNotTriples |
minus(GraphPattern... patterns) |
static GraphPatternNotTriples |
optional(GraphPattern... patterns)
Create an optional group graph pattern containing the given graph patterns:
|
static SubSelect |
select(Projectable... projectables)
Create a SPARQL subquery, including the given elements in its projection.
|
static TriplePattern |
tp(RdfBlankNode.PropertiesBlankNode bnode)
Create a triple pattern from a property-list blank node
|
static TriplePattern |
tp(RdfSubject subject,
IRI predicate,
RdfObject... objects)
Create a triple pattern with the given subject, predicate, and object(s)
|
static TriplePattern |
tp(RdfSubject subject,
IRI predicate,
Value... objects) |
static TriplePattern |
tp(RdfSubject subject,
RdfPredicateObjectList... lists)
Create a triple pattern with the given subject and predicate-object list(s)
|
static TriplePattern |
tp(RdfSubject subject,
RdfPredicate predicate,
RdfObject... objects)
Create a triple pattern with the given subject, predicate, and object(s)
|
static TriplePattern |
tp(RdfSubject subject,
RdfPredicate predicate,
Value... objects) |
static TriplePattern |
tp(Resource subject,
IRI predicate,
RdfObject... objects)
Create a triple pattern with the given subject, predicate, and object(s)
|
static TriplePattern |
tp(Resource subject,
IRI predicate,
Value... objects) |
static TriplePattern |
tp(Resource subject,
RdfPredicate predicate,
RdfObject... objects)
Create a triple pattern with the given subject, predicate, and object(s)
|
static TriplePattern |
tp(Resource subject,
RdfPredicate predicate,
Value... objects) |
static GraphPatternNotTriples |
union(GraphPattern... patterns)
Create an alternative graph pattern containing the union of the given graph patterns:
|
public static TriplePattern tp(RdfSubject subject, RdfPredicate predicate, RdfObject... objects)
subject
- predicate
- objects
- TriplePattern
public static TriplePattern tp(RdfSubject subject, RdfPredicate predicate, Value... objects)
public static TriplePattern tp(RdfSubject subject, IRI predicate, RdfObject... objects)
subject
- the triple pattern subjectpredicate
- the triple pattern predicate as a IRI
objects
- the triples pattern object(s)TriplePattern
public static TriplePattern tp(RdfSubject subject, IRI predicate, Value... objects)
public static TriplePattern tp(Resource subject, RdfPredicate predicate, RdfObject... objects)
subject
- the triple pattern subjectpredicate
- the triple pattern predicate as a IRI
objects
- the triples pattern object(s)TriplePattern
public static TriplePattern tp(Resource subject, RdfPredicate predicate, Value... objects)
public static TriplePattern tp(Resource subject, IRI predicate, RdfObject... objects)
subject
- the triple pattern subject as a Resource
predicate
- the triple pattern predicate as a IRI
objects
- the triples pattern object(s)TriplePattern
public static TriplePattern tp(Resource subject, IRI predicate, Value... objects)
public static TriplePattern tp(RdfSubject subject, RdfPredicateObjectList... lists)
subject
- lists
- TriplePattern
public static TriplePattern tp(RdfBlankNode.PropertiesBlankNode bnode)
bnode
- the PropertiesBlankNode instance to convert to a triple patternpublic static GraphPatternNotTriples and(GraphPattern... patterns)
patterns
- the patterns to include in the group graph a patternpublic static GraphPatternNotTriples union(GraphPattern... patterns)
{ { pattern1 } UNION { pattern2 } UNION ... UNION { patternN } }
patterns
- the patterns to include in the unionpublic static GraphPatternNotTriples optional(GraphPattern... patterns)
{ OPTIONAL { pattern1 . pattern2 . ... patternN } }
patterns
- the patterns to include in the optional graph patternpublic static GraphPatternNotTriples filterExists(GraphPattern... patterns)
public static GraphPatternNotTriples filterNotExists(GraphPattern... patterns)
public static GraphPatternNotTriples minus(GraphPattern... patterns)
public static GraphPatternNotTriples filterExists(boolean exists, GraphPattern... patterns)
public static SubSelect select(Projectable... projectables)
projectables
- the elements to include in the projection of the subqueryCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.