Interface Namespaces

    • 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 all built-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 prefix
      default java.util.Optional<java.lang.String> map​(java.lang.String thePrefixedName)
      Maps the given prefixed name to a full IRI based on the namespace definitions
      default java.util.Optional<java.lang.String> prefix​(java.lang.String theIRI)
      Return the prefix associated with the given IRI
      default java.util.stream.Stream<Namespace> stream()
      Return a Stream over the namespaces
      • Methods inherited from interface java.lang.Iterable

        forEach, iterator, spliterator
    • 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 to DEFAULT 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 a Stream over the namespaces
        Returns:
        the `Namespace` `Stream`