Class Prefixes

  • public class Prefixes
    extends java.lang.Object
    • Field Detail

      • datasetPrefixSet

        public static final java.lang.String datasetPrefixSet
        Name for dataset-wide prefixes.
        See Also:
        Constant Field Values
      • nodeDataset

        public static Node nodeDataset
        Name for dataset prefixes.
    • Constructor Detail

      • Prefixes

        public Prefixes()
    • Method Detail

      • isDftGraph

        public static boolean isDftGraph​(java.lang.String graphName)
        Is this a name for the default graph prefix set?
      • isDftGraph

        public static boolean isDftGraph​(Node graphName)
        Is this a name node for the default graph prefix set?
      • prefix

        public static java.lang.String prefix​(java.lang.String prefix)
        Canonical prefix - remove a trailing ":". The return is not null.
      • findByURI

        public static java.lang.String findByURI​(PrefixMap pmap,
                                                 java.lang.String uriStr)
        Reverse lookup of URI to a prefix. General implementation by scanning the PrefixMap. Returns a prefix if found or null. If several prefixes for the same URI, returns one at random.
      • toString

        public static java.lang.String toString​(PrefixMap prefixMap)
        Calculate a printable multi-line string.