Class PrefixIndex

java.lang.Object
org.eclipse.rdf4j.queryrender.sparql.PrefixIndex

public final class PrefixIndex extends Object
Small utility to compact IRIs using a prefix map. Maintains the insertion order of prefixes and returns the first namespace that matches the given IRI.
  • Constructor Details

  • Method Details

    • longestMatch

      public PrefixIndex.PrefixHit longestMatch(String iri)
      Return the longest matching namespace for the given IRI, or null if none match.