Package tech.oxfordsemantic.jrdfox
Class Prefixes
java.lang.Object
tech.oxfordsemantic.jrdfox.Prefixes
- All Implemented Interfaces:
java.io.Serializable
public class Prefixes
extends java.lang.Object
implements java.io.Serializable
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Prefixes.DecodeResult
static class
Prefixes.PrefixData
-
Field Summary
Fields Modifier and Type Field Description static Prefixes
s_defaultPrefixes
static Prefixes
s_emptyPrefixes
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description static void
appendEscapedIRI(java.lang.String iri, java.lang.StringBuilder escapedIRI)
void
clear()
boolean
declarePrefix(java.lang.String prefixName, java.lang.String prefixIRI)
void
declareStandardPrefixes()
java.lang.String
decodeIRI(java.lang.String encodedIRI)
Prefixes.DecodeResult
decodeIRI(java.lang.String encodedIRI, java.lang.StringBuilder decodedIRI)
Prefixes.DecodeResult
decodeIRI(java.lang.String encodedIRI, java.util.function.Consumer<java.lang.String> decodedIRI)
java.lang.String
encodeIRI(java.lang.String decodedIRI)
boolean
encodeIRI(java.lang.String decodedIRI, java.lang.StringBuilder encodedIRI)
boolean
encodeIRI(java.lang.String decodedIRI, java.util.function.Consumer<java.lang.String> encodedIRI)
java.util.Map<java.lang.String,Prefixes.PrefixData>
getPrefixIRIsByPrefixName()
static boolean
isValidPrefixName(java.lang.String prefixName)
boolean
prefixExists(java.lang.String prefixName)
-
Field Details
-
Constructor Details
-
Method Details
-
decodeIRI
public Prefixes.DecodeResult decodeIRI(java.lang.String encodedIRI, java.lang.StringBuilder decodedIRI) -
decodeIRI
public Prefixes.DecodeResult decodeIRI(java.lang.String encodedIRI, java.util.function.Consumer<java.lang.String> decodedIRI) -
decodeIRI
public java.lang.String decodeIRI(java.lang.String encodedIRI) -
encodeIRI
public boolean encodeIRI(java.lang.String decodedIRI, java.lang.StringBuilder encodedIRI) -
encodeIRI
public boolean encodeIRI(java.lang.String decodedIRI, java.util.function.Consumer<java.lang.String> encodedIRI) -
encodeIRI
public java.lang.String encodeIRI(java.lang.String decodedIRI) -
prefixExists
public boolean prefixExists(java.lang.String prefixName) -
declarePrefix
public boolean declarePrefix(java.lang.String prefixName, java.lang.String prefixIRI) -
declareStandardPrefixes
public void declareStandardPrefixes() -
clear
public void clear() -
getPrefixIRIsByPrefixName
-
isValidPrefixName
public static boolean isValidPrefixName(java.lang.String prefixName) -
appendEscapedIRI
public static void appendEscapedIRI(java.lang.String iri, java.lang.StringBuilder escapedIRI)
-