public class InlinePrefixedSuffixedIntegerURIHandler extends InlineLocalNameIntegerURIHandler implements IPrefixedURIHandler, ISuffixedURIHandler
InlinePrefixedSuffixedIntegerURIHandler handler = new InlinePrefixedSuffixedIntegerURIHandler("http://rdf.ncbi.nlm.nih.gov/pubchem/compound/","CID_","_SUFFIX");
This has support for overloading on a single namespace InlineLocalNameIntegerURIHandler
.packedId
namespaceIV
Constructor and Description |
---|
InlinePrefixedSuffixedIntegerURIHandler(String namespace,
String prefix,
String suffix) |
InlinePrefixedSuffixedIntegerURIHandler(String namespace,
String prefix,
String suffix,
int id) |
Modifier and Type | Method and Description |
---|---|
protected AbstractLiteralIV |
createInlineIV(String localName)
Concrete subclasses are responsible for actually creating the inline
literal IV for the localName.
|
String |
getLocalNameFromDelegate(AbstractLiteralIV<BigdataLiteral,?> delegate)
Unpack the inline value into the localName portion of the uri.
|
String |
getPrefix()
Returns the prefix for the handler
|
String |
getSuffix()
Returns the suffix for the handler
|
getPackedValueString, getUnpackedValueFromString, getUnpackedValueString, packValue, unpackId, unpackId, unpackValue
createInlineIV, createInlineIV
createInlineIV, getNamespace, init
public InlinePrefixedSuffixedIntegerURIHandler(String namespace, String prefix, String suffix)
protected AbstractLiteralIV createInlineIV(String localName)
InlineURIHandler
createInlineIV
in class InlineSignedIntegerURIHandler
public String getLocalNameFromDelegate(AbstractLiteralIV<BigdataLiteral,?> delegate)
InlineURIHandler
getLocalNameFromDelegate
in class InlineURIHandler
public String getPrefix()
IPrefixedURIHandler
getPrefix
in interface IPrefixedURIHandler
public String getSuffix()
ISuffixedURIHandler
getSuffix
in interface ISuffixedURIHandler
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.