public interface Namespaces extends Iterable<org.openrdf.model.Namespace>
Namespace
objects. This class, as a minimum, provides iteration over stored namespaces. Some implementations provide modification
functions to add or remove namespaces.| Modifier and Type | Field and Description |
|---|---|
static String |
BASE_URI |
static String |
DC |
static Namespaces |
DEFAULT
An immutable set of namespaces for built-in namespaces RDF, RDFS, XSD, and OWL.
|
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 |
SKOS |
static String |
STARDOG |
static String |
SWRL |
static String |
SWRLB |
static com.google.common.base.Function<Map.Entry<String,String>,org.openrdf.model.Namespace> |
TO_NAMESPACE
Function which can be used to turn
map entries into Namespace objects |
static String |
XSD |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(String thePrefix,
String theNamespace)
Adds a new namespace prefix to the namespaces.
|
boolean |
remove(String thePrefix)
Removes a namespace prefix from the namespaces.
|
forEach, iterator, spliteratorstatic final String OWL
static final String RDF
static final String RDFS
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
boolean add(String thePrefix, String theNamespace) throws NamespacesException
true if the namespaces has been modified as a result of this call or false if
the prefix is already mapped to the same namespaceNamespacesExceptionboolean remove(String thePrefix) throws NamespacesException
true if the namespaces has been modified as a result of this call or false if
the prefix does not in this namespaces.NamespacesExceptionCopyright © 2010-2016 Stardog Union. All Rights Reserved.