public final class Contexts extends Object
| Modifier and Type | Field and Description |
|---|---|
static IRI |
ALL
Special URI representing all contexts in Stardog, including the default (no) context graph.
|
static IRI |
DEFAULT
Special URI representing the default (no) context in Stardog.
|
static IRI |
NAMED
Special URI representing all named graphs in stardog, excluding the default graph.
|
| Modifier and Type | Method and Description |
|---|---|
static Resource |
defaultToNull(Resource theResource)
Takes a Resource identifying a named graph, and if it is the constant for the
DEFAULT graph,
it will return null, otherwise it returns the parameter as-is. |
static boolean |
isAll(Resource theContext)
Return whether or not the resource represents the meta-context
ALL |
static <T extends Value> |
isDefaultGraph() |
static boolean |
isDefaultGraphOrWildcard(Resource theContext) |
static boolean |
isNamed(Resource theContext)
Return whether or not the resource represents the meta-context
NAMED |
static boolean |
isSingleton(Set<Resource> theContexts)
Returns true if the set of contexts is a singleton
|
static boolean |
isWildcard(Resource theContext)
|
static Resource |
nullToDefault(Resource theResource)
Takes a Resource identifying a named graph, and if it is null, returns the constant for the
DEFAULT
graph. |
public static final IRI DEFAULT
public static final IRI ALL
public static final IRI NAMED
public static boolean isAll(Resource theContext)
ALLtheContext - the contextALL, false otherwisepublic static boolean isNamed(Resource theContext)
NAMEDtheContext - the contextNAMED, false otherwisepublic static Resource nullToDefault(Resource theResource)
DEFAULT
graph. Otherwise, returns the parameter as-is.theResource - the named graphDEFAULT if the parameter is null.public static Resource defaultToNull(Resource theResource)
DEFAULT graph,
it will return null, otherwise it returns the parameter as-is.theResource - the named graphpublic static boolean isWildcard(Resource theContext)
theContext - public static boolean isDefaultGraphOrWildcard(Resource theContext)
Copyright © 2010-2016 Stardog Union. All Rights Reserved.