Package com.stardog.stark
Interface Namespaces
-
- All Superinterfaces:
java.lang.Iterable<Namespace>
- All Known Subinterfaces:
NamespacesInfo
public interface Namespaces extends java.lang.Iterable<Namespace>
A collection of
namespace defintions
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BASE_URI
static java.lang.String
DC
static Namespaces
DEFAULT
Stardog default namespaces.static Namespaces
EXTENDED
An immutable set of extended namespaces that include allbuilt-in namespaces
plus other commonly used namespaces DC, FOAF, SKOS, SWRL, and SWRLB.static java.lang.String
FOAF
static java.lang.String
OWL
static java.lang.String
PROV
static java.lang.String
RDF
static Namespaces
RDFA_INIT_CONTEXT
Set of namespaces based on Vocabulary Prefixes of W3C Documents (Recommendations or Notes)static java.lang.String
RDFS
static java.lang.String
SCHEMA_ORG
static java.lang.String
SHACL
static java.lang.String
SKOS
static java.lang.String
STARDOG
static java.lang.String
STARDOG_SHACL
static java.lang.String
SWRL
static java.lang.String
SWRLB
static java.lang.String
XSD
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static Namespaces
defaults(java.lang.String theDefaultIRI)
Stardog default namespaces with a user-defined default namespace.default java.util.Optional<java.lang.String>
iri(java.lang.String thePrefix)
Return the IRI associated with the given prefixdefault java.util.Optional<java.lang.String>
map(java.lang.String thePrefixedName)
Maps the given prefixed name to a full IRI based on the namespace definitionsdefault java.util.Optional<java.lang.String>
prefix(java.lang.String theIRI)
Return the prefix associated with the given IRIdefault java.util.stream.Stream<Namespace>
stream()
Return aStream
over thenamespaces
-
-
-
Field Detail
-
OWL
static final java.lang.String OWL
- See Also:
- Constant Field Values
-
RDF
static final java.lang.String RDF
- See Also:
- Constant Field Values
-
RDFS
static final java.lang.String RDFS
- See Also:
- Constant Field Values
-
SHACL
static final java.lang.String SHACL
- See Also:
- Constant Field Values
-
SWRL
static final java.lang.String SWRL
- See Also:
- Constant Field Values
-
SWRLB
static final java.lang.String SWRLB
- See Also:
- Constant Field Values
-
XSD
static final java.lang.String XSD
- See Also:
- Constant Field Values
-
DC
static final java.lang.String DC
- See Also:
- Constant Field Values
-
FOAF
static final java.lang.String FOAF
- See Also:
- Constant Field Values
-
SKOS
static final java.lang.String SKOS
- See Also:
- Constant Field Values
-
PROV
static final java.lang.String PROV
- See Also:
- Constant Field Values
-
SCHEMA_ORG
static final java.lang.String SCHEMA_ORG
- See Also:
- Constant Field Values
-
STARDOG
static final java.lang.String STARDOG
- See Also:
- Constant Field Values
-
STARDOG_SHACL
static final java.lang.String STARDOG_SHACL
- See Also:
- Constant Field Values
-
BASE_URI
static final java.lang.String BASE_URI
- See Also:
- Constant Field Values
-
DEFAULT
static final Namespaces DEFAULT
Stardog default namespaces. An immutable set of namespaces for built-in namespaces RDF, RDFS, XSD, and OWL.
-
EXTENDED
static final Namespaces EXTENDED
An immutable set of extended namespaces that include allbuilt-in namespaces
plus other commonly used namespaces DC, FOAF, SKOS, SWRL, and SWRLB.
-
RDFA_INIT_CONTEXT
static final Namespaces RDFA_INIT_CONTEXT
Set of namespaces based on Vocabulary Prefixes of W3C Documents (Recommendations or Notes)- See Also:
- rdfa 1.1
-
-
Method Detail
-
defaults
static Namespaces defaults(@Nonnull java.lang.String theDefaultIRI)
Stardog default namespaces with a user-defined default namespace. An immutable set of namespaces for built-in namespaces RDF, RDFS, XSD, and OWL similar toDEFAULT
but with the given default namespace.
-
prefix
@Nonnull default java.util.Optional<java.lang.String> prefix(@Nonnull java.lang.String theIRI)
Return the prefix associated with the given IRI- Parameters:
theIRI
- the IRI- Returns:
- the prefix
-
iri
@Nonnull default java.util.Optional<java.lang.String> iri(@Nonnull java.lang.String thePrefix)
Return the IRI associated with the given prefix- Parameters:
thePrefix
- the prefix- Returns:
- the IRI
-
map
@Nonnull default java.util.Optional<java.lang.String> map(@Nonnull java.lang.String thePrefixedName)
Maps the given prefixed name to a full IRI based on the namespace definitions- Parameters:
thePrefixedName
- the prefixed name- Returns:
- the IRI
-
stream
@Nonnull default java.util.stream.Stream<Namespace> stream()
Return aStream
over thenamespaces
- Returns:
- the `Namespace` `Stream`
-
-