public interface Namespaces extends Iterable<Namespace>
A collection of namespace defintions
| Modifier and Type | Field and Description |
|---|---|
static String |
BASE_URI |
static String |
DC |
static Namespaces |
DEFAULT
Stardog default namespaces.
|
static Namespaces |
EXTENDED
An immutable set of extended namespaces that include all
built-in namespaces plus other
commonly used namespaces DC, FOAF, SKOS, SWRL, and SWRLB. |
static String |
FOAF |
static String |
OWL |
static String |
RDF |
static Namespaces |
RDFA_INIT_CONTEXT
Set of namespaces based on Vocabulary Prefixes of W3C Documents (Recommendations or Notes)
|
static String |
RDFS |
static String |
SHACL |
static String |
SKOS |
static String |
STARDOG |
static String |
SWRL |
static String |
SWRLB |
static String |
XSD |
| Modifier and Type | Method and Description |
|---|---|
default Optional<String> |
iri(String thePrefix)
Return the IRI associated with the given prefix
|
default Optional<String> |
map(String thePrefixedName)
Maps the given prefixed name to a full IRI based on the namespace definitions
|
default Optional<String> |
prefix(String theIRI)
Return the prefix associated with the given IRI
|
default Stream<Namespace> |
stream()
Return a
Stream over the namespaces |
forEach, iterator, spliteratorstatic final String OWL
static final String RDF
static final String RDFS
static final String SHACL
static final String SWRL
static final String SWRLB
static final String XSD
static final String DC
static final String FOAF
static final String SKOS
static final String STARDOG
static final String BASE_URI
static final Namespaces DEFAULT
static final Namespaces EXTENDED
built-in namespaces plus other
commonly used namespaces DC, FOAF, SKOS, SWRL, and SWRLB.static final Namespaces RDFA_INIT_CONTEXT
@Nonnull default Optional<String> prefix(@Nonnull String theIRI)
theIRI - the IRI@Nonnull default Optional<String> iri(@Nonnull String thePrefix)
thePrefix - the prefix@Nonnull default Optional<String> map(@Nonnull String thePrefixedName)
thePrefixedName - the prefixed name@Nonnull default Stream<Namespace> stream()
Stream over the namespacesCopyright © 2010-2016 Stardog Union. All Rights Reserved.