public class PrefixLib extends Object
PrefixMapI to abbreviate and expand| Constructor and Description |
|---|
PrefixLib() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.jena.atlas.lib.Pair<String,String> |
abbrev(PrefixMapI prefixes,
String uriStr)
Abbreviate a uriStr, return the prefix and local parts.
|
static String |
abbreviate(PrefixMapI pmap,
String uriStr)
abbreviate a uriStr, giving a string as a short form.
|
static Node |
canonicalGraphName(Node graphName)
Canonical name for graphs
|
static String |
canonicalPrefix(String prefix)
Remove ":" from a prefix if necessary to make it canonical.
|
static String |
expand(PrefixMapI prefixes,
String prefixedName)
Expand a prefixedName which must include a ':'
|
static String |
expand(PrefixMapI prefixes,
String prefix,
String localName)
Expand a prefix, local name pair.
|
public static String canonicalPrefix(String prefix)
prefix - public static String abbreviate(PrefixMapI pmap, String uriStr)
public static org.apache.jena.atlas.lib.Pair<String,String> abbrev(PrefixMapI prefixes, String uriStr)
public static String expand(PrefixMapI prefixes, String prefixedName)
public static String expand(PrefixMapI prefixes, String prefix, String localName)
Licensed under the Apache License, Version 2.0